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.
omega_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_OMEGA_ELEMENT_DATA_H_INCLUDED)
18 #define KRATOS_K_OMEGA_ELEMENT_DATA_OMEGA_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  ~OmegaElementData() 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 "KOmegaOmegaElementData";
79  }
80 
84 
85  void CalculateConstants(
86  const ProcessInfo& rCurrentProcessInfo);
87 
89  const Vector& rShapeFunctions,
90  const Matrix& rShapeFunctionDerivatives,
91  const int Step = 0);
92 
94 
95 protected:
98 
102  using BaseType::mSourceTerm;
103 
105 
110  double mSigmaOmega;
111  double mBeta;
112  double mGamma;
113  double mDensity;
114 
116 };
117 
119 
120 } // namespace KOmegaElementData
121 
122 } // namespace Kratos
123 
124 #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: omega_element_data.h:41
static void Check(const Element &rElement, const ProcessInfo &rCurrentProcessInfo)
Definition: omega_element_data.cpp:44
double mTurbulentKinematicViscosity
Definition: omega_element_data.h:107
void CalculateConstants(const ProcessInfo &rCurrentProcessInfo)
Definition: omega_element_data.cpp:81
double mGamma
Definition: omega_element_data.h:112
static const Variable< double > & GetScalarVariable()
Definition: omega_element_data.cpp:38
static const std::string GetName()
Definition: omega_element_data.h:76
OmegaElementData(const GeometryType &rGeometry, const Properties &rProperties, const ProcessInfo &rProcessInfo)
Definition: omega_element_data.h:56
double mTurbulentKineticEnergy
Definition: omega_element_data.h:106
double mDensity
Definition: omega_element_data.h:113
double mKinematicViscosity
Definition: omega_element_data.h:108
void CalculateGaussPointData(const Vector &rShapeFunctions, const Matrix &rShapeFunctionDerivatives, const int Step=0)
Definition: omega_element_data.cpp:91
double mSigmaOmega
Definition: omega_element_data.h:110
BoundedMatrix< double, TDim, TDim > mVelocityGradient
Definition: omega_element_data.h:104
double mBeta
Definition: omega_element_data.h:111
double mVelocityDivergence
Definition: omega_element_data.h:109
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