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// SPDX-License-Identifier: MIT
2// Copyright (c) 2021-2025 MPM-Geomechanics Development Team
3
4#ifndef OUTPUT_H_
5#define OUTPUT_H_
6
7#include "Mesh/Mesh.h"
8#include "Particle/Particle.h"
9#include "Body/Body.h"
10
16namespace Output {
17
21
25
29 void writeGrid(Mesh* mesh, CellType cell_type_representation=CellType::CELLS);
30
34 void writeParticles(vector<Particle*>* particles, double time=0.0);
35
39 void writeBody(Body* body, double time=0.0);
40
44
48 void writeBodies(vector<Body*>* bodies, double time=0.0);
49
52 void configureResultFiels(vector<string> fields);
53
57 bool isFieldRequired (string field);
58
61 void writeResultInStep(int loopCounter, int resultSteps, vector<Body*>* bodies, double iTime);
62
66
70
74}
75
76#endif /* OUTPUT_H_ */
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:15
Class representing a rectangular grid mesh.
Definition Mesh.h:26
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:20
@ CELLS
Definition Output.h:20
@ POINTS
Definition Output.h:20
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.