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.
Typedefs | Functions
Kratos::RansCalculationUtilities Namespace Reference

Typedefs

using NodeType = ModelPart::NodeType
 Node type. More...
 
using ElementType = ModelPart::ElementType
 
using ConditionType = ModelPart::ConditionType
 
using GeometryType = Geometry< NodeType >
 Geometry type (using with given NodeType) More...
 
template<class TDataType >
using RefVariablePair = std::tuple< TDataType &, const Variable< TDataType > & >
 

Functions

void CalculateGeometryData (const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod, Vector &rGaussWeights, Matrix &rNContainer, GeometryType::ShapeFunctionsGradientsType &rDN_DX)
 
void CalculateConditionGeometryData (const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod, Vector &rGaussWeights, Matrix &rNContainer)
 
template<unsigned int TDim>
double CalculateMatrixTrace (const BoundedMatrix< double, TDim, TDim > &rMatrix)
 
GeometryType::ShapeFunctionsGradientsType CalculateGeometryParameterDerivatives (const GeometryType &rGeometry, const GeometryData::IntegrationMethod &rIntegrationMethod)
 
template<std::size_t TDim>
void CalculateGeometryParameterDerivativesShapeSensitivity (BoundedMatrix< double, TDim, TDim > &rOutput, const ShapeParameter &rShapeDerivative, const Matrix &rDnDe, const Matrix &rDeDx)
 
template<unsigned int TNumNodes>
void CalculateGaussSensitivities (BoundedVector< double, TNumNodes > &rGaussSensitivities, const BoundedVector< double, TNumNodes > &rNodalSensitivities, const Vector &rGaussShapeFunctions)
 
double CalculateLogarithmicYPlusLimit (const double Kappa, const double Beta, const int MaxIterations, const double Tolerance)
 
double CalculateWallHeight (const ConditionType &rCondition, const array_1d< double, 3 > &rNormal)
 
array_1d< double, 3 > CalculateWallVelocity (const ConditionType &rCondition)
 
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)
 
bool IsWallFunctionActive (const ConditionType &rCondition)
 
bool IsInlet (const ConditionType &rCondition)
 
template<>
ModelPart::NodesContainerTypeGetContainer (ModelPart &rModelPart)
 
template<class TContainerType >
void CalculateNumberOfNeighbourEntities (ModelPart &rModelPart, const Variable< double > &rOutputVariable)
 Calculates number of neighbours. More...
 
template double CalculateMatrixTrace< 2 > (const BoundedMatrix< double, 2, 2 > &)
 
template double CalculateMatrixTrace< 3 > (const BoundedMatrix< double, 3, 3 > &)
 
template void CalculateGeometryParameterDerivativesShapeSensitivity< 2 > (BoundedMatrix< double, 2, 2 > &, const ShapeParameter &, const Matrix &, const Matrix &)
 
template void CalculateGeometryParameterDerivativesShapeSensitivity< 3 > (BoundedMatrix< double, 3, 3 > &, const ShapeParameter &, const Matrix &, const Matrix &)
 
template void CalculateGaussSensitivities< 3 > (BoundedVector< double, 3 > &, const BoundedVector< double, 3 > &, const Vector &)
 
template void CalculateGaussSensitivities< 4 > (BoundedVector< double, 4 > &, const BoundedVector< double, 4 > &, const Vector &)
 
template void CalculateNumberOfNeighbourEntities< ModelPart::ConditionsContainerType > (ModelPart &, const Variable< double > &)
 
template void CalculateNumberOfNeighbourEntities< ModelPart::ElementsContainerType > (ModelPart &, const Variable< double > &)
 
long double SoftMax (const long double value_1, const long double value_2)
 
long double SoftPositive (const long double value)
 

Typedef Documentation

◆ ConditionType

◆ ElementType

◆ GeometryType

Geometry type (using with given NodeType)

◆ NodeType

Node type.

◆ RefVariablePair

template<class TDataType >
using Kratos::RansCalculationUtilities::RefVariablePair = typedef std::tuple<TDataType&, const Variable<TDataType>&>

Function Documentation

◆ CalculateConditionGeometryData()

void Kratos::RansCalculationUtilities::CalculateConditionGeometryData ( const GeometryType rGeometry,
const GeometryData::IntegrationMethod rIntegrationMethod,
Vector rGaussWeights,
Matrix rNContainer 
)

◆ CalculateGaussSensitivities()

template<unsigned int TNumNodes>
void Kratos::RansCalculationUtilities::CalculateGaussSensitivities ( BoundedVector< double, TNumNodes > &  rGaussSensitivities,
const BoundedVector< double, TNumNodes > &  rNodalSensitivities,
const Vector rGaussShapeFunctions 
)

◆ CalculateGaussSensitivities< 3 >()

template void Kratos::RansCalculationUtilities::CalculateGaussSensitivities< 3 > ( BoundedVector< double, 3 > &  ,
const BoundedVector< double, 3 > &  ,
const Vector  
)

◆ CalculateGaussSensitivities< 4 >()

template void Kratos::RansCalculationUtilities::CalculateGaussSensitivities< 4 > ( BoundedVector< double, 4 > &  ,
const BoundedVector< double, 4 > &  ,
const Vector  
)

◆ CalculateGeometryData()

void Kratos::RansCalculationUtilities::CalculateGeometryData ( const GeometryType rGeometry,
const GeometryData::IntegrationMethod rIntegrationMethod,
Vector rGaussWeights,
Matrix rNContainer,
GeometryType::ShapeFunctionsGradientsType rDN_DX 
)

◆ CalculateGeometryParameterDerivatives()

GeometryType::ShapeFunctionsGradientsType Kratos::RansCalculationUtilities::CalculateGeometryParameterDerivatives ( const GeometryType rGeometry,
const GeometryData::IntegrationMethod rIntegrationMethod 
)

◆ CalculateGeometryParameterDerivativesShapeSensitivity()

template<std::size_t TDim>
void Kratos::RansCalculationUtilities::CalculateGeometryParameterDerivativesShapeSensitivity ( BoundedMatrix< double, TDim, TDim > &  rOutput,
const ShapeParameter rShapeDerivative,
const Matrix rDnDe,
const Matrix rDeDx 
)

◆ CalculateGeometryParameterDerivativesShapeSensitivity< 2 >()

◆ CalculateGeometryParameterDerivativesShapeSensitivity< 3 >()

◆ CalculateLogarithmicYPlusLimit()

double Kratos::RansCalculationUtilities::CalculateLogarithmicYPlusLimit ( const double  Kappa,
const double  Beta,
const int  MaxIterations,
const double  Tolerance 
)

◆ CalculateMatrixTrace()

template<unsigned int TDim>
double Kratos::RansCalculationUtilities::CalculateMatrixTrace ( const BoundedMatrix< double, TDim, TDim > &  rMatrix)

◆ CalculateMatrixTrace< 2 >()

◆ CalculateMatrixTrace< 3 >()

◆ CalculateNumberOfNeighbourEntities()

template<class TContainerType >
void Kratos::RansCalculationUtilities::CalculateNumberOfNeighbourEntities ( ModelPart rModelPart,
const Variable< double > &  rOutputVariable 
)

Calculates number of neighbours.

Calculates number of neighbours for a given entities in given model part. The number of neighbours will be stored in rOutputVariable

Template Parameters
TContainerTypeEntities type (ConditionsContainerType, ElementsContainerType)
Parameters
rModelPartModel part to look for neighbours
rOutputVariableVariable to store number of neighbour entities.

◆ CalculateNumberOfNeighbourEntities< ModelPart::ConditionsContainerType >()

◆ CalculateNumberOfNeighbourEntities< ModelPart::ElementsContainerType >()

◆ CalculateWallHeight()

double Kratos::RansCalculationUtilities::CalculateWallHeight ( const ConditionType rCondition,
const array_1d< double, 3 > &  rNormal 
)

◆ CalculateWallVelocity()

array_1d< double, 3 > Kratos::RansCalculationUtilities::CalculateWallVelocity ( const ConditionType rCondition)

◆ CalculateYPlusAndUtau()

void Kratos::RansCalculationUtilities::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 
)

◆ GetContainer()

template<>
ModelPart::ElementsContainerType & Kratos::RansCalculationUtilities::GetContainer ( ModelPart rModelPart)

◆ IsInlet()

bool Kratos::RansCalculationUtilities::IsInlet ( const ConditionType rCondition)

◆ IsWallFunctionActive()

bool Kratos::RansCalculationUtilities::IsWallFunctionActive ( const ConditionType rCondition)

◆ SoftMax()

long double Kratos::RansCalculationUtilities::SoftMax ( const long double  value_1,
const long double  value_2 
)
inline

◆ SoftPositive()

long double Kratos::RansCalculationUtilities::SoftPositive ( const long double  value)
inline