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: Dharmin Shah
11 // Bence Rochlitz
12 //
13 // Supervised by: Jordi Cotela
14 // Suneth Warnakulasuriya
15 //
16 
17 #if !defined(KRATOS_K_OMEGA_ELEMENT_DATA_K_ELEMENT_DATA_H_INCLUDED)
18 #define KRATOS_K_OMEGA_ELEMENT_DATA_K_ELEMENT_DATA_H_INCLUDED
19 
20 // System includes
21 
22 // Project includes
23 #include "containers/variable.h"
25 #include "includes/node.h"
26 #include "includes/process_info.h"
28 
29 // Application includes
31 
32 namespace Kratos
33 {
36 
37 namespace KOmegaElementData
38 {
39 template <unsigned int TDim>
41 {
42 public:
45 
47 
48  using NodeType = Node;
49 
51 
55 
57  const GeometryType& rGeometry,
58  const Properties& rProperties,
59  const ProcessInfo& rProcessInfo)
60  : BaseType(rGeometry, rProperties, rProcessInfo)
61  {
62  }
63 
64  ~KElementData() override = default;
65 
69 
70  static const Variable<double>& GetScalarVariable();
71 
72  static void Check(
73  const Element& rElement,
74  const ProcessInfo& rCurrentProcessInfo);
75 
76  static const std::string GetName()
77  {
78  return "KOmegaKElementData";
79  }
80 
83 
84  void CalculateConstants(
85  const ProcessInfo& rCurrentProcessInfo);
86 
88  const Vector& rShapeFunctions,
89  const Matrix& rShapeFunctionDerivatives,
90  const int Step = 0);
91 
93 
94 protected:
97 
101  using BaseType::mSourceTerm;
102 
104 
109  double mSigmaK;
110  double mBetaStar;
111  double mDensity;
112 
114 };
115 
117 
118 } // namespace KOmegaElementData
119 
120 } // namespace Kratos
121 
122 #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:41
double mVelocityDivergence
Definition: k_element_data.h:108
KElementData(const GeometryType &rGeometry, const Properties &rProperties, const ProcessInfo &rProcessInfo)
Definition: k_element_data.h:56
static void Check(const Element &rElement, const ProcessInfo &rCurrentProcessInfo)
Definition: k_element_data.cpp:44
double mTurbulentKineticEnergy
Definition: k_element_data.h:106
double mSigmaK
Definition: k_element_data.h:109
double mDensity
Definition: k_element_data.h:111
void CalculateGaussPointData(const Vector &rShapeFunctions, const Matrix &rShapeFunctionDerivatives, const int Step=0)
Definition: k_element_data.cpp:74
void CalculateConstants(const ProcessInfo &rCurrentProcessInfo)
Definition: k_element_data.cpp:65
static const Variable< double > & GetScalarVariable()
Definition: k_element_data.cpp:38
BoundedMatrix< double, TDim, TDim > mVelocityGradient
Definition: k_element_data.h:103
double mTurbulentKinematicViscosity
Definition: k_element_data.h:105
double mKinematicViscosity
Definition: k_element_data.h:107
static const std::string GetName()
Definition: k_element_data.h:76
double mBetaStar
Definition: k_element_data.h:110
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