MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
|
Operations to write the results and the mesh for its visualization. More...
Enumerations | |
enum | CellType { POINTS , CELLS } |
Functions | |
void | initFieldsKeyWords () |
Initialize the keywords of the fields. | |
void | writeGrid (Mesh *mesh, CellType cell_type_representation=CellType::CELLS) |
Write the grid mesh into a vtu file. | |
void | writeParticles (vector< Particle * > *particles, double time=0.0) |
Write the particles of the model into a vtu file. | |
void | writeBody (Body *body, double time=0.0) |
Write the particles in a body. | |
void | writeResultsSeries () |
Write the time series of the results. | |
void | writeBodies (vector< Body * > *bodies, double time=0.0) |
Write the particles forming bodies. | |
void | configureResultFiels (vector< string > fields) |
Configures the fields to be written. | |
bool | isFieldRequired (string field) |
Verify is the field must be written. | |
void | writeResultInStep (int loopCounter, int resultSteps, vector< Body * > *bodies, double iTime) |
Write results if the step is the step result. | |
void | welcomeScreen () |
Print initial program screen. | |
void | farewellScreen () |
Print final program screen. | |
void | printElapsedTime () |
Print elapsed time. | |
Operations to write the results and the mesh for its visualization.
The results of a numerical simulation are the variables stored in particles in time. These files are written in two folders inside the working directory: particles
and grid
. In particles
folder temporal results are written in vtu
files and additional file particleTimeSerie.pvd
is created at the end of the simulation containing information of vtu
files and time.
enum Output::CellType |
void Output::configureResultFiels | ( | vector< string > | fields | ) |
Configures the fields to be written.
[in] | fields | List of fields |
void Output::farewellScreen | ( | ) |
Print final program screen.
void Output::initFieldsKeyWords | ( | ) |
Initialize the keywords of the fields.
bool Output::isFieldRequired | ( | string | field | ) |
Verify is the field must be written.
[in] | field | Field to verify |
void Output::printElapsedTime | ( | ) |
Print elapsed time.
void Output::welcomeScreen | ( | ) |
Print initial program screen.
void Output::writeBodies | ( | vector< Body * > * | bodies, |
double | time = 0.0 ) |
Write the particles forming bodies.
[in] | bodies | Body list |
[in] | time | Time |
void Output::writeBody | ( | Body * | body, |
double | time = 0.0 ) |
Write the particles in a body.
[in] | body | Body reference |
[in] | time | Time |
void Output::writeGrid | ( | Mesh * | mesh, |
CellType | cell_type_representation = CellType::CELLS ) |
Write the grid mesh into a vtu file.
[in] | mesh | Mesh reference |
[in] | cell_type_representation | Cell type representation Output::CellType |
void Output::writeParticles | ( | vector< Particle * > * | particles, |
double | time = 0.0 ) |
Write the particles of the model into a vtu file.
[in] | particles | List containing pointers to particles |
[in] | time | Time |
void Output::writeResultInStep | ( | int | loopCounter, |
int | resultSteps, | ||
vector< Body * > * | bodies, | ||
double | iTime ) |
Write results if the step is the step result.
void Output::writeResultsSeries | ( | ) |
Write the time series of the results.