28#include <unordered_map>
33 using units_map = std::unordered_map<std::string, double>;
37 std::map<std::string, std::shared_ptr<VTKHandle>>
m_vtk_auto;
44 int flag_observables) = 0;
71 create_vtk(
int delta_N,
int initial_count,
int flag_observables,
72 units_map const &units_conversion, std::
string const &identifier,
73 std::
string const &base_folder, std::
string const &prefix);
79 void write_vtk(std::
string const &vtk_uid);
86 void switch_vtk(std::
string const &vtk_uid,
bool status);
Abstract representation of a lattice-based model.
std::map< std::string, std::shared_ptr< VTKHandle > > m_vtk_auto
VTK writers that are executed automatically.
std::shared_ptr< VTKHandle > create_vtk(int delta_N, int initial_count, int flag_observables, units_map const &units_conversion, std::string const &identifier, std::string const &base_folder, std::string const &prefix)
Create a VTK observable.
virtual void register_vtk_field_writers(walberla::vtk::VTKOutput &vtk_obj, units_map const &units_conversion, int flag_observables)=0
Register VTK writers.
virtual void register_vtk_field_filters(walberla::vtk::VTKOutput &vtk_obj)=0
std::map< std::string, std::shared_ptr< VTKHandle > > m_vtk_manual
VTK writers that are executed manually.
virtual void integrate_vtk_writers()=0
virtual ~LatticeModel()=default
std::unordered_map< std::string, double > units_map
void switch_vtk(std::string const &vtk_uid, bool status)
Toggle a VTK observable on/off.
void write_vtk(std::string const &vtk_uid)
Write a VTK observable to disk.
virtual LatticeWalberla const & get_lattice() const noexcept=0
Get the underlying lattice.
Class that runs and controls the BlockForest in waLBerla.