10 #if !defined(KRATOS_CLEAR_CONTACT_CONDITIONS_MESHER_PROCESS_H_INCLUDED )
11 #define KRATOS_CLEAR_CONTACT_CONDITIONS_MESHER_PROCESS_H_INCLUDED
78 : mrModelPart(rModelPart)
107 this->ClearContactConditions();
128 std::string
Info()
const override
130 return "ClearContactConditionsMesherProcess";
136 rOStream <<
"ClearContactConditionsMesherProcess";
212 void ClearContactConditions()
218 if( mrModelPart.IsNot(CONTACT) )
219 std::cout<<
" ModelPart Supplied do not corresponds to the Contact Domain: ("<<mrModelPart.Name()<<
")"<<std::endl;
222 ClearContactConditions(mrModelPart);
232 void ClearContactConditions(ModelPart& rModelPart)
241 if( mEchoLevel >= 1 ){
242 std::cout<<
" ["<<rModelPart.Name()<<
" :: CONDITIONS [OLD:"<<rModelPart.NumberOfConditions();
247 for(ModelPart::ConditionsContainerType::iterator ic = rModelPart.ConditionsBegin(); ic!= rModelPart.ConditionsEnd(); ++ic)
249 if(ic->IsNot(CONTACT)){
250 PreservedConditions.
push_back(*(ic.base()));
254 rModelPart.Conditions().swap(PreservedConditions);
256 if( mEchoLevel >= 1 ){
257 std::cout<<
" / PRE:"<<rModelPart.NumberOfConditions();
263 if( mEchoLevel >= 1 ){
264 std::cout<<
" / NEW:"<<rModelPart.NumberOfConditions()<<
"] "<<std::endl;
317 rOStream << std::endl;
The base class for processes passed to the solution scheme.
Definition: mesher_process.hpp:37
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
void push_back(TPointerType x)
Adds a pointer to the end of the set.
Definition: pointer_vector_set.h:544
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
static int EchoLevel
Definition: co_sim_EMPIRE_API.h:42
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
ModelPart::NodesContainerType NodesContainerType
Definition: find_conditions_neighbours_process.h:44
ModelPart::ConditionsContainerType ConditionsContainerType
Definition: find_conditions_neighbours_process.h:45
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
ModelPart::ElementsContainerType ElementsContainerType
Definition: clear_contact_conditions_mesher_process.hpp:43
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432