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

Classes

class  NonHistoricalDataValueRetrievalFunctor
 
class  HistoricalDataValueRetrievalFunctor
 

Typedefs

using NodeType = ModelPart::NodeType
 
using ConditionType = ModelPart::ConditionType
 
using ElementType = ModelPart::ElementType
 
using NodesContainerType = ModelPart::NodesContainerType
 
using ConditionsContainerType = ModelPart::ConditionsContainerType
 
using ElementsContainerType = ModelPart::ElementsContainerType
 

Functions

template<class TDataType >
TDataType RaiseToPower (const TDataType &rData, const double Power)
 
template<>
array_1d< double, 3 > RaiseToPower (const array_1d< double, 3 > &rData, const double Power)
 
template<>
Vector RaiseToPower (const Vector &rData, const double Power)
 
template<class TDataType >
void DataTypeSizeInitializer (TDataType &rData, const TDataType &rReferenceData)
 
template<>
void DataTypeSizeInitializer (Vector &rData, const Vector &rReferenceData)
 
template<class TDataType >
void DataTypeSizeChecker (const TDataType &rData, const TDataType &rReferenceData)
 
template<>
void DataTypeSizeChecker (const Vector &rData, const Vector &rReferenceData)
 
template<>
NodesContainerTypeGetLocalDataContainer (ModelPart &rModelPart)
 
template<>
const NodesContainerTypeGetLocalDataContainer (const ModelPart &rModelPart)
 
template<>
NodesContainerTypeGetDataContainer (ModelPart &rModelPart)
 
template<>
const NodesContainerTypeGetDataContainer (const ModelPart &rModelPart)
 
double GetDoubleValue (const std::string &rInput)
 
int GetIntegerValue (const std::string &rInput)
 
void SplitString (std::string &rOutput1, std::string &rOutput2, const std::string &rInput)
 
template<class TDataType >
const std::function< double(const TDataType &)> GetNormMethod (const Variable< TDataType > &rVariable, const std::string &rNormType)
 
template<>
const std::function< double(const array_1d< double, 3 > &)> GetNormMethod (const Variable< array_1d< double, 3 >> &rVariable, const std::string &rNormType)
 
template<>
const std::function< double(const Vector &)> GetNormMethod (const Variable< Vector > &rVariable, const std::string &rNormType)
 
template<>
std::string GetVariableTypeName< double > ()
 
template<>
std::string GetVariableTypeName< array_1d< double, 3 > > ()
 
template<>
std::string GetVariableTypeName< Vector > ()
 
template<>
std::string GetVariableTypeName< Matrix > ()
 
template<class TDataType >
void CheckVariableType (const std::vector< std::string > &rVariableNamesList)
 
void CheckInputOutputVariables (const std::vector< std::string > &rInputVariableNamesList, const std::vector< std::string > &rOutputVariableNamesList)
 
std::vector< doubleSortSortedValuesList (const std::vector< std::vector< double >> &rValues)
 
template double RaiseToPower (const double &, const double)
 
template int RaiseToPower (const int &, const double)
 
template const std::function< double(const int &)> GetNormMethod (const Variable< int > &, const std::string &)
 
template const std::function< double(const double &)> GetNormMethod (const Variable< double > &, const std::string &)
 
template void DataTypeSizeInitializer (double &, const double &)
 
template void DataTypeSizeInitializer (int &, const int &)
 
template void DataTypeSizeInitializer (array_1d< double, 3 > &, const array_1d< double, 3 > &)
 
template void DataTypeSizeChecker (const double &, const double &)
 
template void DataTypeSizeChecker (const int &, const int &)
 
template void DataTypeSizeChecker (const array_1d< double, 3 > &, const array_1d< double, 3 > &)
 
template void CheckVariableType< double > (const std::vector< std::string > &rVariableNamesList)
 
template void CheckVariableType< array_1d< double, 3 > > (const std::vector< std::string > &rVariableNamesList)
 
template void CheckVariableType< Vector > (const std::vector< std::string > &rVariableNamesList)
 
template void CheckVariableType< Matrix > (const std::vector< std::string > &rVariableNamesList)
 
template<class TDataType >
std::string GetVariableTypeName ()
 

Typedef Documentation

◆ ConditionsContainerType

◆ ConditionType

◆ ElementsContainerType

◆ ElementType

◆ NodesContainerType

◆ NodeType

Function Documentation

◆ CheckInputOutputVariables()

void Kratos::MethodUtilities::CheckInputOutputVariables ( const std::vector< std::string > &  rInputVariableNamesList,
const std::vector< std::string > &  rOutputVariableNamesList 
)

◆ CheckVariableType()

template<class TDataType >
void Kratos::MethodUtilities::CheckVariableType ( const std::vector< std::string > &  rVariableNamesList)

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

template void Kratos::MethodUtilities::CheckVariableType< array_1d< double, 3 > > ( const std::vector< std::string > &  rVariableNamesList)

◆ CheckVariableType< double >()

template void Kratos::MethodUtilities::CheckVariableType< double > ( const std::vector< std::string > &  rVariableNamesList)

◆ CheckVariableType< Matrix >()

template void Kratos::MethodUtilities::CheckVariableType< Matrix > ( const std::vector< std::string > &  rVariableNamesList)

◆ CheckVariableType< Vector >()

template void Kratos::MethodUtilities::CheckVariableType< Vector > ( const std::vector< std::string > &  rVariableNamesList)

◆ DataTypeSizeChecker() [1/5]

template void Kratos::MethodUtilities::DataTypeSizeChecker ( const array_1d< double, 3 > &  ,
const array_1d< double, 3 > &   
)

◆ DataTypeSizeChecker() [2/5]

template void Kratos::MethodUtilities::DataTypeSizeChecker ( const double ,
const double  
)

◆ DataTypeSizeChecker() [3/5]

template void Kratos::MethodUtilities::DataTypeSizeChecker ( const int ,
const int  
)

◆ DataTypeSizeChecker() [4/5]

template<class TDataType >
void Kratos::MethodUtilities::DataTypeSizeChecker ( const TDataType &  rData,
const TDataType &  rReferenceData 
)

◆ DataTypeSizeChecker() [5/5]

template<>
void Kratos::MethodUtilities::DataTypeSizeChecker ( const Vector rData,
const Vector rReferenceData 
)

◆ DataTypeSizeInitializer() [1/5]

template void Kratos::MethodUtilities::DataTypeSizeInitializer ( array_1d< double, 3 > &  ,
const array_1d< double, 3 > &   
)

◆ DataTypeSizeInitializer() [2/5]

template void Kratos::MethodUtilities::DataTypeSizeInitializer ( double ,
const double  
)

◆ DataTypeSizeInitializer() [3/5]

template void Kratos::MethodUtilities::DataTypeSizeInitializer ( int ,
const int  
)

◆ DataTypeSizeInitializer() [4/5]

template<class TDataType >
void Kratos::MethodUtilities::DataTypeSizeInitializer ( TDataType &  rData,
const TDataType &  rReferenceData 
)

◆ DataTypeSizeInitializer() [5/5]

template<>
void Kratos::MethodUtilities::DataTypeSizeInitializer ( Vector rData,
const Vector rReferenceData 
)

◆ GetDataContainer() [1/2]

template<>
const ConditionsContainerType & Kratos::MethodUtilities::GetDataContainer ( const ModelPart rModelPart)

◆ GetDataContainer() [2/2]

template<>
ConditionsContainerType & Kratos::MethodUtilities::GetDataContainer ( ModelPart rModelPart)

◆ GetDoubleValue()

double Kratos::MethodUtilities::GetDoubleValue ( const std::string &  rInput)

◆ GetIntegerValue()

int Kratos::MethodUtilities::GetIntegerValue ( const std::string &  rInput)

◆ GetLocalDataContainer() [1/2]

template<>
const ConditionsContainerType & Kratos::MethodUtilities::GetLocalDataContainer ( const ModelPart rModelPart)

◆ GetLocalDataContainer() [2/2]

template<>
ConditionsContainerType & Kratos::MethodUtilities::GetLocalDataContainer ( ModelPart rModelPart)

◆ GetNormMethod() [1/5]

template<>
const std::function<double(const array_1d<double, 3>&)> Kratos::MethodUtilities::GetNormMethod ( const Variable< array_1d< double, 3 >> &  rVariable,
const std::string &  rNormType 
)

◆ GetNormMethod() [2/5]

template const std::function<double(const double&)> Kratos::MethodUtilities::GetNormMethod ( const Variable< double > &  ,
const std::string &   
)

◆ GetNormMethod() [3/5]

template const std::function<double(const int&)> Kratos::MethodUtilities::GetNormMethod ( const Variable< int > &  ,
const std::string &   
)

◆ GetNormMethod() [4/5]

template<class TDataType >
const std::function< double(const TDataType &)> Kratos::MethodUtilities::GetNormMethod ( const Variable< TDataType > &  rVariable,
const std::string &  rNormType 
)

◆ GetNormMethod() [5/5]

template<>
const std::function<double(const Vector&)> Kratos::MethodUtilities::GetNormMethod ( const Variable< Vector > &  rVariable,
const std::string &  rNormType 
)

◆ GetVariableTypeName()

template<class TDataType >
std::string Kratos::MethodUtilities::GetVariableTypeName ( )

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

template<>
std::string Kratos::MethodUtilities::GetVariableTypeName< array_1d< double, 3 > > ( )

◆ GetVariableTypeName< double >()

◆ GetVariableTypeName< Matrix >()

◆ GetVariableTypeName< Vector >()

◆ RaiseToPower() [1/5]

template<>
array_1d<double, 3> Kratos::MethodUtilities::RaiseToPower ( const array_1d< double, 3 > &  rData,
const double  Power 
)

◆ RaiseToPower() [2/5]

template double Kratos::MethodUtilities::RaiseToPower ( const double ,
const double   
)

◆ RaiseToPower() [3/5]

template int Kratos::MethodUtilities::RaiseToPower ( const int ,
const double   
)

◆ RaiseToPower() [4/5]

template<class TDataType >
TDataType Kratos::MethodUtilities::RaiseToPower ( const TDataType &  rData,
const double  Power 
)

◆ RaiseToPower() [5/5]

template<>
Vector Kratos::MethodUtilities::RaiseToPower ( const Vector rData,
const double  Power 
)

◆ SortSortedValuesList()

std::vector< double > Kratos::MethodUtilities::SortSortedValuesList ( const std::vector< std::vector< double >> &  rValues)

◆ SplitString()

void Kratos::MethodUtilities::SplitString ( std::string &  rOutput1,
std::string &  rOutput2,
const std::string &  rInput 
)