13 #if !defined(KRATOS_RANS_APPLICATION_CALCULATION_UTILITIES_H_INCLUDED)
14 #define KRATOS_RANS_APPLICATION_CALCULATION_UTILITIES_H_INCLUDED
31 namespace RansCalculationUtilities
40 template<
class TDataType>
44 const long double value_1,
45 const long double value_2)
51 const long double value)
75 template <std::
size_t TDim>
82 template <
unsigned int TDim>
86 template <
unsigned int TNumNodes>
90 const Vector& rGaussShapeFunctions);
95 const int MaxIterations = 20,
96 const double Tolerance = 1
e-6);
101 const double WallVelocity,
102 const double WallHeight,
103 const double KinematicViscosity,
106 const int MaxIterations = 20,
107 const double Tolerance = 1
e-6);
122 template <
class TContainerType>
135 template<
class TContainerType>
Base class for all Conditions.
Definition: condition.h:59
Base class for all Elements.
Definition: element.h:60
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Element ElementType
Definition: model_part.h:120
Node NodeType
Definition: model_part.h:117
Condition ConditionType
Definition: model_part.h:121
This class defines the node.
Definition: node.h:65
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
static double max(double a, double b)
Definition: GeometryFunctions.h:79
double CalculateMatrixTrace(const BoundedMatrix< double, TDim, TDim > &rMatrix)
Definition: rans_calculation_utilities.cpp:92
bool IsWallFunctionActive(const ConditionType &rCondition)
Definition: rans_calculation_utilities.cpp:292
bool IsInlet(const ConditionType &rCondition)
Definition: rans_calculation_utilities.cpp:298
void CalculateGeometryParameterDerivativesShapeSensitivity(BoundedMatrix< double, TDim, TDim > &rOutput, const ShapeParameter &rShapeDerivative, const Matrix &rDnDe, const Matrix &rDeDx)
Definition: rans_calculation_utilities.cpp:138
void CalculateConditionGeometryData(const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod, Vector &rGaussWeights, Matrix &rNContainer)
Definition: rans_calculation_utilities.cpp:62
void CalculateNumberOfNeighbourEntities(ModelPart &rModelPart, const Variable< double > &rOutputVariable)
Calculates number of neighbours.
Definition: rans_calculation_utilities.cpp:326
std::tuple< TDataType &, const Variable< TDataType > & > RefVariablePair
Definition: rans_calculation_utilities.h:41
long double SoftPositive(const long double value)
Definition: rans_calculation_utilities.h:50
array_1d< double, 3 > CalculateWallVelocity(const ConditionType &rCondition)
Definition: rans_calculation_utilities.cpp:218
double CalculateWallHeight(const ConditionType &rCondition, const array_1d< double, 3 > &rNormal)
Definition: rans_calculation_utilities.cpp:195
ModelPart::NodesContainerType & GetContainer(ModelPart &rModelPart)
Definition: rans_calculation_utilities.cpp:305
void CalculateGaussSensitivities(BoundedVector< double, TNumNodes > &rGaussSensitivities, const BoundedVector< double, TNumNodes > &rNodalSensitivities, const Vector &rGaussShapeFunctions)
Definition: rans_calculation_utilities.cpp:156
long double SoftMax(const long double value_1, const long double value_2)
Definition: rans_calculation_utilities.h:43
void CalculateGeometryData(const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod, Vector &rGaussWeights, Matrix &rNContainer, GeometryType::ShapeFunctionsGradientsType &rDN_DX)
Definition: rans_calculation_utilities.cpp:31
double CalculateLogarithmicYPlusLimit(const double Kappa, const double Beta, const int MaxIterations, const double Tolerance)
Definition: rans_calculation_utilities.cpp:168
void CalculateYPlusAndUtau(double &rYPlus, double &rUTau, const double WallVelocity, const double WallHeight, const double KinematicViscosity, const double Kappa, const double Beta, const int MaxIterations, const double Tolerance)
Definition: rans_calculation_utilities.cpp:247
GeometryType::ShapeFunctionsGradientsType CalculateGeometryParameterDerivatives(const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod)
Definition: rans_calculation_utilities.cpp:103
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Kappa
Definition: generate_hyper_elastic_simo_taylor_neo_hookean.py:11
def Beta(n, j)
Definition: quadrature.py:104
e
Definition: run_cpp_mpi_tests.py:31
Definition: geometrical_sensitivity_utility.h:33