MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
Output.h
Go to the documentation of this file.
1/*
2 * Output.h
3 *
4 * Created on: 13 de abr de 2021
5 * Author: Fabricio Fernandez <fabricio.hmf@gmail.com>
6 */
7
8#ifndef OUTPUT_H_
9#define OUTPUT_H_
10
11#include "Mesh/Mesh.h"
12#include "Particle/Particle.h"
13#include "Body/Body.h"
14
20namespace Output {
21
25
29
33 void writeGrid(Mesh* mesh, CellType cell_type_representation=CellType::CELLS);
34
38 void writeParticles(vector<Particle*>* particles, double time=0.0);
39
43 void writeBody(Body* body, double time=0.0);
44
48
52 void writeBodies(vector<Body*>* bodies, double time=0.0);
53
56 void configureResultFiels(vector<string> fields);
57
61 bool isFieldRequired (string field);
62
65 void writeResultInStep(int loopCounter, int resultSteps, vector<Body*>* bodies, double iTime);
66
70
74
78}
79
80#endif /* OUTPUT_H_ */
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
Class representing a rectangular grid mesh.
Definition Mesh.h:29
Operations to write the results and the mesh for its visualization.
void writeBody(Body *body, double time=0.0)
Write the particles in a body.
void initFieldsKeyWords()
Initialize the keywords of the fields.
CellType
Definition Output.h:24
@ CELLS
Definition Output.h:24
@ POINTS
Definition Output.h:24
void farewellScreen()
Print final program screen.
void printElapsedTime()
Print elapsed time.
void configureResultFiels(vector< string > fields)
Configures the fields to be written.
bool isFieldRequired(string field)
Verify is the field must be written.
void writeGrid(Mesh *mesh, CellType cell_type_representation=CellType::CELLS)
Write the grid mesh into a vtu file.
void writeResultInStep(int loopCounter, int resultSteps, vector< Body * > *bodies, double iTime)
Write results if the step is the step result.
void writeParticles(vector< Particle * > *particles, double time=0.0)
Write the particles of the model into a vtu file.
void writeResultsSeries()
Write the time series of the results.
void writeBodies(vector< Body * > *bodies, double time=0.0)
Write the particles forming bodies.
void welcomeScreen()
Print initial program screen.