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

Functions

std::tuple< unsigned int, unsigned intClipScalarVariable (const double MinimumValue, const double MaximumValue, const Variable< double > &rVariable, ModelPart &rModelPart)
 Clipping scalar variable for given lower and upper bounds. More...
 
double GetMinimumScalarValue (const ModelPart &rModelPart, const Variable< double > &rVariable)
 
double GetMaximumScalarValue (const ModelPart &rModelPart, const Variable< double > &rVariable)
 
void GetNodalVariablesVector (Vector &rValues, const ModelPart::NodesContainerType &rNodes, const Variable< double > &rVariable)
 
void GetNodalArray (Vector &rNodalValues, const Element &rElement, const Variable< double > &rVariable)
 
void SetNodalVariables (ModelPart::NodesContainerType &rNodes, const Vector &rValues, const Variable< double > &rVariable)
 
void CopyNodalSolutionStepVariablesList (ModelPart &rOriginModelPart, ModelPart &rDestinationModelPart)
 
template<typename TDataType >
void AssignConditionVariableValuesToNodes (ModelPart &rModelPart, const Variable< TDataType > &rVariable, const Flags &rFlag, const bool FlagValue)
 
void AddAnalysisStep (ModelPart &rModelPart, const std::string &rStepName)
 
bool IsAnalysisStepCompleted (const ModelPart &rModelPart, const std::string &rStepName)
 
void AssignBoundaryFlagsToGeometries (ModelPart &rModelPart)
 
template<>
double GetVariableValueNorm (const double &rValue)
 
template<>
double GetVariableValueNorm (const array_1d< double, 3 > &rValue)
 
template<typename TDataType >
std::tuple< double, doubleCalculateTransientVariableConvergence (const ModelPart &rModelPart, const Variable< TDataType > &rVariable)
 
void SetElementConstitutiveLaws (ModelPart::ElementsContainerType &rElements)
 
template void AssignConditionVariableValuesToNodes< double > (ModelPart &, const Variable< double > &, const Flags &, const bool)
 
template void AssignConditionVariableValuesToNodes< array_1d< double, 3 > > (ModelPart &, const Variable< array_1d< double, 3 >> &, const Flags &, const bool)
 
template std::tuple< double, doubleCalculateTransientVariableConvergence< double > (const ModelPart &, const Variable< double > &)
 
template std::tuple< double, doubleCalculateTransientVariableConvergence< array_1d< double, 3 > > (const ModelPart &, const Variable< array_1d< double, 3 >> &)
 
template<typename TDataType >
double GetVariableValueNorm (const TDataType &rValue)
 

Function Documentation

◆ AddAnalysisStep()

void Kratos::RansVariableUtilities::AddAnalysisStep ( ModelPart rModelPart,
const std::string &  rStepName 
)

◆ AssignBoundaryFlagsToGeometries()

void Kratos::RansVariableUtilities::AssignBoundaryFlagsToGeometries ( ModelPart rModelPart)

◆ AssignConditionVariableValuesToNodes()

template<typename TDataType >
void Kratos::RansVariableUtilities::AssignConditionVariableValuesToNodes ( ModelPart rModelPart,
const Variable< TDataType > &  rVariable,
const Flags rFlag,
const bool  FlagValue 
)

◆ AssignConditionVariableValuesToNodes< array_1d< double, 3 > >()

template void Kratos::RansVariableUtilities::AssignConditionVariableValuesToNodes< array_1d< double, 3 > > ( ModelPart ,
const Variable< array_1d< double, 3 >> &  ,
const Flags ,
const bool   
)

◆ AssignConditionVariableValuesToNodes< double >()

template void Kratos::RansVariableUtilities::AssignConditionVariableValuesToNodes< double > ( ModelPart ,
const Variable< double > &  ,
const Flags ,
const bool   
)

◆ CalculateTransientVariableConvergence()

template<typename TDataType >
std::tuple< double, double > Kratos::RansVariableUtilities::CalculateTransientVariableConvergence ( const ModelPart rModelPart,
const Variable< TDataType > &  rVariable 
)

◆ CalculateTransientVariableConvergence< array_1d< double, 3 > >()

◆ CalculateTransientVariableConvergence< double >()

◆ ClipScalarVariable()

std::tuple< unsigned int, unsigned int > Kratos::RansVariableUtilities::ClipScalarVariable ( const double  MinimumValue,
const double  MaximumValue,
const Variable< double > &  rVariable,
ModelPart rModelPart 
)

Clipping scalar variable for given lower and upper bounds.

Parameters
MinimumValueLower bound of the scalar variable
MaximumValueUpper bound of the scalar variable
rVariableScalar variable
rModelPartModelPart to bound scalar variable
Returns
std::tuple<unsigned int, unsigned int> First argument will be number of nodes below lower bound, second argument will be number of nodes above upper bound

◆ CopyNodalSolutionStepVariablesList()

void Kratos::RansVariableUtilities::CopyNodalSolutionStepVariablesList ( ModelPart rOriginModelPart,
ModelPart rDestinationModelPart 
)

◆ GetMaximumScalarValue()

double Kratos::RansVariableUtilities::GetMaximumScalarValue ( const ModelPart rModelPart,
const Variable< double > &  rVariable 
)

◆ GetMinimumScalarValue()

double Kratos::RansVariableUtilities::GetMinimumScalarValue ( const ModelPart rModelPart,
const Variable< double > &  rVariable 
)

◆ GetNodalArray()

void Kratos::RansVariableUtilities::GetNodalArray ( Vector rNodalValues,
const Element rElement,
const Variable< double > &  rVariable 
)

◆ GetNodalVariablesVector()

void Kratos::RansVariableUtilities::GetNodalVariablesVector ( Vector rValues,
const ModelPart::NodesContainerType rNodes,
const Variable< double > &  rVariable 
)

◆ GetVariableValueNorm() [1/3]

template<>
double Kratos::RansVariableUtilities::GetVariableValueNorm ( const array_1d< double, 3 > &  rValue)

◆ GetVariableValueNorm() [2/3]

template<>
double Kratos::RansVariableUtilities::GetVariableValueNorm ( const double rValue)

◆ GetVariableValueNorm() [3/3]

template<typename TDataType >
double Kratos::RansVariableUtilities::GetVariableValueNorm ( const TDataType &  rValue)

◆ IsAnalysisStepCompleted()

bool Kratos::RansVariableUtilities::IsAnalysisStepCompleted ( const ModelPart rModelPart,
const std::string &  rStepName 
)

◆ SetElementConstitutiveLaws()

void Kratos::RansVariableUtilities::SetElementConstitutiveLaws ( ModelPart::ElementsContainerType rElements)

◆ SetNodalVariables()

void Kratos::RansVariableUtilities::SetNodalVariables ( ModelPart::NodesContainerType rNodes,
const Vector rValues,
const Variable< double > &  rVariable 
)