tfel
Loading...
Searching...
No Matches
mtest::ImposedThermodynamicForce Struct Referencefinal

Impose the value of a thermodynamic force component. More...

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

Inheritance diagram for mtest::ImposedThermodynamicForce:
mtest::ConstraintBase mtest::Constraint mtest::ConstraintOptions

Public Member Functions

 ImposedThermodynamicForce (const Behaviour &, const std::string &, const std::shared_ptr< Evolution >)
 constructor
 ImposedThermodynamicForce (const unsigned short, const std::shared_ptr< Evolution >)
 constructor
ImposedThermodynamicForce & operator= (const ImposedThermodynamicForce &)=delete
ImposedThermodynamicForce & operator= (ImposedThermodynamicForce &&)=delete
unsigned short getNumberOfLagrangeMultipliers () const override
void setValues (tfel::math::matrix< real > &, tfel::math::vector< real > &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const tfel::math::matrix< real > &, const tfel::math::vector< real > &, const unsigned short, const unsigned short, const real, const real, const real) const override
 builds up the stiffness matrix and the residual.
bool checkConvergence (const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real, const real, const real) const override
std::string getFailedCriteriaDiagnostic (const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real, const real, const real) const override
 ~ImposedThermodynamicForce () override
 destructor
Public Member Functions inherited from mtest::ConstraintBase
bool treatEvent (const std::string &) override
 treat the given event
void setActivatingEvents (const std::vector< std::string > &) override
 set the activating events
void setDesactivatingEvents (const std::vector< std::string > &) override
 set the desactivating events
void setActive (const bool) override
 activate or desactivate the constraint
bool isActive () const override
 ~ConstraintBase () override
 destructor
Public Member Functions inherited from mtest::Constraint
virtual ~Constraint ()
 destructor

Protected Attributes

const std::shared_ptr< Evolution > sev
 thermodynamic force evolution
unsigned short c
 component value
std::vector< unsigned short > rows
 rows of the residual associated with the component

Detailed Description

Impose the value of a thermodynamic force component.

Constructor & Destructor Documentation

◆ ImposedThermodynamicForce() [1/2]

mtest::ImposedThermodynamicForce::ImposedThermodynamicForce ( const Behaviour & ,
const std::string & ,
const std::shared_ptr< Evolution >  )

constructor

Parameters
[in]b: behaviour
[in]c: thermodynamic force component
[in]s: thermodynamic force evolution

◆ ImposedThermodynamicForce() [2/2]

mtest::ImposedThermodynamicForce::ImposedThermodynamicForce ( const unsigned short ,
const std::shared_ptr< Evolution >  )

constructor

Parameters
[in]c: thermodynamic force component
[in]s: thermodynamic force evolution

Member Function Documentation

◆ checkConvergence()

bool mtest::ImposedThermodynamicForce::checkConvergence ( const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const real ,
const real ,
const real ,
const real  ) const
nodiscardoverridevirtual
Parameters
[in]e: driving variables
[in]s: thermodynamic forces
[in]eeps: criterium value for driving variables
[in]seps: criterium value for thermodynamic forces
[in]t: beginning of the time step
[in]dt: time increment

Implements mtest::Constraint.

◆ getFailedCriteriaDiagnostic()

std::string mtest::ImposedThermodynamicForce::getFailedCriteriaDiagnostic ( const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const real ,
const real ,
const real ,
const real  ) const
nodiscardoverridevirtual
Parameters
[in]e: driving variables
[in]s: thermodynamic forces
[in]eeps: criterium value for driving variables
[in]seps: criterium value for thermodynamic forces
[in]t: beginning of the time step
[in]dt: time increment

Implements mtest::Constraint.

◆ getNumberOfLagrangeMultipliers()

unsigned short mtest::ImposedThermodynamicForce::getNumberOfLagrangeMultipliers ( ) const
nodiscardoverridevirtual
Returns
the number of Lagrange Multipliers associated with this contraint

Implements mtest::Constraint.

◆ setValues()

void mtest::ImposedThermodynamicForce::setValues ( tfel::math::matrix< real > & ,
tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const tfel::math::matrix< real > & ,
const tfel::math::vector< real > & ,
const unsigned short ,
const unsigned short ,
const real ,
const real ,
const real  ) const
overridevirtual

builds up the stiffness matrix and the residual.

Parameters
[out]Kstiffness matrix
[out]rresidual vector
[in]u0value of the unknowns at the beginning of the time step
[in]u1current estimate of the unknowns
[in]u1current estimate of the unknowns
[in]kapproximation of the derivative of the thermodynamic force with respect to the driving variable, as returned by the mechanical behaviour.
[in]fthermodynamic forces.
[in]u1current estimate of the unknowns
[in]pposition of the first lagrange multiplier in the residual
[in]dspace dimension
[in]tbeginning of the time step
[in]dttime increment
[in]anormalisation factor

Implements mtest::Constraint.


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