tfel
Loading...
Searching...
No Matches
mtest::Constraint Struct Referenceabstract

Abstract class for all the constraints imposed to a single mechanical point. More...

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

Inheritance diagram for mtest::Constraint:
mtest::ConstraintBase mtest::ImposedGradient mtest::ImposedThermodynamicForce mtest::NonLinearConstraint

Public Member Functions

virtual bool treatEvent (const std::string &)=0
 treat the given event
virtual void setActivatingEvents (const std::vector< std::string > &)=0
 set the activating events
virtual void setDesactivatingEvents (const std::vector< std::string > &)=0
 set the desactivating events
virtual void setActive (const bool)=0
 activate or desactivate the constraint
virtual bool isActive () const =0
virtual unsigned short getNumberOfLagrangeMultipliers () const =0
virtual 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 =0
 builds up the stiffness matrix and the residual.
virtual bool checkConvergence (const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real, const real, const real) const =0
virtual std::string getFailedCriteriaDiagnostic (const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real, const real, const real) const =0
virtual ~Constraint ()
 destructor

Detailed Description

Abstract class for all the constraints imposed to a single mechanical point.

Member Function Documentation

◆ checkConvergence()

virtual bool mtest::Constraint::checkConvergence ( const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const real ,
const real ,
const real ,
const real  ) const
nodiscardpure virtual
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

Implemented in mtest::ImposedGradient, mtest::ImposedThermodynamicForce, and mtest::NonLinearConstraint.

◆ getFailedCriteriaDiagnostic()

virtual std::string mtest::Constraint::getFailedCriteriaDiagnostic ( const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const real ,
const real ,
const real ,
const real  ) const
nodiscardpure virtual
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

Implemented in mtest::ImposedGradient, mtest::ImposedThermodynamicForce, and mtest::NonLinearConstraint.

◆ getNumberOfLagrangeMultipliers()

virtual unsigned short mtest::Constraint::getNumberOfLagrangeMultipliers ( ) const
nodiscardpure virtual
Returns
the number of Lagrange Multipliers associated with this contraint

Implemented in mtest::ImposedGradient, mtest::ImposedThermodynamicForce, and mtest::NonLinearConstraint.

◆ isActive()

virtual bool mtest::Constraint::isActive ( ) const
nodiscardpure virtual
Returns
if the constraint is active

Implemented in mtest::ConstraintBase.

◆ setActivatingEvents()

virtual void mtest::Constraint::setActivatingEvents ( const std::vector< std::string > & )
pure virtual

set the activating events

Parameters
[in]evslist of events

Implemented in mtest::ConstraintBase.

◆ setActive()

virtual void mtest::Constraint::setActive ( const bool )
pure virtual

activate or desactivate the constraint

Parameters
[in]bstate

Implemented in mtest::ConstraintBase.

◆ setDesactivatingEvents()

virtual void mtest::Constraint::setDesactivatingEvents ( const std::vector< std::string > & )
pure virtual

set the desactivating events

Parameters
[in]evslist of events

Implemented in mtest::ConstraintBase.

◆ setValues()

virtual void mtest::Constraint::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
pure virtual

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

Implemented in mtest::ImposedGradient, mtest::ImposedThermodynamicForce, and mtest::NonLinearConstraint.

◆ treatEvent()

virtual bool mtest::Constraint::treatEvent ( const std::string & )
pure virtual

treat the given event

Parameters
[in]e:event
Returns
true if the event led to activate or desactivate the constraint

Implemented in mtest::ConstraintBase.


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