54 #if !defined(KRATOS_MASS_CALCULATE_PROCESS_INCLUDED )
55 #define KRATOS_MASS_CALCULATE_PROCESS_INCLUDED
73 #include "utilities/geometry_utilities.h"
156 for(ModelPart::NodesContainerType::iterator in = mr_model_part.
NodesBegin() ;
157 in != mr_model_part.
NodesEnd() ; ++in)
159 in->FastGetSolutionStepValue(NODAL_MASS)=0.0;
162 for(ModelPart::ElementsContainerType::iterator
im = mr_model_part.
ElementsBegin() ;
165 im->Calculate(NODAL_MASS,
dummy,proc_info);
191 std::string
Info()
const override
193 return "MassCalculateProcess";
199 rOStream <<
"MassCalculateProcess";
318 rOStream << std::endl;
Short class definition.
Definition: mass_calculate_process.h:109
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: mass_calculate_process.h:147
void operator()()
Definition: mass_calculate_process.h:137
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: mass_calculate_process.h:197
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mass_calculate_process.h:203
KRATOS_CLASS_POINTER_DEFINITION(MassCalculateProcess)
Pointer definition of MassCalculateProcess.
MassCalculateProcess(ModelPart &model_part)
Default constructor.
Definition: mass_calculate_process.h:122
~MassCalculateProcess() override
Destructor.
Definition: mass_calculate_process.h:128
std::string Info() const override
Turn back information as a string.
Definition: mass_calculate_process.h:191
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ElementIterator ElementsBegin(IndexType ThisIndex=0)
Definition: model_part.h:1169
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
ElementIterator ElementsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1179
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
The base class for all processes in Kratos.
Definition: process.h:49
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_WATCH(variable)
Definition: define.h:806
#define KRATOS_TRY
Definition: define.h:109
im
Definition: GenerateCN.py:100
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
model_part
Definition: face_heat.py:14
dummy
Definition: script.py:194