|
tfel
|
Impose a contraint on the driving variables. More...
#include </home/runner/work/tfel/tfel/mtest/include/MTest/NonLinearConstraint.hxx>
Public Types | |
| enum | NormalisationPolicy { DRIVINGVARIABLECONSTRAINT , THERMODYNAMICFORCECONSTRAINT } |
| define the normalisation policy More... | |
Public Member Functions | |
| NonLinearConstraint (const Behaviour &, const std::string &, const EvolutionManager &, const NormalisationPolicy) | |
| NonLinearConstraint & | operator= (const NonLinearConstraint &)=delete |
| NonLinearConstraint & | operator= (NonLinearConstraint &&)=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 |
| ~NonLinearConstraint () 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 Member Functions | |
| double | eval (tfel::math::Evaluator &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real) const |
| evaluate the constraint or one of its derivatives | |
Protected Attributes | |
| std::shared_ptr< Constraint > | c |
| evaluation of the constraint | |
| const Behaviour & | b |
| normalisation policy | |
Impose a contraint on the driving variables.
define the normalisation policy
| mtest::NonLinearConstraint::NonLinearConstraint | ( | const Behaviour & | , |
| const std::string & | , | ||
| const EvolutionManager & | , | ||
| const NormalisationPolicy | ) |
constructor
| [in] | b_ | behaviour |
| [in] | f | analytic defintion of the constraint |
| [in] | evm | evolution manager |
| [in] | p | normalisation policy |
|
nodiscardoverridevirtual |
| [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.
|
nodiscardprotected |
evaluate the constraint or one of its derivatives
| [in] | d | driving variables |
| [in] | s | thermodynamic forces |
| [in] | t | beginning of the time step |
| [in] | dt | time increment |
|
nodiscardoverridevirtual |
| [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.
|
nodiscardoverridevirtual |
Implements mtest::Constraint.
|
overridevirtual |
builds up the stiffness matrix and the residual.
| [out] | K | stiffness matrix |
| [out] | r | residual vector |
| [in] | u0 | value of the unknowns at the beginning of the time step |
| [in] | u1 | current estimate of the unknowns |
| [in] | u1 | current estimate of the unknowns |
| [in] | k | approximation of the derivative of the thermodynamic force with respect to the driving variable, as returned by the mechanical behaviour. |
| [in] | f | thermodynamic forces. |
| [in] | u1 | current estimate of the unknowns |
| [in] | p | position of the first lagrange multiplier in the residual |
| [in] | d | space dimension |
| [in] | t | beginning of the time step |
| [in] | dt | time increment |
| [in] | a | normalisation factor |
Implements mtest::Constraint.