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.
compare_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 // Kratos default license: kratos/license.txt
9 //
10 // Main author: Carlos Roig
11 // Vicente Mataix Ferrandiz
12 //
13 
14 #if !defined(KRATOS_COMPARE_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED)
15 #define KRATOS_COMPARE_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED
16 
17 // System includes
18 
19 // External includes
20 
21 // Project includes
22 #include "includes/define.h"
23 #include "includes/element.h"
24 #include "includes/condition.h"
26 
27 namespace Kratos
28 {
31 // A utility for comparison of dynamic types of elements and conditions.
33 {
34 public:
40 
41  static void KRATOS_API(KRATOS_CORE) GetRegisteredName(
42  const Geometry<Node>& rGeometry,
43  std::string& rName);
44 
45  static void GetRegisteredName(
46  const Geometry<Node>* pGeometry,
47  std::string& rName)
48  {
50  }
51 
52  static void KRATOS_API(KRATOS_CORE) GetRegisteredName(
53  const Element& rElement,
54  std::string& rName);
55 
56  static void GetRegisteredName(const Element* pElement, std::string& rName) {
58  }
59 
60  static void KRATOS_API(KRATOS_CORE) GetRegisteredName(
61  const Condition& rCondition,
62  std::string& rName);
63 
64  static void GetRegisteredName(const Condition* pCondition, std::string& rName) {
66  }
67 
69 
70 private:
74 };
76 } // namespace Kratos.
77 
78 #endif // KRATOS_COMPARE_ELEMENTS_AND_CONDITIONS_UTILITY_H_INCLUDED defined
Definition: compare_elements_and_conditions_utility.h:33
static void GetRegisteredName(const Geometry< Node > *pGeometry, std::string &rName)
Definition: compare_elements_and_conditions_utility.h:45
static void GetRegisteredName(const Element *pElement, std::string &rName)
Definition: compare_elements_and_conditions_utility.h:56
static void GetRegisteredName(const Condition *pCondition, std::string &rName)
Definition: compare_elements_and_conditions_utility.h:64
static void GetRegisteredName(const Geometry< Node > &rGeometry, std::string &rName)
Definition: compare_elements_and_conditions_utility.cpp:26
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
Geometry base class.
Definition: geometry.h:71
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21