114 std::string
const &filename);
124 std::string
const &filename);
272 std::string root_path{
"tmp/out/"}, data_type{
"vtk"};
273 bool save_by_cycles{
true};
274 int cycle_interval{1}, cycle_previous{0};
275 double time_interval{0}, time_previous{0};
277 bool save_by_cycles_restart{
true};
278 int cycle_interval_restart{1}, cycle_previous_restart{0};
279 double time_interval_restart{0}, time_previous_restart{0};
328 inline std::string GetParticleVTKSeriesFilename();
335 inline std::string GetWallVTKSeriesFilename();
342 inline std::string GetCollisionVTKSeriesFilename();
349 inline std::string GetBondVTKSeriesFilename();
356 inline std::string GetParticleMeshVTKSeriesFilename();
363 inline std::string GetWallMeshVTKSeriesFilename();
371 inline std::string GetParticleInfoFilename(
int cycle);
379 inline std::string GetWallInfoFilename(
int cycle);
387 inline std::string GetParticleMeshFilename(
int cycle);
395 inline std::string GetWallMeshFilename(
int cycle);
403 inline std::string GetCollisionInfoFilename(
int cycle);
411 inline std::string GetBondInfoFilename(
int cycle);
419 inline std::string GetShapeInfoFilename(
int cycle);
427 inline bool CheckIfToSave();
435 inline bool CheckIfToDumpRestart();
A class used to dump particle data into vtk files. This is a post-modifier, which will be executed at...
Definition data_dumper.hpp:12
bool dump_read_restart
A flag that determines whether to dump read restart information.
Definition data_dumper.hpp:37
void Print()
Prints the current state of the DataDumper instance.
Definition data_dumper.cpp:2407
void SaveWallInfoAsVTK()
Saves wall information to VTK format.
Definition data_dumper.cpp:954
void SaveShapeInfoAsJson(bool all_in_one=false)
Saves shape information as a JSON file.
Definition data_dumper.cpp:2263
static void SaveParticleMeshAsVTK(VecXT< Particle * > const &p_list, std::string const &filename)
Saves particle mesh in VTK format at a given filename.
void SetSaveReadRestartByCycles(double interval)
Sets the interval for saving data by cycles.
Definition data_dumper.cpp:49
bool dump_shape_info
A flag that determines whether to dump shape information.
Definition data_dumper.hpp:29
DataDumper()
Default constructor for DataDumper class.
Definition data_dumper.cpp:19
void SaveParticleInfoAsVTK()
Saves particle information to VTK format.
Definition data_dumper.cpp:444
void SaveBondInfoAsDump()
Saves bond information to dump format.
Definition data_dumper.cpp:2086
void Init(Simulation *sim) override
Initializes the DataDumper instance.
Definition data_dumper.cpp:24
void SaveParticleVTKSeries()
Saves particle information as a VTK series.
Definition data_dumper.cpp:886
void SaveShapeReadRestart()
Saves shape information as a JSON file for read restart.
Definition data_dumper.cpp:2309
bool dump_particle_info
A flag that determines whether to dump particle information.
Definition data_dumper.hpp:17
bool dump_wall_info
A flag that determines whether to dump wall information.
Definition data_dumper.hpp:21
void SaveParticleInfoAsDump()
Saves particle information to dump format.
Definition data_dumper.cpp:832
void SaveShapeInfoAsVTK()
Saves shape information to VTK format.
Definition data_dumper.cpp:2254
void SaveParticleInfoAsVTKWithProxy()
Saves particle information as VTK with proxy (for MPI debug use).
Definition data_dumper.cpp:1052
void SaveWallInfoAsDump()
Saves wall information to dump format.
Definition data_dumper.cpp:1382
void ClearHistories()
Clears the history of when data was last saved.
Definition data_dumper.cpp:54
void SetSaveReadRestartByTime(double interval)
Sets the interval for saving data by time.
Definition data_dumper.cpp:44
bool dump_contact_info
A flag that determines whether to dump contact information.
Definition data_dumper.hpp:25
void SaveParticleMeshVTKSeries()
Saves particle mesh as a VTK series.
Definition data_dumper.cpp:920
void SaveCollisionVTKSeries()
Saves collision information as a VTK series.
Definition data_dumper.cpp:1838
void SaveContactReadRestart()
Saves contact information as a JSON file for read restart.
Definition data_dumper.cpp:2355
void SaveBondVTKSeries()
Saves bond information as a VTK series.
Definition data_dumper.cpp:2211
void SaveShapeInfoAsSTL()
Saves shape information as an STL file.
Definition data_dumper.cpp:2245
void SaveParticleReadRestart()
Saves particle information as a JSON file for read restart.
Definition data_dumper.cpp:2335
static void SaveParticleInfoAsVTK(VecXT< Particle * > const &p_list, std::string const &filename)
Saves particle information to VTK format at a given filename.
bool dump_reconstructed
A flag that determines whether to dump reconstructed information.
Definition data_dumper.hpp:45
void SaveWallMeshVTKSeries()
Saves wall mesh as a VTK series.
Definition data_dumper.cpp:1466
void SaveWallVTKSeries()
Saves wall information as a VTK series.
Definition data_dumper.cpp:1432
bool dump_mesh
A flag that determines whether to dump mesh information.
Definition data_dumper.hpp:33
void SaveWallMeshAsVTK()
Saves wall mesh in VTK format.
Definition data_dumper.cpp:1168
void SetDataType(std::string const &data_type)
Sets the data type of the output file (vtk or dump format).
Definition data_dumper.cpp:30
void Execute() override
Executes the DataDumper instance.
Definition data_dumper.cpp:2417
void SetSaveByCycles(double interval)
Sets the interval for saving data by cycles.
Definition data_dumper.cpp:39
bool time_stamp_adjustable
A flag that determines if time stamp is adjustable.
Definition data_dumper.hpp:41
void SaveCollisionInfoAsDump()
Saves collision information to dump format.
Definition data_dumper.cpp:1714
Modifier * Clone() const override
Clones the current DataDumper instance.
Definition data_dumper.cpp:2405
void SaveBondInfoAsVTK()
Saves bond information to VTK format.
Definition data_dumper.cpp:1872
void SaveParticleMeshAsVTK()
Saves particle mesh in VTK format.
Definition data_dumper.cpp:571
void SetRootPath(std::string const &root_path)
Sets the root directory path for the output file.
Definition data_dumper.cpp:26
void SaveCollisionInfoAsVTK()
Saves collision information to VTK format.
Definition data_dumper.cpp:1500
void SetSaveByTime(double interval)
Sets the interval for saving data by time.
Definition data_dumper.cpp:34
void SaveReadRestart()
Saves all information as JSON files for read restart.
Definition data_dumper.cpp:2297
void SaveWallReadRestart()
Saves wall information as a JSON file for read restart.
Definition data_dumper.cpp:2385
An interface class used to modify a DEM simulation.
Definition modifier.hpp:18
Simulation * sim
Definition modifier.hpp:23
Class for managing a DEM simulation.
Definition simulation.hpp:21
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31