KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
model_part_utils.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // license: OptimizationApplication/license.txt
9 //
10 // Main author: Suneth Warnakulasuriya
11 //
12 
13 #pragma once
14 
15 // System includes
16 #include <map>
17 #include <set>
18 #include <sstream>
19 #include <string>
20 #include <vector>
21 
22 // Project includes
23 #include "includes/define.h"
24 #include "includes/model_part.h"
25 
26 // Application includes
27 
28 namespace Kratos {
29 
32 
33 class KRATOS_API(OPTIMIZATION_APPLICATION) ModelPartUtils
34 {
35 public:
38 
39  using IndexType = std::size_t;
40 
44 
85  static std::vector<ModelPart*> GetModelPartsWithCommonReferenceEntities(
86  const std::vector<ModelPart*>& rExaminedModelPartsList,
87  const std::vector<ModelPart*>& rReferenceModelParts,
88  const bool AreNodesConsidered,
89  const bool AreConditionsConsidered,
90  const bool AreElementsConsidered,
91  const bool AreNeighboursConsidered,
92  const IndexType EchoLevel = 0);
93 
101  static void RemoveModelPartsWithCommonReferenceEntitiesBetweenReferenceListAndExaminedList(
102  const std::vector<ModelPart*> rModelParts);
103 
104  static void LogModelPartStatus(
105  ModelPart& rModelPart,
106  const std::string& rStatus);
107 
108  static std::vector<std::string> GetModelPartStatusLog(ModelPart& rModelPart);
109 
110  static bool CheckModelPartStatus(
111  const ModelPart& rModelPart,
112  const std::string& rStatus);
113 
115 };
116 
118 } // namespace Kratos
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
std::size_t IndexType
Definition: model_part_utils.h:39
static int EchoLevel
Definition: co_sim_EMPIRE_API.h:42
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21