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::RansApplicationTestUtilities Namespace Reference

Typedefs

using IndexType = std::size_t
 

Functions

int RandomGenerator (const int X0, const int A, const int M, const int C, const int L, const int Count=0)
 
template<>
void AssignRandomValues (double &rValue, const std::string &rSeed, const double MinValue, const double MaxValue)
 
template<>
void AssignRandomValues (array_1d< double, 3 > &rValue, const std::string &rSeed, const double MinValue, const double MaxValue)
 
ModelPartCreateTestModelPart (Model &rModel, const std::string &rElementName, const std::string &rConditionName, const std::function< void(ModelPart &rModelPart)> &rAddNodalSolutionStepVariablesFuncion, const std::function< void(ModelPart::NodeType &)> &rAddDofsFunction, const std::function< void(Properties &)> &rSetProperties, const int BufferSize)
 
ModelPartCreateScalarVariableTestModelPart (Model &rModel, const std::string &rElementName, const std::string &rConditionName, const std::function< void(ModelPart &rModelPart)> &rAddNodalSolutionStepVariablesFuncion, const std::function< void(Properties &)> &rSetProperties, const Variable< double > &rDofVariable, const int BufferSize, const bool DoInitializeElements, const bool DoInitializeConditions)
 
template<class TDataType >
void RandomFillNodalHistoricalVariable (ModelPart &rModelPart, const Variable< TDataType > &rVariable, const double MinValue, const double MaxValue, const int Step)
 
template<class TContainerType , class TDataType >
void RandomFillContainerVariable (ModelPart &rModelPart, const Variable< TDataType > &rVariable, const double MinValue, const double MaxValue)
 
template<class TContainerType >
void TestEquationIdVector (ModelPart &rModelPart)
 
template<class TContainerType >
void TestGetDofList (ModelPart &rModelPart, const Variable< double > &rVariable)
 
void CheckElementsAndConditions (const ModelPart &rModelPart)
 
template void TestEquationIdVector< ModelPart::ElementsContainerType > (ModelPart &)
 
template void TestEquationIdVector< ModelPart::ConditionsContainerType > (ModelPart &)
 
template void TestGetDofList< ModelPart::ElementsContainerType > (ModelPart &, const Variable< double > &)
 
template void TestGetDofList< ModelPart::ConditionsContainerType > (ModelPart &, const Variable< double > &)
 
template void RandomFillNodalHistoricalVariable< double > (ModelPart &, const Variable< double > &, const double, const double, const int)
 
template void RandomFillNodalHistoricalVariable< array_1d< double, 3 > > (ModelPart &, const Variable< array_1d< double, 3 >> &, const double, const double, const int)
 
template void RandomFillContainerVariable< ModelPart::NodesContainerType, array_1d< double, 3 > > (ModelPart &, const Variable< array_1d< double, 3 >> &, const double, const double)
 
template void RandomFillContainerVariable< ModelPart::ConditionsContainerType, array_1d< double, 3 > > (ModelPart &, const Variable< array_1d< double, 3 >> &, const double, const double)
 
template void RandomFillContainerVariable< ModelPart::ElementsContainerType, array_1d< double, 3 > > (ModelPart &, const Variable< array_1d< double, 3 >> &, const double, const double)
 
template void RandomFillContainerVariable< ModelPart::NodesContainerType, double > (ModelPart &, const Variable< double > &, const double, const double)
 
template void RandomFillContainerVariable< ModelPart::ConditionsContainerType, double > (ModelPart &, const Variable< double > &, const double, const double)
 
template void RandomFillContainerVariable< ModelPart::ElementsContainerType, double > (ModelPart &, const Variable< double > &, const double, const double)
 
template<class TDataType >
void AssignRandomValues (TDataType &rValue, const std::string &rSeed, const double MinValue=0.0, const double MaxValue=1.0)
 

Typedef Documentation

◆ IndexType

Function Documentation

◆ AssignRandomValues() [1/3]

template<>
void Kratos::RansApplicationTestUtilities::AssignRandomValues ( array_1d< double, 3 > &  rValue,
const std::string &  rSeed,
const double  MinValue,
const double  MaxValue 
)

◆ AssignRandomValues() [2/3]

template<>
void Kratos::RansApplicationTestUtilities::AssignRandomValues ( double rValue,
const std::string &  rSeed,
const double  MinValue,
const double  MaxValue 
)

◆ AssignRandomValues() [3/3]

template<class TDataType >
void Kratos::RansApplicationTestUtilities::AssignRandomValues ( TDataType &  rValue,
const std::string &  rSeed,
const double  MinValue = 0.0,
const double  MaxValue = 1.0 
)

◆ CheckElementsAndConditions()

void Kratos::RansApplicationTestUtilities::CheckElementsAndConditions ( const ModelPart rModelPart)

◆ CreateScalarVariableTestModelPart()

ModelPart & Kratos::RansApplicationTestUtilities::CreateScalarVariableTestModelPart ( Model rModel,
const std::string &  rElementName,
const std::string &  rConditionName,
const std::function< void(ModelPart &rModelPart)> &  rAddNodalSolutionStepVariablesFuncion,
const std::function< void(Properties &)> &  rSetProperties,
const Variable< double > &  rDofVariable,
const int  BufferSize,
const bool  DoInitializeElements,
const bool  DoInitializeConditions 
)

◆ CreateTestModelPart()

ModelPart & Kratos::RansApplicationTestUtilities::CreateTestModelPart ( Model rModel,
const std::string &  rElementName,
const std::string &  rConditionName,
const std::function< void(ModelPart &rModelPart)> &  rAddNodalSolutionStepVariablesFuncion,
const std::function< void(ModelPart::NodeType &)> &  rAddDofsFunction,
const std::function< void(Properties &)> &  rSetProperties,
const int  BufferSize 
)

◆ RandomFillContainerVariable()

template<class TContainerType , class TDataType >
void Kratos::RansApplicationTestUtilities::RandomFillContainerVariable ( ModelPart rModelPart,
const Variable< TDataType > &  rVariable,
const double  MinValue,
const double  MaxValue 
)

◆ RandomFillContainerVariable< ModelPart::ConditionsContainerType, array_1d< double, 3 > >()

◆ RandomFillContainerVariable< ModelPart::ConditionsContainerType, double >()

◆ RandomFillContainerVariable< ModelPart::ElementsContainerType, array_1d< double, 3 > >()

◆ RandomFillContainerVariable< ModelPart::ElementsContainerType, double >()

◆ RandomFillContainerVariable< ModelPart::NodesContainerType, array_1d< double, 3 > >()

◆ RandomFillContainerVariable< ModelPart::NodesContainerType, double >()

◆ RandomFillNodalHistoricalVariable()

template<class TDataType >
void Kratos::RansApplicationTestUtilities::RandomFillNodalHistoricalVariable ( ModelPart rModelPart,
const Variable< TDataType > &  rVariable,
const double  MinValue,
const double  MaxValue,
const int  Step 
)

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

template void Kratos::RansApplicationTestUtilities::RandomFillNodalHistoricalVariable< array_1d< double, 3 > > ( ModelPart ,
const Variable< array_1d< double, 3 >> &  ,
const double  ,
const double  ,
const int   
)

◆ RandomFillNodalHistoricalVariable< double >()

template void Kratos::RansApplicationTestUtilities::RandomFillNodalHistoricalVariable< double > ( ModelPart ,
const Variable< double > &  ,
const double  ,
const double  ,
const int   
)

◆ RandomGenerator()

int Kratos::RansApplicationTestUtilities::RandomGenerator ( const int  X0,
const int  A,
const int  M,
const int  C,
const int  L,
const int  Count = 0 
)

◆ TestEquationIdVector()

template<class TContainerType >
void Kratos::RansApplicationTestUtilities::TestEquationIdVector ( ModelPart rModelPart)

◆ TestEquationIdVector< ModelPart::ConditionsContainerType >()

◆ TestEquationIdVector< ModelPart::ElementsContainerType >()

◆ TestGetDofList()

template<class TContainerType >
void Kratos::RansApplicationTestUtilities::TestGetDofList ( ModelPart rModelPart,
const Variable< double > &  rVariable 
)

◆ TestGetDofList< ModelPart::ConditionsContainerType >()

◆ TestGetDofList< ModelPart::ElementsContainerType >()