3 #if !defined(KRATOS_ADD_VISUALIZATION_UTILITIES_INCLUDED )
4 #define KRATOS_ADD_VISUALIZATION_UTILITIES_INCLUDED
15 #include "utilities/geometry_utilities.h"
38 std::cout <<
"Hello, I am the constructor of the Visualization 2d Utility" << std::endl;
56 rCompleteModelPart.
Nodes() = rEulerianModelPart.
Nodes();
61 if(rEulerianModelPart.
Nodes().size()!= 0)
62 id = (rEulerianModelPart.
Nodes().end() - 1)->Id() + 1;
67 int tot_nodes = rEulerianModelPart.
Nodes().size() + rLagrangianModelPart.
Nodes().size();
68 rCompleteModelPart.
Nodes().reserve( tot_nodes );
74 for (ModelPart::NodesContainerType::iterator node_it = rLagrangianModelPart.
NodesBegin();
75 node_it != rLagrangianModelPart.
NodesEnd(); node_it++)
78 rCompleteModelPart.
AddNode(*(node_it.base()));
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
void AddNode(NodeType::Pointer pNewNode, IndexType ThisIndex=0)
Definition: model_part.cpp:211
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
Definition: visualization.h:30
~VisualizationUtilities()
Definition: visualization.h:43
void VisualizationModelPart(ModelPart &rCompleteModelPart, ModelPart &rEulerianModelPart, ModelPart &rLagrangianModelPart)
Definition: visualization.h:51
KRATOS_CLASS_POINTER_DEFINITION(VisualizationUtilities)
VisualizationUtilities()
Definition: visualization.h:35
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_WATCH(variable)
Definition: define.h:806
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21