14 #ifndef KRATOS_MASS_CONSERVATION_CHECK_PROCESS_H
15 #define KRATOS_MASS_CONSERVATION_CHECK_PROCESS_H
85 const bool PerformCorrections,
86 const int CorrectionFreq,
87 const bool WriteToLogFile,
88 const std::string& LogFileName);
120 double ComputePositiveVolume();
127 double ComputeNegativeVolume();
134 double ComputeInterfaceArea();
142 double ComputeFlowOverBoundary(
const Kratos::Flags boundaryFlag );
149 std::string Initialize();
156 std::string ExecuteInTimeStep();
167 std::string
Info()
const override
169 std::stringstream buffer;
170 buffer <<
"MassConservationCheckProcess";
175 void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"MassConservationCheckProcess";}
178 void PrintData(std::ostream& rOStream)
const override {}
200 int mCorrectionFreq = 1;
201 bool mWriteToLogFile =
true;
202 bool mPerformCorrections =
true;
203 std::string mLogFileName =
"mass_conservation.log";
206 double mInitialNegativeVolume = -1.0;
208 double mInitialPositiveVolume = -1.0;
212 double mTheoreticalNegativeVolume = -1.0;
234 void ComputeVolumesAndInterface(
double& positiveVolume,
double& negativeVolume,
double& interfaceArea );
257 void ShiftDistanceField(
double deltaDist );
Geometry base class.
Definition: geometry.h:71
An two node 3D line geometry with linear shape functions.
Definition: line_3d_2.h:64
Definition: mass_conservation_check_process.h:59
KRATOS_CLASS_POINTER_DEFINITION(MassConservationCheckProcess)
Pointer definition of DistanceModificationProcess.
Node NodeType
Definition: mass_conservation_check_process.h:67
Geometry< NodeType > GeometryType
Definition: mass_conservation_check_process.h:68
std::string Info() const override
Turn back information as a string.
Definition: mass_conservation_check_process.h:167
~MassConservationCheckProcess() override
Destructor.
Definition: mass_conservation_check_process.h:101
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: mass_conservation_check_process.h:175
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mass_conservation_check_process.h:178
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
The base class for all processes in Kratos.
Definition: process.h:49
A three node 2D triangle geometry with linear shape functions.
Definition: triangle_2d_3.h:74
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21