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

Base class for the constraints imposed to a single mechanical point which handles all the details about the active state and associated events. More...

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

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

Public Member Functions

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 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

Base class for the constraints imposed to a single mechanical point which handles all the details about the active state and associated events.

Member Function Documentation

◆ isActive()

bool mtest::ConstraintBase::isActive ( ) const
nodiscardoverridevirtual
Returns
if the constraint is active

Implements mtest::Constraint.

◆ setActivatingEvents()

void mtest::ConstraintBase::setActivatingEvents ( const std::vector< std::string > & )
overridevirtual

set the activating events

Parameters
[in]evslist of events

Implements mtest::Constraint.

◆ setActive()

void mtest::ConstraintBase::setActive ( const bool )
overridevirtual

activate or desactivate the constraint

Parameters
[in]bstate

Implements mtest::Constraint.

◆ setDesactivatingEvents()

void mtest::ConstraintBase::setDesactivatingEvents ( const std::vector< std::string > & )
overridevirtual

set the desactivating events

Parameters
[in]evslist of events

Implements mtest::Constraint.

◆ treatEvent()

bool mtest::ConstraintBase::treatEvent ( const std::string & )
overridevirtual

treat the given event

Parameters
[in]e:event

Implements mtest::Constraint.


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