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.
Classes | Public Member Functions | List of all members
Kratos::FluidTestUtilities Class Reference

#include <fluid_test_utilities.h>

Collaboration diagram for Kratos::FluidTestUtilities:

Classes

class  GetContainer
 

Public Types

Type Definitions
using NodeType = ModelPart::NodeType
 
using PropertiesType = ModelPart::PropertiesType
 
using DofsVectorType = std::vector< Dof< double >::Pointer >
 
using EquationIdVectorType = std::vector< std::size_t >
 
using NodesContainerType = ModelPart::NodesContainerType
 
using ConditionsContainerType = ModelPart::ConditionsContainerType
 
using ElementsContainerType = ModelPart::ElementsContainerType
 

Public Member Functions

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

Static Public Member Functions

Static operations
template<class TDataType >
static void AssignRandomValues (TDataType &rValue, const std::string &rSeed, const int DomainSize, const double MinValue=0.0, const double MaxValue=1.0)
 
static ModelPartCreateTestModelPart (Model &rModel, const std::string &rModelPartName, const std::string &rElementName, const std::string &rConditionName, const std::function< void(PropertiesType &)> &rSetElementProperties, const std::function< void(PropertiesType &)> &rSetConditionProperties, const std::function< void(ModelPart &)> &rAddNodalSolutionStepVariablesFuncion, const std::function< void(NodeType &)> &rAddDofsFunction, const int BufferSize=2)
 
template<class TDataType >
static void RandomFillHistoricalVariable (ModelPart &rModelPart, const Variable< TDataType > &rVariable, const double MinValue=0.0, const double MaxValue=1.0, const int Step=0)
 
template<class TDataType >
static void RandomFillHistoricalVariable (ModelPart &rModelPart, const Variable< TDataType > &rVariable, const std::string &rSeedExtension, const double MinValue=0.0, const double MaxValue=1.0, const int Step=0)
 
template<class TContainerType , class TDataType >
static void RandomFillNonHistoricalVariable (TContainerType &rContainer, const Variable< TDataType > &rVariable, const IndexType DomainSize, const double MinValue=0.0, const double MaxValue=1.0)
 
template<class TContainerType , class TDataType >
static void RandomFillNonHistoricalVariable (TContainerType &rContainer, const Variable< TDataType > &rVariable, const std::string &rSeedExtension, const IndexType DomainSize, const double MinValue=0.0, const double MaxValue=1.0)
 
template<class TContainerType >
static void RunEntityGetDofListTest (const TContainerType &rContainer, const ProcessInfo &rProcessInfo, const std::vector< const Variable< double > * > &rDofVariablesList)
 
template<class TContainerType >
static void RunEntityEquationIdVectorTest (const TContainerType &rContainer, const ProcessInfo &rProcessInfo, const std::vector< const Variable< double > * > &rDofVariablesList)
 
template<class TContainerType >
static void RunEntityGetValuesVectorTest (const TContainerType &rContainer, const std::vector< const Variable< double > * > &rDofVariablesList)
 
template<class TContainerType >
static void RunEntityGetFirstDerivativesVectorTest (const TContainerType &rContainer, const std::function< Vector(const ModelPart::NodeType &)> &rValueRetrievalMethod)
 
template<class TContainerType >
static void RunEntityGetSecondDerivativesVectorTest (const TContainerType &rContainer, const std::function< Vector(const ModelPart::NodeType &)> &rValueRetrievalMethod)
 

Member Typedef Documentation

◆ ConditionsContainerType

◆ DofsVectorType

using Kratos::FluidTestUtilities::DofsVectorType = std::vector<Dof<double>::Pointer>

◆ ElementsContainerType

◆ EquationIdVectorType

using Kratos::FluidTestUtilities::EquationIdVectorType = std::vector<std::size_t>

◆ NodesContainerType

◆ NodeType

◆ PropertiesType

Member Function Documentation

◆ AssignRandomValues() [1/3]

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

◆ AssignRandomValues() [2/3]

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

◆ AssignRandomValues() [3/3]

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

◆ CreateTestModelPart()

ModelPart & Kratos::FluidTestUtilities::CreateTestModelPart ( Model rModel,
const std::string &  rModelPartName,
const std::string &  rElementName,
const std::string &  rConditionName,
const std::function< void(PropertiesType &)> &  rSetElementProperties,
const std::function< void(PropertiesType &)> &  rSetConditionProperties,
const std::function< void(ModelPart &)> &  rAddNodalSolutionStepVariablesFuncion,
const std::function< void(NodeType &)> &  rAddDofsFunction,
const int  BufferSize = 2 
)
static

◆ RandomFillHistoricalVariable() [1/2]

template<class TDataType >
static void Kratos::FluidTestUtilities::RandomFillHistoricalVariable ( ModelPart rModelPart,
const Variable< TDataType > &  rVariable,
const double  MinValue = 0.0,
const double  MaxValue = 1.0,
const int  Step = 0 
)
inlinestatic

◆ RandomFillHistoricalVariable() [2/2]

template<class TDataType >
void Kratos::FluidTestUtilities::RandomFillHistoricalVariable ( ModelPart rModelPart,
const Variable< TDataType > &  rVariable,
const std::string &  rSeedExtension,
const double  MinValue = 0.0,
const double  MaxValue = 1.0,
const int  Step = 0 
)
static

◆ RandomFillNonHistoricalVariable() [1/2]

template<class TContainerType , class TDataType >
static void Kratos::FluidTestUtilities::RandomFillNonHistoricalVariable ( TContainerType &  rContainer,
const Variable< TDataType > &  rVariable,
const IndexType  DomainSize,
const double  MinValue = 0.0,
const double  MaxValue = 1.0 
)
inlinestatic

◆ RandomFillNonHistoricalVariable() [2/2]

template<class TContainerType , class TDataType >
void Kratos::FluidTestUtilities::RandomFillNonHistoricalVariable ( TContainerType &  rContainer,
const Variable< TDataType > &  rVariable,
const std::string &  rSeedExtension,
const IndexType  DomainSize,
const double  MinValue = 0.0,
const double  MaxValue = 1.0 
)
static

◆ RunEntityEquationIdVectorTest()

template<class TContainerType >
void Kratos::FluidTestUtilities::RunEntityEquationIdVectorTest ( const TContainerType &  rContainer,
const ProcessInfo rProcessInfo,
const std::vector< const Variable< double > * > &  rDofVariablesList 
)
static

◆ RunEntityGetDofListTest()

template<class TContainerType >
void Kratos::FluidTestUtilities::RunEntityGetDofListTest ( const TContainerType &  rContainer,
const ProcessInfo rProcessInfo,
const std::vector< const Variable< double > * > &  rDofVariablesList 
)
static

◆ RunEntityGetFirstDerivativesVectorTest()

template<class TContainerType >
void Kratos::FluidTestUtilities::RunEntityGetFirstDerivativesVectorTest ( const TContainerType &  rContainer,
const std::function< Vector(const ModelPart::NodeType &)> &  rValueRetrievalMethod 
)
static

◆ RunEntityGetSecondDerivativesVectorTest()

template<class TContainerType >
void Kratos::FluidTestUtilities::RunEntityGetSecondDerivativesVectorTest ( const TContainerType &  rContainer,
const std::function< Vector(const ModelPart::NodeType &)> &  rValueRetrievalMethod 
)
static

◆ RunEntityGetValuesVectorTest()

template<class TContainerType >
void Kratos::FluidTestUtilities::RunEntityGetValuesVectorTest ( const TContainerType &  rContainer,
const std::vector< const Variable< double > * > &  rDofVariablesList 
)
static

The documentation for this class was generated from the following files: