10 #if !defined(KRATOS_REFINE_FLUID_ELEMENTS_IN_EDGES_MESHER_PROCESS_H_INCLUDED )
11 #define KRATOS_REFINE_FLUID_ELEMENTS_IN_EDGES_MESHER_PROCESS_H_INCLUDED
95 std::string
Info()
const override
97 return "RefineFluidElementsInEdgesMesherProcess";
103 rOStream <<
"RefineFluidElementsInEdgesMesherProcess";
142 bool is_full_rigid_boundary =
false;
143 bool is_full_fluid_boundary =
false;
144 for(ModelPart::ElementsContainerType::iterator i_elem = rModelPart.
ElementsBegin();
149 is_full_rigid_boundary =
true;
150 for(
unsigned int i=0;
i<rGeometry.
size(); ++
i)
152 if( rGeometry[
i].
IsNot(BOUNDARY) || rGeometry[
i].
IsNot(RIGID) ){
153 is_full_rigid_boundary =
false;
159 is_full_fluid_boundary =
true;
160 for(
unsigned int i=0;
i<rGeometry.
size(); ++
i)
162 if( rGeometry[
i].
IsNot(FREE_SURFACE) || rGeometry[
i].
Is(RIGID) || rGeometry[
i].
Is(SOLID) ){
163 is_full_fluid_boundary =
false;
174 for(
auto& i_nnode : nNodes)
176 if(i_nnode.Is(SOLID) || i_nnode.Is(RIGID))
178 is_full_fluid_boundary =
false;
189 if( is_full_rigid_boundary || is_full_fluid_boundary ){
190 rBoundaryEdgedElements.push_back(*(i_elem.base()));
266 rOStream << std::endl;
Base class for all Conditions.
Definition: condition.h:59
bool Is(Flags const &rOther) const
Definition: flags.h:274
bool IsNot(Flags const &rOther) const
Definition: flags.h:291
Geometry base class.
Definition: geometry.h:71
SizeType size() const
Definition: geometry.h:518
TVariableType::Type & GetValue(const TVariableType &rThisVariable)
Definition: geometry.h:627
This class is a vector which stores global pointers.
Definition: global_pointers_vector.h:61
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
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
ElementIterator ElementsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1179
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
Refine Mesh Elements Process 2D and 3D.
Definition: refine_elements_in_edges_mesher_process.hpp:39
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: refine_elements_in_edges_mesher_process.hpp:88
Refine Mesh Elements Process 2D and 3D.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:33
ConditionType::GeometryType GeometryType
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:43
void operator()()
This operator is provided to call the process as a function and simply calls the Execute method.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:69
RefineElementsInEdgesMesherProcess BaseType
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:45
std::string Info() const override
Turn back information as a string.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:95
void SelectFullBoundaryEdgedElements(ModelPart &rModelPart, ModelPart::ElementsContainerType &rBoundaryEdgedElements) override
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:137
RefineFluidElementsInEdgesMesherProcess(ModelPart &rModelPart, MesherUtilities::MeshingParameters &rRemeshingParameters, int EchoLevel)
Default constructor.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:53
ModelPart::ConditionType ConditionType
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:41
ModelPart::PropertiesType PropertiesType
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:42
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:101
virtual ~RefineFluidElementsInEdgesMesherProcess()
Destructor.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:61
GlobalPointersVector< Node > NodeWeakPtrVectorType
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:47
KRATOS_CLASS_POINTER_DEFINITION(RefineFluidElementsInEdgesMesherProcess)
Pointer definition of Process.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: refine_fluid_elements_in_edges_mesher_process.hpp:107
#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
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
integer i
Definition: TensorModule.f:17
Definition: mesher_utilities.hpp:631