|
NetDEM v1.0
|
A class used to dump particle data into vtk files. This is a post-modifier, which will be executed at the end of a DEM cycle. More...
#include <data_dumper.hpp>
Public Member Functions | |
| DataDumper () | |
| Default constructor for DataDumper class. | |
| void | Init (Simulation *sim) override |
| Initializes the DataDumper instance. | |
| void | SetRootPath (std::string const &root_path) |
| Sets the root directory path for the output file. | |
| void | SetDataType (std::string const &data_type) |
| Sets the data type of the output file (vtk or dump format). | |
| void | SetSaveByTime (double interval) |
| Sets the interval for saving data by time. | |
| void | SetSaveByCycles (double interval) |
| Sets the interval for saving data by cycles. | |
| void | SetSaveReadRestartByTime (double interval) |
| Sets the interval for saving data by time. | |
| void | SetSaveReadRestartByCycles (double interval) |
| Sets the interval for saving data by cycles. | |
| void | ClearHistories () |
| Clears the history of when data was last saved. | |
| void | SaveParticleInfoAsVTK () |
| Saves particle information to VTK format. | |
| void | SaveParticleInfoAsDump () |
| Saves particle information to dump format. | |
| void | SaveParticleMeshAsVTK () |
| Saves particle mesh in VTK format. | |
| void | SaveParticleVTKSeries () |
| Saves particle information as a VTK series. | |
| void | SaveParticleMeshVTKSeries () |
| Saves particle mesh as a VTK series. | |
| void | SaveParticleInfoAsVTKWithProxy () |
| Saves particle information as VTK with proxy (for MPI debug use). | |
| void | SaveWallInfoAsVTK () |
| Saves wall information to VTK format. | |
| void | SaveWallInfoAsDump () |
| Saves wall information to dump format. | |
| void | SaveWallMeshAsVTK () |
| Saves wall mesh in VTK format. | |
| void | SaveWallVTKSeries () |
| Saves wall information as a VTK series. | |
| void | SaveWallMeshVTKSeries () |
| Saves wall mesh as a VTK series. | |
| void | SaveCollisionInfoAsVTK () |
| Saves collision information to VTK format. | |
| void | SaveCollisionInfoAsDump () |
| Saves collision information to dump format. | |
| void | SaveCollisionVTKSeries () |
| Saves collision information as a VTK series. | |
| void | SaveBondInfoAsVTK () |
| Saves bond information to VTK format. | |
| void | SaveBondInfoAsDump () |
| Saves bond information to dump format. | |
| void | SaveBondVTKSeries () |
| Saves bond information as a VTK series. | |
| void | SaveShapeInfoAsSTL () |
| Saves shape information as an STL file. | |
| void | SaveShapeInfoAsVTK () |
| Saves shape information to VTK format. | |
| void | SaveShapeInfoAsJson (bool all_in_one=false) |
| Saves shape information as a JSON file. | |
| void | SaveReadRestart () |
| Saves all information as JSON files for read restart. | |
| void | SaveShapeReadRestart () |
| Saves shape information as a JSON file for read restart. | |
| void | SaveParticleReadRestart () |
| Saves particle information as a JSON file for read restart. | |
| void | SaveContactReadRestart () |
| Saves contact information as a JSON file for read restart. | |
| void | SaveWallReadRestart () |
| Saves wall information as a JSON file for read restart. | |
| Modifier * | Clone () const override |
| Clones the current DataDumper instance. | |
| void | Execute () override |
| Executes the DataDumper instance. | |
| void | Print () |
| Prints the current state of the DataDumper instance. | |
Public Member Functions inherited from netdem::Modifier | |
| Modifier () | |
| Default constructor for Modifier class. | |
| virtual void | Enable () |
| Enables the Modifier instance. | |
| virtual void | Disable () |
| Disables the Modifier instance. | |
| virtual void | Update () |
| Updates the Modifier instance. | |
| virtual | ~Modifier () |
| Destructor for Modifier class. | |
Static Public Member Functions | |
| static void | SaveParticleInfoAsVTK (VecXT< Particle * > const &p_list, std::string const &filename) |
| Saves particle information to VTK format at a given filename. | |
| static void | SaveParticleMeshAsVTK (VecXT< Particle * > const &p_list, std::string const &filename) |
| Saves particle mesh in VTK format at a given filename. | |
Public Attributes | |
| bool | dump_particle_info {true} |
| A flag that determines whether to dump particle information. | |
| bool | dump_wall_info {false} |
| A flag that determines whether to dump wall information. | |
| bool | dump_contact_info {false} |
| A flag that determines whether to dump contact information. | |
| bool | dump_shape_info {false} |
| A flag that determines whether to dump shape information. | |
| bool | dump_mesh {false} |
| A flag that determines whether to dump mesh information. | |
| bool | dump_read_restart {false} |
| A flag that determines whether to dump read restart information. | |
| bool | time_stamp_adjustable {true} |
| A flag that determines if time stamp is adjustable. | |
| bool | dump_reconstructed {true} |
| A flag that determines whether to dump reconstructed information. | |
Public Attributes inherited from netdem::Modifier | |
| std::string | label {"default"} |
| DEMSolver::CyclePoint | cycle_point {DEMSolver::CyclePoint::pre} |
| Simulation * | sim {nullptr} |
| Scene * | scene {nullptr} |
| bool | update_with_scene {false} |
| bool | enable_logging {true} |
A class used to dump particle data into vtk files. This is a post-modifier, which will be executed at the end of a DEM cycle.
| netdem::DataDumper::DataDumper | ( | ) |
Default constructor for DataDumper class.
| void netdem::DataDumper::ClearHistories | ( | ) |
Clears the history of when data was last saved.
|
overridevirtual |
Clones the current DataDumper instance.
Reimplemented from netdem::Modifier.
|
overridevirtual |
Executes the DataDumper instance.
Reimplemented from netdem::Modifier.
|
overridevirtual |
Initializes the DataDumper instance.
| sim | Pointer to the current simulation object. |
Reimplemented from netdem::Modifier.
| void netdem::DataDumper::Print | ( | ) |
Prints the current state of the DataDumper instance.
| void netdem::DataDumper::SaveBondInfoAsDump | ( | ) |
Saves bond information to dump format.
| void netdem::DataDumper::SaveBondInfoAsVTK | ( | ) |
Saves bond information to VTK format.
| void netdem::DataDumper::SaveBondVTKSeries | ( | ) |
Saves bond information as a VTK series.
| void netdem::DataDumper::SaveCollisionInfoAsDump | ( | ) |
Saves collision information to dump format.
| void netdem::DataDumper::SaveCollisionInfoAsVTK | ( | ) |
Saves collision information to VTK format.
| void netdem::DataDumper::SaveCollisionVTKSeries | ( | ) |
Saves collision information as a VTK series.
| void netdem::DataDumper::SaveContactReadRestart | ( | ) |
Saves contact information as a JSON file for read restart.
| void netdem::DataDumper::SaveParticleInfoAsDump | ( | ) |
Saves particle information to dump format.
| void netdem::DataDumper::SaveParticleInfoAsVTK | ( | ) |
Saves particle information to VTK format.
|
static |
Saves particle information to VTK format at a given filename.
| p_list | A vector of Particle pointers containing the particle information to save. |
| filename | The name of the output file. |
| void netdem::DataDumper::SaveParticleInfoAsVTKWithProxy | ( | ) |
Saves particle information as VTK with proxy (for MPI debug use).
| void netdem::DataDumper::SaveParticleMeshAsVTK | ( | ) |
Saves particle mesh in VTK format.
|
static |
Saves particle mesh in VTK format at a given filename.
| p_list | A vector of Particle pointers containing the particle information to save. |
| filename | The name of the output file. |
| void netdem::DataDumper::SaveParticleMeshVTKSeries | ( | ) |
Saves particle mesh as a VTK series.
| void netdem::DataDumper::SaveParticleReadRestart | ( | ) |
Saves particle information as a JSON file for read restart.
| void netdem::DataDumper::SaveParticleVTKSeries | ( | ) |
Saves particle information as a VTK series.
| void netdem::DataDumper::SaveReadRestart | ( | ) |
Saves all information as JSON files for read restart.
| void netdem::DataDumper::SaveShapeInfoAsJson | ( | bool | all_in_one = false | ) |
Saves shape information as a JSON file.
| all_in_one | A flag that determines whether to save all the shapes in one file. |
| void netdem::DataDumper::SaveShapeInfoAsSTL | ( | ) |
Saves shape information as an STL file.
| void netdem::DataDumper::SaveShapeInfoAsVTK | ( | ) |
Saves shape information to VTK format.
| void netdem::DataDumper::SaveShapeReadRestart | ( | ) |
Saves shape information as a JSON file for read restart.
| void netdem::DataDumper::SaveWallInfoAsDump | ( | ) |
Saves wall information to dump format.
| void netdem::DataDumper::SaveWallInfoAsVTK | ( | ) |
Saves wall information to VTK format.
| void netdem::DataDumper::SaveWallMeshAsVTK | ( | ) |
Saves wall mesh in VTK format.
| void netdem::DataDumper::SaveWallMeshVTKSeries | ( | ) |
Saves wall mesh as a VTK series.
| void netdem::DataDumper::SaveWallReadRestart | ( | ) |
Saves wall information as a JSON file for read restart.
| void netdem::DataDumper::SaveWallVTKSeries | ( | ) |
Saves wall information as a VTK series.
| void netdem::DataDumper::SetDataType | ( | std::string const & | data_type | ) |
Sets the data type of the output file (vtk or dump format).
| data_type | The new data type. |
| void netdem::DataDumper::SetRootPath | ( | std::string const & | root_path | ) |
Sets the root directory path for the output file.
| root_path | The new root directory path. |
| void netdem::DataDumper::SetSaveByCycles | ( | double | interval | ) |
Sets the interval for saving data by cycles.
| interval | The new cycle interval for saving data. |
| void netdem::DataDumper::SetSaveByTime | ( | double | interval | ) |
Sets the interval for saving data by time.
| interval | The new time interval for saving data. |
| void netdem::DataDumper::SetSaveReadRestartByCycles | ( | double | interval | ) |
Sets the interval for saving data by cycles.
| interval | The new cycle interval for saving data. |
| void netdem::DataDumper::SetSaveReadRestartByTime | ( | double | interval | ) |
Sets the interval for saving data by time.
| interval | The new time interval for saving data. |
| bool netdem::DataDumper::dump_contact_info {false} |
A flag that determines whether to dump contact information.
| bool netdem::DataDumper::dump_mesh {false} |
A flag that determines whether to dump mesh information.
| bool netdem::DataDumper::dump_particle_info {true} |
A flag that determines whether to dump particle information.
| bool netdem::DataDumper::dump_read_restart {false} |
A flag that determines whether to dump read restart information.
| bool netdem::DataDumper::dump_reconstructed {true} |
A flag that determines whether to dump reconstructed information.
| bool netdem::DataDumper::dump_shape_info {false} |
A flag that determines whether to dump shape information.
| bool netdem::DataDumper::dump_wall_info {false} |
A flag that determines whether to dump wall information.
| bool netdem::DataDumper::time_stamp_adjustable {true} |
A flag that determines if time stamp is adjustable.