MGIS
Loading...
Searching...
No Matches
State.hxx File Reference
#include <span>
#include <iosfwd>
#include <vector>
#include <string_view>
#include "MGIS/Config.hxx"
#include "MGIS/Behaviour/StateView.hxx"
#include "MGIS/Behaviour/State.ixx"

Classes

struct  mgis::behaviour::State
 structure in charge of containing the state of a material. More...
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

MGIS_EXPORT void mgis::behaviour::setGradient (State &, const std::string_view, const real)
 set the value of a gradient
 
MGIS_EXPORT void mgis::behaviour::setGradient (State &, const std::string_view, const real *const)
 set the value of a gradient
 
MGIS_EXPORT void mgis::behaviour::setGradient (State &, const size_type, const real)
 set the value of a gradient
 
MGIS_EXPORT void mgis::behaviour::setGradient (State &, const size_type, const size_type, const real)
 set the value of a gradient
 
MGIS_EXPORT void mgis::behaviour::setGradient (State &, const size_type, const size_type, const real *const)
 set the values of a gradient
 
MGIS_EXPORT realmgis::behaviour::getGradient (State &, const std::string_view)
 get the value(s) of a gradient
 
MGIS_EXPORT const realmgis::behaviour::getGradient (const State &, const std::string_view)
 get the value(s) of a gradient
 
MGIS_EXPORT realmgis::behaviour::getGradient (State &, const size_type)
 get the value(s) of a gradient
 
MGIS_EXPORT const realmgis::behaviour::getGradient (const State &, const size_type)
 get the value(s) of a gradient
 
MGIS_EXPORT void mgis::behaviour::setThermodynamicForce (State &, const std::string_view, const real)
 set the value of a thermodynamic force
 
MGIS_EXPORT void mgis::behaviour::setThermodynamicForce (State &, const std::string_view, const real *const)
 set the value of a thermodynamic force
 
MGIS_EXPORT void mgis::behaviour::setThermodynamicForce (State &, const size_type, const real)
 set the value of a thermodynamic force
 
MGIS_EXPORT void mgis::behaviour::setThermodynamicForce (State &, const size_type, const size_type, const real)
 set the value of a thermodynamic force
 
MGIS_EXPORT void mgis::behaviour::setThermodynamicForce (State &, const size_type, const size_type, const real *const)
 set the values of a thermodynamic force
 
MGIS_EXPORT realmgis::behaviour::getThermodynamicForce (State &, const std::string_view)
 get the value(s) of a thermodynamic force
 
MGIS_EXPORT const realmgis::behaviour::getThermodynamicForce (const State &, const std::string_view)
 get the value(s) of a thermodynamic force
 
MGIS_EXPORT realmgis::behaviour::getThermodynamicForce (State &, const size_type)
 get the value(s) of a thermodynamic force
 
MGIS_EXPORT const realmgis::behaviour::getThermodynamicForce (const State &, const size_type)
 get the value(s) of a thermodynamic force
 
MGIS_EXPORT void mgis::behaviour::setMaterialProperty (State &, const std::string_view, const real)
 set the value of a material property
 
MGIS_EXPORT realmgis::behaviour::getMaterialProperty (State &, const std::string_view)
 
MGIS_EXPORT const realmgis::behaviour::getMaterialProperty (const State &, const std::string_view)
 
MGIS_EXPORT void mgis::behaviour::setMaterialProperty (State &, const size_type, const real)
 set the value of a material property
 
MGIS_EXPORT realmgis::behaviour::getMaterialProperty (State &, const size_type)
 
MGIS_EXPORT const realmgis::behaviour::getMaterialProperty (const State &, const size_type)
 
MGIS_EXPORT void mgis::behaviour::setInternalStateVariable (State &, const std::string_view, const real)
 set the value of an internal state variable
 
MGIS_EXPORT void mgis::behaviour::setInternalStateVariable (State &, const std::string_view, const real *const)
 set the value of an internal state variable
 
MGIS_EXPORT void mgis::behaviour::setInternalStateVariable (State &, const size_type, const real)
 set the value of an internal state variable
 
MGIS_EXPORT void mgis::behaviour::setInternalStateVariable (State &, const size_type, const size_type, const real)
 set the value of an internal state variable
 
MGIS_EXPORT void mgis::behaviour::setInternalStateVariable (State &, const size_type, const size_type, const real *const)
 set the values of an internal state variable
 
MGIS_EXPORT realmgis::behaviour::getInternalStateVariable (State &, const std::string_view)
 get the value(s) of an internal state variable
 
MGIS_EXPORT const realmgis::behaviour::getInternalStateVariable (const State &, const std::string_view)
 get the value(s) of an internal state variable
 
MGIS_EXPORT realmgis::behaviour::getInternalStateVariable (State &, const size_type)
 get the value(s) of an internal state variable
 
MGIS_EXPORT const realmgis::behaviour::getInternalStateVariable (const State &, const size_type)
 get the value(s) of an internal state variable
 
MGIS_EXPORT void mgis::behaviour::setExternalStateVariable (State &, const std::string_view, const real)
 set the value of a scalar external state variable
 
MGIS_EXPORT void mgis::behaviour::setExternalStateVariable (State &, const std::string_view, const std::span< const real >)
 set the value of an external state variable
 
MGIS_EXPORT void mgis::behaviour::setExternalStateVariable (State &, const size_type, const real)
 set the value of a scalar external state variable
 
MGIS_EXPORT void mgis::behaviour::setExternalStateVariable (State &, const size_type, const std::span< const real >)
 set the value of an external state variable
 
MGIS_EXPORT realmgis::behaviour::getExternalStateVariable (State &, const std::string_view)
 set the value of an external state variable
 
MGIS_EXPORT const realmgis::behaviour::getExternalStateVariable (const State &, const std::string_view)
 set the value of an external state variable
 
MGIS_EXPORT realmgis::behaviour::getExternalStateVariable (State &, const size_type)
 
MGIS_EXPORT const realmgis::behaviour::getExternalStateVariable (const State &, const size_type)
 
StateView mgis::behaviour::make_view (State &)
 make a view from a behaviour data
 
InitialStateView mgis::behaviour::make_view (const State &)
 make a view from a behaviour data
 
MGIS_EXPORT void mgis::behaviour::print_markdown (std::ostream &, const Behaviour &, const State &, const mgis::size_type)
 print a detailled (verbose) description of the integration point state using a markdown format
 

Detailed Description

Author
Thomas Helfer
Date
02/08/2018

Function Documentation

◆ getExternalStateVariable() [1/4]

MGIS_EXPORT const real * mgis::behaviour::getExternalStateVariable ( const State ,
const size_type   
)
Returns
a pointer to the value of an external state variable
Parameters
[out]sstate
[in]oexternal state variable offset

◆ getExternalStateVariable() [2/4]

MGIS_EXPORT const real * mgis::behaviour::getExternalStateVariable ( const State ,
const std::string_view   
)

set the value of an external state variable

Parameters
[out]sstate
[in]nname

◆ getExternalStateVariable() [3/4]

MGIS_EXPORT real * mgis::behaviour::getExternalStateVariable ( State ,
const size_type   
)
Returns
a pointer to the value of an external state variable
Parameters
[out]sstate
[in]oexternal state variable offset

◆ getExternalStateVariable() [4/4]

MGIS_EXPORT real * mgis::behaviour::getExternalStateVariable ( State ,
const std::string_view   
)

set the value of an external state variable

Parameters
[out]sstate
[in]nname

◆ getGradient() [1/4]

MGIS_EXPORT const real * mgis::behaviour::getGradient ( const State ,
const size_type   
)

get the value(s) of a gradient

Returns
a pointer the value(s) of the gradient
Parameters
[in]sstate
[in]ogradient offset

◆ getGradient() [2/4]

MGIS_EXPORT const real * mgis::behaviour::getGradient ( const State ,
const std::string_view   
)

get the value(s) of a gradient

Returns
a pointer the value(s) of the gradient
Parameters
[in]sstate
[in]nname

◆ getGradient() [3/4]

MGIS_EXPORT real * mgis::behaviour::getGradient ( State ,
const size_type   
)

get the value(s) of a gradient

Returns
a pointer the value(s) of the gradient
Parameters
[in]sstate
[in]ogradient offset

◆ getGradient() [4/4]

MGIS_EXPORT real * mgis::behaviour::getGradient ( State ,
const std::string_view   
)

get the value(s) of a gradient

Returns
a pointer the value(s) of the gradient
Parameters
[in]sstate
[in]nname

◆ getInternalStateVariable() [1/4]

MGIS_EXPORT const real * mgis::behaviour::getInternalStateVariable ( const State ,
const size_type   
)

get the value(s) of an internal state variable

Returns
a pointer the value(s) of the internal state variable
Parameters
[in]sstate
[in]ointernal state variable offset

◆ getInternalStateVariable() [2/4]

MGIS_EXPORT const real * mgis::behaviour::getInternalStateVariable ( const State ,
const std::string_view   
)

get the value(s) of an internal state variable

Returns
a pointer the value(s) of the internal state variable
Parameters
[in]sstate
[in]nname

◆ getInternalStateVariable() [3/4]

MGIS_EXPORT real * mgis::behaviour::getInternalStateVariable ( State ,
const size_type   
)

get the value(s) of an internal state variable

Returns
a pointer the value(s) of the internal state variable
Parameters
[in]sstate
[in]ointernal state variable offset

◆ getInternalStateVariable() [4/4]

MGIS_EXPORT real * mgis::behaviour::getInternalStateVariable ( State ,
const std::string_view   
)

get the value(s) of an internal state variable

Returns
a pointer the value(s) of the internal state variable
Parameters
[in]sstate
[in]nname

◆ getMaterialProperty() [1/4]

MGIS_EXPORT const real * mgis::behaviour::getMaterialProperty ( const State ,
const size_type   
)
Returns
a pointer to the value of a material property
Parameters
[out]sstate
[in]omaterial property offset

◆ getMaterialProperty() [2/4]

MGIS_EXPORT const real * mgis::behaviour::getMaterialProperty ( const State ,
const std::string_view   
)
Returns
a pointer to the value of a material property
Parameters
[in]sstate
[in]nname

◆ getMaterialProperty() [3/4]

MGIS_EXPORT real * mgis::behaviour::getMaterialProperty ( State ,
const size_type   
)
Returns
a pointer to the value of a material property
Parameters
[out]sstate
[in]omaterial property offset

◆ getMaterialProperty() [4/4]

MGIS_EXPORT real * mgis::behaviour::getMaterialProperty ( State ,
const std::string_view   
)
Returns
a pointer to the value of a material property
Parameters
[in]sstate
[in]nname

◆ getThermodynamicForce() [1/4]

MGIS_EXPORT const real * mgis::behaviour::getThermodynamicForce ( const State ,
const size_type   
)

get the value(s) of a thermodynamic force

Returns
a pointer the value(s) of the thermodynamic force
Parameters
[in]sstate
[in]othermodynamic force offset

◆ getThermodynamicForce() [2/4]

MGIS_EXPORT const real * mgis::behaviour::getThermodynamicForce ( const State ,
const std::string_view   
)

get the value(s) of a thermodynamic force

Returns
a pointer the value(s) of the thermodynamic force
Parameters
[in]sstate
[in]nname

◆ getThermodynamicForce() [3/4]

MGIS_EXPORT real * mgis::behaviour::getThermodynamicForce ( State ,
const size_type   
)

get the value(s) of a thermodynamic force

Returns
a pointer the value(s) of the thermodynamic force
Parameters
[in]sstate
[in]othermodynamic force offset

◆ getThermodynamicForce() [4/4]

MGIS_EXPORT real * mgis::behaviour::getThermodynamicForce ( State ,
const std::string_view   
)

get the value(s) of a thermodynamic force

Returns
a pointer the value(s) of the thermodynamic force
Parameters
[in]sstate
[in]nname

◆ make_view() [1/2]

InitialStateView mgis::behaviour::make_view ( const State s)
inline

make a view from a behaviour data

Parameters
[in]sstate
Returns
the view
Note
the view has at most the same life time as the state.

◆ make_view() [2/2]

StateView mgis::behaviour::make_view ( State s)
inline

make a view from a behaviour data

Parameters
[in]sstate
Returns
the view
Note
the view has at most the same life time as the state.

◆ print_markdown()

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

print a detailled (verbose) description of the integration point state using a markdown format

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

◆ setExternalStateVariable() [1/4]

MGIS_EXPORT void mgis::behaviour::setExternalStateVariable ( State ,
const size_type  ,
const real   
)

set the value of a scalar external state variable

Parameters
[out]sstate
[in]oexternal state variable offset
[in]vvalue

◆ setExternalStateVariable() [2/4]

MGIS_EXPORT void mgis::behaviour::setExternalStateVariable ( State ,
const size_type  ,
const std::span< const real  
)

set the value of an external state variable

Parameters
[out]sstate
[in]oexternal state variable offset
[in]vvalue

◆ setExternalStateVariable() [3/4]

MGIS_EXPORT void mgis::behaviour::setExternalStateVariable ( State ,
const std::string_view  ,
const real   
)

set the value of a scalar external state variable

Parameters
[out]sstate
[in]nname
[in]vvalue

◆ setExternalStateVariable() [4/4]

MGIS_EXPORT void mgis::behaviour::setExternalStateVariable ( State ,
const std::string_view  ,
const std::span< const real  
)

set the value of an external state variable

Parameters
[out]sstate
[in]nname
[in]vvalue

◆ setGradient() [1/5]

MGIS_EXPORT void mgis::behaviour::setGradient ( State ,
const size_type  ,
const real   
)

set the value of a gradient

Parameters
[out]sstate
[in]ogradient offset
[in]vvalue

◆ setGradient() [2/5]

MGIS_EXPORT void mgis::behaviour::setGradient ( State ,
const size_type  ,
const size_type  ,
const real * const   
)

set the values of a gradient

Parameters
[out]sstate
[in]ogradient offset
[in]ngradient size
[in]vvalues

◆ setGradient() [3/5]

MGIS_EXPORT void mgis::behaviour::setGradient ( State ,
const size_type  ,
const size_type  ,
const real   
)

set the value of a gradient

Parameters
[out]sstate
[in]ogradient offset
[in]ngradient size
[in]vvalue

◆ setGradient() [4/5]

MGIS_EXPORT void mgis::behaviour::setGradient ( State ,
const std::string_view  ,
const real * const   
)

set the value of a gradient

Parameters
[out]sstate
[in]nname
[in]vvalues

◆ setGradient() [5/5]

MGIS_EXPORT void mgis::behaviour::setGradient ( State ,
const std::string_view  ,
const real   
)

set the value of a gradient

Parameters
[out]sstate
[in]nname
[in]vvalue

◆ setInternalStateVariable() [1/5]

MGIS_EXPORT void mgis::behaviour::setInternalStateVariable ( State ,
const size_type  ,
const real   
)

set the value of an internal state variable

Parameters
[out]sstate
[in]ointernal state variable offset
[in]vvalue

◆ setInternalStateVariable() [2/5]

MGIS_EXPORT void mgis::behaviour::setInternalStateVariable ( State ,
const size_type  ,
const size_type  ,
const real * const   
)

set the values of an internal state variable

Parameters
[out]sstate
[in]ointernal state variable offset
[in]ninternal state variable size
[in]vvalues

◆ setInternalStateVariable() [3/5]

MGIS_EXPORT void mgis::behaviour::setInternalStateVariable ( State ,
const size_type  ,
const size_type  ,
const real   
)

set the value of an internal state variable

Parameters
[out]sstate
[in]ointernal state variable offset
[in]ninternal state variable size
[in]vvalue

◆ setInternalStateVariable() [4/5]

MGIS_EXPORT void mgis::behaviour::setInternalStateVariable ( State ,
const std::string_view  ,
const real * const   
)

set the value of an internal state variable

Parameters
[out]sstate
[in]nname
[in]vvalues

◆ setInternalStateVariable() [5/5]

MGIS_EXPORT void mgis::behaviour::setInternalStateVariable ( State ,
const std::string_view  ,
const real   
)

set the value of an internal state variable

Parameters
[out]sstate
[in]nname
[in]vvalue

◆ setMaterialProperty() [1/2]

MGIS_EXPORT void mgis::behaviour::setMaterialProperty ( State ,
const size_type  ,
const real   
)

set the value of a material property

Parameters
[out]sstate
[in]omaterial property offset
[in]vvalue

◆ setMaterialProperty() [2/2]

MGIS_EXPORT void mgis::behaviour::setMaterialProperty ( State ,
const std::string_view  ,
const real   
)

set the value of a material property

Parameters
[out]sstate
[in]nname
[in]vvalue

◆ setThermodynamicForce() [1/5]

MGIS_EXPORT void mgis::behaviour::setThermodynamicForce ( State ,
const size_type  ,
const real   
)

set the value of a thermodynamic force

Parameters
[out]sstate
[in]othermodynamic force offset
[in]vvalue

◆ setThermodynamicForce() [2/5]

MGIS_EXPORT void mgis::behaviour::setThermodynamicForce ( State ,
const size_type  ,
const size_type  ,
const real * const   
)

set the values of a thermodynamic force

Parameters
[out]sstate
[in]othermodynamic force offset
[in]nthermodynamic force size
[in]vvalues

◆ setThermodynamicForce() [3/5]

MGIS_EXPORT void mgis::behaviour::setThermodynamicForce ( State ,
const size_type  ,
const size_type  ,
const real   
)

set the value of a thermodynamic force

Parameters
[out]sstate
[in]othermodynamic force offset
[in]nthermodynamic force size
[in]vvalue

◆ setThermodynamicForce() [4/5]

MGIS_EXPORT void mgis::behaviour::setThermodynamicForce ( State ,
const std::string_view  ,
const real * const   
)

set the value of a thermodynamic force

Parameters
[out]sstate
[in]nname
[in]vvalues

◆ setThermodynamicForce() [5/5]

MGIS_EXPORT void mgis::behaviour::setThermodynamicForce ( State ,
const std::string_view  ,
const real   
)

set the value of a thermodynamic force

Parameters
[out]sstate
[in]nname
[in]vvalue