13 #if !defined(KRATOS_RANS_TEST_UTILITIES_H_INCLUDED)
14 #define KRATOS_RANS_TEST_UTILITIES_H_INCLUDED
26 namespace RansApplicationTestUtilities
30 template <
class TDataType>
33 const std::string& rSeed,
34 const double MinValue = 0.0,
35 const double MaxValue = 1.0);
39 const std::string& rElementName,
40 const std::string& rConditionName,
41 const std::function<
void(
ModelPart& rModelPart)>& rAddNodalSolutionStepVariablesFuncion,
43 const std::function<
void(
Properties&)>& rSetProperties,
44 const int BufferSize = 2);
48 const std::string& rElementName,
49 const std::string& rConditionName,
50 const std::function<
void(
ModelPart& rModelPart)>& rAddNodalSolutionStepVariablesFuncion,
51 const std::function<
void(
Properties&)>& rSetProperties,
53 const int BufferSize = 2,
54 const bool DoInitializeElements =
true,
55 const bool DoInitializeConditions =
true);
57 template <
class TDataType>
61 const double MinValue = 0.0,
62 const double MaxValue = 1.0,
65 template <
class TContainerType,
class TDataType>
69 const double MinValue = 0.0,
70 const double MaxValue = 1.0);
72 template <
class TContainerType>
76 template <
class TContainerType>
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
void TestGetDofList(ModelPart &rModelPart, const Variable< double > &rVariable)
Definition: test_utilities.cpp:211
std::size_t IndexType
Definition: test_utilities.h:28
void TestEquationIdVector(ModelPart &rModelPart)
Definition: test_utilities.cpp:196
ModelPart & 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)
Definition: test_utilities.cpp:94
void CheckElementsAndConditions(const ModelPart &rModelPart)
Definition: test_utilities.cpp:227
ModelPart & 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)
Definition: test_utilities.cpp:132
void RandomFillContainerVariable(ModelPart &rModelPart, const Variable< TDataType > &rVariable, const double MinValue, const double MaxValue)
Definition: test_utilities.cpp:179
void AssignRandomValues(double &rValue, const std::string &rSeed, const double MinValue, const double MaxValue)
Definition: test_utilities.cpp:48
void RandomFillNodalHistoricalVariable(ModelPart &rModelPart, const Variable< TDataType > &rVariable, const double MinValue, const double MaxValue, const int Step)
Definition: test_utilities.cpp:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21