13 #if !defined(KRATOS_MESH_NODE_COLLAPSING_PROCESS_H_INCLUDED )
14 #define KRATOS_MESH_NODE_COLLAPSING_PROCESS_H_INCLUDED
104 std::string
Info()
const override;
107 void PrintInfo(std::ostream& rOStream)
const override;
110 void PrintData(std::ostream& rOStream)
const override;
140 void CollapseNodes();
142 void CollapseNode(
Node& rThisNode);
144 double CalculateQualityIfNodeCollapses(
Node& rThisNode,
Node const& rCoarseNode);
146 double CalculateMinQualityOfNeighbourElements(
Node& rThisNode,
Node const& rCoarseNode);
148 bool ElementHas(
Element& rElement,
Node const& rCoarseNode);
150 void SwapElementNode(
Element& rElement,
Node const& rThisNode, Node::Pointer pCoarseNode);
176 rOStream << std::endl;
Base class for all Elements.
Definition: element.h:60
Remove the selected node from the mesh and collapse the connectivity arround it.
Definition: mesh_node_collapsing_process.h:44
MeshNodeCollapsingProcess(MeshNodeCollapsingProcess const &rOther)=delete
Copy constructor deleted.
MeshNodeCollapsingProcess & operator=(MeshNodeCollapsingProcess const &rOther)=delete
Assignment operator is deleted.
KRATOS_CLASS_POINTER_DEFINITION(MeshNodeCollapsingProcess)
Pointer definition of MeshNodeCollapsingProcess.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mesh_node_collapsing_process.cpp:55
MeshNodeCollapsingProcess()=delete
Default constructor deleted.
~MeshNodeCollapsingProcess() override
Destructor.
Definition: mesh_node_collapsing_process.cpp:32
KRATOS_DEFINE_LOCAL_FLAG(TO_COLLAPSE)
std::string Info() const override
Turn back information as a string.
Definition: mesh_node_collapsing_process.cpp:45
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: mesh_node_collapsing_process.cpp:50
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: mesh_node_collapsing_process.cpp:36
ModelPart & mrModelPart
Definition: mesh_node_collapsing_process.h:123
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
The base class for all processes in Kratos.
Definition: process.h:49
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