13 #ifndef KRATOS_WIND_MODEL_SUBDIVISION_UTILITIES
14 #define KRATOS_WIND_MODEL_SUBDIVISION_UTILITIES
49 static std::vector<Kratos::shared_ptr<ModelPart>> SortNodesBySlabs(
53 std::size_t numberOfSlabs,
63 static void SortNodes(
66 std::vector<ModelPart*>& rSubModelParts);
75 static void SortElements(
78 std::vector<ModelPart*>& rSubModelParts);
87 static void SortConditions(
90 std::vector<ModelPart*>& rSubModelParts);
111 template <
class TFunction = std::function<
void(ModelPart*, const std::vector<IndexType>&, IndexType)>>
112 void Apply(TFunction
function);
118 std::pair<std::vector<IndexType>,
129 bool isOpen =
false);
169 std::size_t numberOfSlabs,
181 std::size_t size()
const;
184 std::vector<Slab::Plane> mInnerPlanes;
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
This class defines and stores a lock and gives an interface to it.
Definition: lock_object.h:42
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
std::size_t IndexType
Pointer definition of ModelPart.
Definition: model_part.h:105
This class defines the node.
Definition: node.h:65
A subset of R^3 between two parallel planes.
Definition: model_subdivision_utilities.h:125
const Plane mTopPlane
Definition: model_subdivision_utilities.h:152
const Plane mBottomPlane
Definition: model_subdivision_utilities.h:151
const bool mIsOpen
Definition: model_subdivision_utilities.h:153
Definition: model_subdivision_utilities.h:157
Definition: model_subdivision_utilities.h:97
ModelPart::IndexType IndexType
Definition: model_subdivision_utilities.h:99
Utility for populating sub model parts.
Definition: model_subdivision_utilities.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::unique_ptr< T > unique_ptr
Definition: smart_pointers.h:33
Definition: model_subdivision_utilities.h:139
array_1d< double, 3 > mReferencePoint
Definition: model_subdivision_utilities.h:145
array_1d< double, 3 > mNormal
Definition: model_subdivision_utilities.h:146