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.
factor_elements_and_conditions_utility.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // license: HDF5Application/license.txt
9 //
10 // Main author: Michael Andre, https://github.com/msandre
11 //
12 
17 #if !defined(KRATOS_FACTOR_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED)
18 #define KRATOS_FACTOR_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED
19 
20 // System includes
21 #include <vector>
22 #include <string>
23 
24 // External includes
25 
26 // Project includes
27 #include "includes/element.h"
28 #include "includes/condition.h"
31 
32 namespace Kratos
33 {
34 
35 typedef PointerVectorSet<Element, IndexedObject> ElementsContainerType;
36 
37 typedef PointerVectorSet<Condition, IndexedObject> ConditionsContainerType;
38 
40 
47 std::vector<ElementsContainerType> FactorElements(ElementsContainerType const& rElements);
48 
49 void FactorElements(ElementsContainerType const& rElements,
50  std::vector<std::string>& rNames,
51  std::vector<ElementsContainerType>& rFactoredElements);
52 
53 std::vector<ConditionsContainerType> FactorConditions(ConditionsContainerType const& rConditions);
54 
55 void FactorConditions(ConditionsContainerType const& rConditions,
56  std::vector<std::string>& rNames,
57  std::vector<ConditionsContainerType>& rFactoredConditions);
58 
59 } // namespace Kratos.
60 
61 #endif // KRATOS_FACTOR_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED defined
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::vector< ConditionsContainerType > FactorConditions(ConditionsContainerType const &rConditions)
Definition: factor_elements_and_conditions_utility.cpp:252
ModelPart::ConditionsContainerType ConditionsContainerType
Definition: find_conditions_neighbours_process.h:45
ModelPart::ElementsContainerType ElementsContainerType
Definition: clear_contact_conditions_mesher_process.hpp:43
std::vector< ElementsContainerType > FactorElements(ElementsContainerType const &rElements)
Factor a collection of elements into uniform containers.
Definition: factor_elements_and_conditions_utility.cpp:229