72 const int num_removed_elements = initial_num_element - mr_model_part.
NumberOfElements();
74 KRATOS_WARNING_IF(
"ParticleEraseProcess", num_removed_elements > 0) << num_removed_elements <<
" particle elements have been erased.\n";
78 const int num_removed_condition = initial_num_condition - mr_model_part.
NumberOfConditions();
80 KRATOS_WARNING_IF(
"ParticleEraseProcess", num_removed_condition > 0) << num_removed_condition <<
" particle conditions have been erased.\n";
90 std::string
Info()
const override
92 return "ParticleEraseProcess";
96 void PrintInfo(std::ostream& rOStream)
const override
98 rOStream <<
"ParticleEraseProcess";
133 rOStream << std::endl;
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
void RemoveElements(Flags IdentifierFlag=TO_ERASE)
Definition: model_part.cpp:1127
SizeType NumberOfElements(IndexType ThisIndex=0) const
Definition: model_part.h:1027
void RemoveConditions(Flags IdentifierFlag=TO_ERASE)
Definition: model_part.cpp:1637
SizeType NumberOfConditions(IndexType ThisIndex=0) const
Definition: model_part.h:1218
Delete particle elements and conditions with flag TO_ERASE.
Definition: particle_erase_process.h:34
ParticleEraseProcess(ModelPart &model_part)
Default constructor.
Definition: particle_erase_process.h:48
void operator()()
Definition: particle_erase_process.h:57
KRATOS_CLASS_POINTER_DEFINITION(ParticleEraseProcess)
Pointer definition of NodeAndElementEraseProcess.
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: particle_erase_process.h:96
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: particle_erase_process.h:102
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: particle_erase_process.h:66
std::string Info() const override
Turn back information as a string.
Definition: particle_erase_process.h:90
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_WARNING_IF(label, conditional)
Definition: logger.h:266
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