1 #ifndef POSTPROCESS_UTILITIES_H
2 #define POSTPROCESS_UTILITIES_H
15 class PostProcessUtilities
35 r_post_model_part.
Elements().clear();
36 r_post_model_part.
Nodes().clear();
50 if (!((i_smp->Is(ACTIVE) && i_smp->Is(SOLID)) || (i_smp->Is(ACTIVE) && i_smp->Is(FLUID)))) {
51 if (i_smp->NumberOfElements()) {
56 elements_to_be_added.
push_back(*(elem.base()));
62 for (
auto &elem : elements_to_be_added) {
63 elem.Set(ACTIVE,
true);
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
SubModelPartIterator SubModelPartsEnd()
Definition: model_part.h:1708
SubModelPartIterator SubModelPartsBegin()
Definition: model_part.h:1698
void AddNode(NodeType::Pointer pNewNode, IndexType ThisIndex=0)
Definition: model_part.cpp:211
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
SizeType NumberOfElements(IndexType ThisIndex=0) const
Definition: model_part.h:1027
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
void AddElements(std::vector< IndexType > const &ElementIds, IndexType ThisIndex=0)
Definition: model_part.cpp:941
SizeType NumberOfNodes(IndexType ThisIndex=0) const
Definition: model_part.h:341
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
iterator_adaptor iterator
Definition: pointer_hash_map_set.h:153
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
iterator end()
Definition: pointer_vector.h:177
iterator begin()
Definition: pointer_vector.h:169
void push_back(const TPointerType &x)
Definition: pointer_vector.h:270
Definition: post_process_utilities.hpp:35
void RebuildPostProcessModelPart(ModelPart &r_post_model_part, ModelPart &r_main_model_part)
Definition: postprocess_utilities.h:32
PostProcessUtilities()
Default constructor.
Definition: postprocess_utilities.h:26
ModelPart::ElementsContainerType ElementsArrayType
Definition: postprocess_utilities.h:19
virtual ~PostProcessUtilities()
Destructor.
Definition: postprocess_utilities.h:30
ModelPart::NodesContainerType NodesContainerType
Definition: postprocess_utilities.h:20
KRATOS_CLASS_POINTER_DEFINITION(PostProcessUtilities)
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
integer i
Definition: TensorModule.f:17
Definition: mesh_converter.cpp:38