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.
k_element_data.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 authors: Suneth Warnakulasuriya
11 //
12 
13 #if !defined(KRATOS_K_EPSILON_HIGH_RE_ELEMENT_DATA_K_ELEMENT_DATA_H_INCLUDED)
14 #define KRATOS_K_EPSILON_HIGH_RE_ELEMENT_DATA_K_ELEMENT_DATA_H_INCLUDED
15 
16 // System includes
17 
18 // Project includes
19 #include "containers/variable.h"
21 #include "includes/node.h"
22 #include "includes/process_info.h"
24 
25 // Application includes
27 
28 namespace Kratos
29 {
32 
33 namespace KEpsilonElementData
34 {
35 template <unsigned int TDim>
37 {
38 public:
41 
43 
44  using NodeType = Node;
45 
47 
51 
53  const GeometryType& rGeometry,
54  const Properties& rProperties,
55  const ProcessInfo& rProcessInfo)
56  : BaseType(rGeometry, rProperties, rProcessInfo)
57  {
58  }
59 
60  ~KElementData() override = default;
61 
65 
66  static const Variable<double>& GetScalarVariable();
67 
68  static void Check(
69  const Element& rElement,
70  const ProcessInfo& rCurrentProcessInfo);
71 
72  static const std::string GetName() { return "KEpsilonKElementData"; }
73 
77 
78  void CalculateConstants(
79  const ProcessInfo& rCurrentProcessInfo);
80 
82  const Vector& rShapeFunctions,
83  const Matrix& rShapeFunctionDerivatives,
84  const int Step = 0);
85 
87 
88 protected:
91 
96 
98 
99  double mGamma;
105  double mCmu;
106  double mDensity;
107 
109 };
110 
112 
113 } // namespace KEpsilonElementData
114 
115 } // namespace Kratos
116 
117 #endif
Base class to hold Convection-Diffusion-Reaction transport equation data.
Definition: convection_diffusion_reaction_element_data.h:64
double mSourceTerm
Definition: convection_diffusion_reaction_element_data.h:137
double mReactionTerm
Definition: convection_diffusion_reaction_element_data.h:136
ArrayD mEffectiveVelocity
Definition: convection_diffusion_reaction_element_data.h:134
Geometry< Node > GeometryType
Definition: convection_diffusion_reaction_element_data.h:69
double mEffectiveKinematicViscosity
Definition: convection_diffusion_reaction_element_data.h:135
Base class for all Elements.
Definition: element.h:60
Geometry base class.
Definition: geometry.h:71
Definition: k_element_data.h:37
double mCmu
Definition: k_element_data.h:105
double mVelocityDivergence
Definition: k_element_data.h:103
double mTurbulentKineticEnergy
Definition: k_element_data.h:101
double mGamma
Definition: k_element_data.h:99
double mTurbulentKinematicViscosity
Definition: k_element_data.h:100
KElementData(const GeometryType &rGeometry, const Properties &rProperties, const ProcessInfo &rProcessInfo)
Definition: k_element_data.h:52
double mKinematicViscosity
Definition: k_element_data.h:102
static void Check(const Element &rElement, const ProcessInfo &rCurrentProcessInfo)
Definition: k_element_data.cpp:40
void CalculateConstants(const ProcessInfo &rCurrentProcessInfo)
Definition: k_element_data.cpp:74
void CalculateGaussPointData(const Vector &rShapeFunctions, const Matrix &rShapeFunctionDerivatives, const int Step=0)
Definition: k_element_data.cpp:87
static const Variable< double > & GetScalarVariable()
Definition: k_element_data.cpp:34
static const std::string GetName()
Definition: k_element_data.h:72
BoundedMatrix< double, TDim, TDim > mVelocityGradient
Definition: k_element_data.h:97
double mDensity
Definition: k_element_data.h:106
double mInvTurbulentKineticEnergySigma
Definition: k_element_data.h:104
This class defines the node.
Definition: node.h:65
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21