MGIS
Loading...
Searching...
No Matches
BehaviourDescription.hxx File Reference
#include <map>
#include <vector>
#include "MGIS/Config.hxx"
#include "MGIS/Behaviour/Hypothesis.hxx"
#include "MGIS/Behaviour/Variable.hxx"

Classes

struct  mgis::behaviour::BehaviourDescription
 structure describing a behaviour More...
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

MGIS_EXPORT void mgis::behaviour::loadBehaviourDescription (BehaviourDescription &, const std::string &, const std::string &, const Hypothesis)
 load the description of a behaviour from a library
 
MGIS_EXPORT mgis::size_type mgis::behaviour::getTangentOperatorArraySize (const BehaviourDescription &)
 
MGIS_EXPORT bool mgis::behaviour::isStandardFiniteStrainBehaviour (const std::string &, const std::string &)
 
template<typename T >
mgis::behaviour::getParameterDefaultValue (const BehaviourDescription &, const std::string &)
 
template<>
MGIS_EXPORT double mgis::behaviour::getParameterDefaultValue< double > (const BehaviourDescription &, const std::string &)
 
template<>
MGIS_EXPORT int mgis::behaviour::getParameterDefaultValue< int > (const BehaviourDescription &, const std::string &)
 
template<>
MGIS_EXPORT unsigned short mgis::behaviour::getParameterDefaultValue< unsigned short > (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasBounds (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasLowerBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasUpperBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT long double mgis::behaviour::getLowerBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT long double mgis::behaviour::getUpperBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasPhysicalBounds (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasLowerPhysicalBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT bool mgis::behaviour::hasUpperPhysicalBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT long double mgis::behaviour::getLowerPhysicalBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT long double mgis::behaviour::getUpperPhysicalBound (const BehaviourDescription &, const std::string &)
 
MGIS_EXPORT void mgis::behaviour::print_markdown (std::ostream &, const BehaviourDescription &, const mgis::size_type)
 print a detailled (verbose) description of the behaviour using a markdown format
 
MGIS_EXPORT std::vector< Variablemgis::behaviour::getBehaviourInitializeFunctionInputs (const std::string &, const std::string &, const std::string &, const Hypothesis)
 
MGIS_EXPORT std::vector< Variablemgis::behaviour::getBehaviourPostProcessingOutputs (const std::string &, const std::string &, const std::string &, const Hypothesis)
 

Detailed Description

Author
Thomas Helfer
Date
19/06/2018

Function Documentation

◆ getBehaviourInitializeFunctionInputs()

MGIS_EXPORT std::vector< Variable > mgis::behaviour::getBehaviourInitializeFunctionInputs ( const std::string &  ,
const std::string &  ,
const std::string &  ,
const Hypothesis   
)
Returns
the inputs of an initialize function
Parameters
[in]llibrary name
[in]bbehaviour name
[in]iinitialize function
[in]hmodelling hypothesis

◆ getBehaviourPostProcessingOutputs()

MGIS_EXPORT std::vector< Variable > mgis::behaviour::getBehaviourPostProcessingOutputs ( const std::string &  ,
const std::string &  ,
const std::string &  ,
const Hypothesis   
)
Returns
the outputs of a post-processing functions
Parameters
[in]llibrary name
[in]bbehaviour name
[in]ipost-processing
[in]hmodelling hypothesis

◆ getLowerBound()

MGIS_EXPORT long double mgis::behaviour::getLowerBound ( const BehaviourDescription ,
const std::string &   
)
Returns
the lower bound of the given variable
Parameters
[in]bbehaviour
[in]vvariable name

◆ getLowerPhysicalBound()

MGIS_EXPORT long double mgis::behaviour::getLowerPhysicalBound ( const BehaviourDescription ,
const std::string &   
)
Returns
the lower bound of the given variable
Parameters
[in]bbehaviour
[in]vvariable name

◆ getParameterDefaultValue()

template<typename T >
T mgis::behaviour::getParameterDefaultValue ( const BehaviourDescription ,
const std::string &   
)
Returns
the default value of a parameter
Parameters
[in]bbehaviour description
[in]nparameter name

◆ getParameterDefaultValue< double >()

template<>
MGIS_EXPORT double mgis::behaviour::getParameterDefaultValue< double > ( const BehaviourDescription ,
const std::string &   
)
Returns
the default value of a parameter
Parameters
[in]bbehaviour description
[in]nparameter name

◆ getParameterDefaultValue< int >()

template<>
MGIS_EXPORT int mgis::behaviour::getParameterDefaultValue< int > ( const BehaviourDescription ,
const std::string &   
)
Returns
the default value of a parameter
Parameters
[in]bbehaviour description
[in]nparameter name

◆ getParameterDefaultValue< unsigned short >()

template<>
MGIS_EXPORT unsigned short mgis::behaviour::getParameterDefaultValue< unsigned short > ( const BehaviourDescription ,
const std::string &   
)
Returns
the default value of a parameter
Parameters
[in]bbehaviour description
[in]nparameter name

◆ getTangentOperatorArraySize()

MGIS_EXPORT mgis::size_type mgis::behaviour::getTangentOperatorArraySize ( const BehaviourDescription )
Returns
the size of an array able to contain all the values of the tangent operator
Parameters
[in]bbehaviour

◆ getUpperBound()

MGIS_EXPORT long double mgis::behaviour::getUpperBound ( const BehaviourDescription ,
const std::string &   
)
Returns
the upper bound of the given variable
Parameters
[in]bbehaviour
[in]vvariable name

◆ getUpperPhysicalBound()

MGIS_EXPORT long double mgis::behaviour::getUpperPhysicalBound ( const BehaviourDescription ,
const std::string &   
)
Returns
the upper bound of the given variable
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasBounds()

MGIS_EXPORT bool mgis::behaviour::hasBounds ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has bounds
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasLowerBound()

MGIS_EXPORT bool mgis::behaviour::hasLowerBound ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has a lower bound
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasLowerPhysicalBound()

MGIS_EXPORT bool mgis::behaviour::hasLowerPhysicalBound ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has a lower physical bound
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasPhysicalBounds()

MGIS_EXPORT bool mgis::behaviour::hasPhysicalBounds ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has bounds
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasUpperBound()

MGIS_EXPORT bool mgis::behaviour::hasUpperBound ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has a upper bound
Parameters
[in]bbehaviour
[in]vvariable name

◆ hasUpperPhysicalBound()

MGIS_EXPORT bool mgis::behaviour::hasUpperPhysicalBound ( const BehaviourDescription ,
const std::string &   
)
Returns
true if the given variable has a upper physical bound
Parameters
[in]bbehaviour
[in]vvariable name

◆ isStandardFiniteStrainBehaviour()

MGIS_EXPORT bool mgis::behaviour::isStandardFiniteStrainBehaviour ( const std::string &  ,
const std::string &   
)
Returns
if the given behaviour is a standard finite strain behaviour, i.e. is a finite strain behaviour using the standard finite strain kinematic (called F-Cauchy although the stress measure can be chosen when loading the behaviour)
Parameters
[in]llibrary name
[in]bbehaviour name
Note
: use of std::string rather than mgis::string_view is meaningfull here

◆ loadBehaviourDescription()

MGIS_EXPORT void mgis::behaviour::loadBehaviourDescription ( BehaviourDescription ,
const std::string &  ,
const std::string &  ,
const Hypothesis   
)

load the description of a behaviour from a library

Parameters
[out]dbehaviour description
[in]llibrary name
[in]bbehaviour name
[in]hmodelling hypothesis
Returns
the behaviour description
Note
: use of std::string rather than mgis::string_view is meaningfull here

◆ print_markdown()

MGIS_EXPORT void mgis::behaviour::print_markdown ( std::ostream &  ,
const BehaviourDescription ,
const mgis::size_type   
)

print a detailled (verbose) description of the behaviour using a markdown format

Parameters
[in]osouptut stream
[in]bbehaviour
[in]ltitle level