tfel
Loading...
Searching...
No Matches
mtest::StructureCurrentState Struct Reference

data structure containing the state of a mechanical structure. More...

#include </home/runner/work/tfel/tfel/mtest/include/MTest/StructureCurrentState.hxx>

Public Types

using Hypothesis = tfel::material::ModellingHypothesis::Hypothesis
 a simple alias
using Model = Behaviour
 a simple alias

Public Member Functions

 StructureCurrentState ()
 default constructor
 StructureCurrentState (StructureCurrentState &&) noexcept
 move constructor
 StructureCurrentState (const StructureCurrentState &)
 copy constructor
StructureCurrentState & operator= (StructureCurrentState &&) noexcept
 move assignment operator
StructureCurrentState & operator= (const StructureCurrentState &)
 assignment operator
StructureCurrentState makeDeepCopy () const
 make a deep copy of the object Contrary to standard copy which shares pointers to the current states of each models with the original object, those states are duplicated in a deep copy.
void setBehaviour (const std::shared_ptr< Behaviour > &)
void setModellingHypothesis (const Hypothesis)
BehaviourWorkSpace & getBehaviourWorkSpace () const
const Behaviour & getBehaviour () const
CurrentState & getModelCurrentState (const Model &)
const CurrentState & getModelCurrentState (const Model &) const
BehaviourWorkSpace & getModelWorkSpace (const Model &)
void update ()
 update the state at each integration points and the state of auxiliary models
void revert ()
 rever the state at each integration points and the state of auxiliary models.
 ~StructureCurrentState ()
 destructor

Public Attributes

tfel::math::vector< CurrentState > istates
 current state of each integration points

Detailed Description

data structure containing the state of a mechanical structure.

Constructor & Destructor Documentation

◆ StructureCurrentState()

mtest::StructureCurrentState::StructureCurrentState ( )

default constructor

Parameters
[in]pbehaviour
[in]hmodelling hypotesis

Member Function Documentation

◆ getBehaviour()

const Behaviour & mtest::StructureCurrentState::getBehaviour ( ) const
Returns
the behaviour associated to the structure

◆ getBehaviourWorkSpace()

BehaviourWorkSpace & mtest::StructureCurrentState::getBehaviourWorkSpace ( ) const
Returns
the behaviour workspace associated to the current thread.

◆ getModelCurrentState() [1/2]

CurrentState & mtest::StructureCurrentState::getModelCurrentState ( const Model & )
Returns
the current state associated with an auxiliary model
Parameters
[in]mmodel

◆ getModelCurrentState() [2/2]

const CurrentState & mtest::StructureCurrentState::getModelCurrentState ( const Model & ) const
Returns
the current state associated with an auxiliary model
Parameters
[in]mmodel

◆ getModelWorkSpace()

BehaviourWorkSpace & mtest::StructureCurrentState::getModelWorkSpace ( const Model & )
Returns
the workspace associated with the oxidation model
Parameters
[in]mmodel

◆ setBehaviour()

void mtest::StructureCurrentState::setBehaviour ( const std::shared_ptr< Behaviour > & )

\set the behaviour associated to the structure

Parameters
[in]p: pointer to the behaviour

◆ setModellingHypothesis()

void mtest::StructureCurrentState::setModellingHypothesis ( const Hypothesis )

\set the behaviour associated to the structure

Parameters
[in]mh: modelling hypothesis

The documentation for this struct was generated from the following file: