51 #if !defined(KRATOS_MARK_OUTER_NODES_PROCESS_INCLUDED )
52 #define KRATOS_MARK_OUTER_NODES_PROCESS_INCLUDED
104 class MarkOuterNodesProcess
142 if(corner1[0] > corner2[0])
152 if(corner1[1] > corner2[1])
162 if(corner1[2] > corner2[2])
173 for(ModelPart::NodesContainerType::iterator in = mr_model_part.
NodesBegin() ;
174 in != mr_model_part.
NodesEnd() ; ++in)
181 if(x<xmin || x>
xmax) erase =
true;
182 else if(y<ymin || y>
ymax) erase =
true;
183 else if(z<zmin || z>
zmax) erase =
true;
188 in->Set(TO_ERASE,
true);
189 std::cout <<
"erasing outer node at " << in->X() <<
" " << in->Y() <<
" " << in->Z() << std::endl;
212 std::string
Info()
const override
214 return "MarkOuterNodesProcess";
220 rOStream <<
"MarkOuterNodesProcess";
330 inline std::istream&
operator >> (std::istream& rIStream,
331 MarkOuterNodesProcess& rThis);
334 inline std::ostream&
operator << (std::ostream& rOStream,
335 const MarkOuterNodesProcess& rThis)
337 rThis.PrintInfo(rOStream);
338 rOStream << std::endl;
339 rThis.PrintData(rOStream);
Short class definition.
Definition: mark_outer_nodes_process.h:67
void MarkOuterNodes(const array_1d< double, 3 > &corner1, const array_1d< double, 3 > &corner2)
Definition: mark_outer_nodes_process.h:135
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: mark_outer_nodes_process.h:218
~MarkOuterNodesProcess() override
Destructor.
Definition: mark_outer_nodes_process.h:125
MarkOuterNodesProcess(ModelPart &model_part)
Default constructor.
Definition: mark_outer_nodes_process.h:119
std::string Info() const override
Turn back information as a string.
Definition: mark_outer_nodes_process.h:212
KRATOS_CLASS_POINTER_DEFINITION(MarkOuterNodesProcess)
Pointer definition of PushStructureProcess.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mark_outer_nodes_process.h:224
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
z
Definition: GenerateWind.py:163
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
float zmax
Definition: cube_mesher.py:747
float xmax
Definition: cube_mesher.py:743
float ymax
Definition: cube_mesher.py:745
float xmin
Definition: cube_mesher.py:742
float zmin
Definition: cube_mesher.py:746
float ymin
Definition: cube_mesher.py:744
model_part
Definition: face_heat.py:14
y
Other simbols definition.
Definition: generate_axisymmetric_navier_stokes_element.py:54
x
Definition: sensitivityMatrix.py:49