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

abstract class describing a physical system More...

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

Inheritance diagram for mtest::Study:
mtest::SchemeBase mtest::SingleStructureScheme mtest::MTest mtest::PipeTest tfel::utilities::MTestDocParser

Public Types

using size_type = tfel::math::vector<real>::size_type
 a simple alias

Public Member Functions

virtual size_type getNumberOfUnknowns () const =0
virtual void initializeCurrentState (StudyCurrentState &) const =0
 initialize the current state
virtual void initializeWorkSpace (SolverWorkSpace &) const =0
 initialize the workspace
virtual std::pair< bool, real > prepare (StudyCurrentState &, const real, const real) const =0
 update current state at the beginning of a new time step:
virtual void makeLinearPrediction (StudyCurrentState &, const real) const =0
 make a linear prediction of the unknows and state
virtual bool doPackagingStep (StudyCurrentState &) const =0
 perform the computation of the packaging step
virtual std::pair< bool, real > computePredictionStiffnessAndResidual (StudyCurrentState &, tfel::math::matrix< real > &, tfel::math::vector< real > &, const real &, const real &, const StiffnessMatrixType) const =0
 compute the stiffness matrix and the residual
virtual std::pair< bool, real > computeStiffnessMatrixAndResidual (StudyCurrentState &, tfel::math::matrix< real > &, tfel::math::vector< real > &, const real, const real, const StiffnessMatrixType) const =0
 compute the stiffness matrix and the residual
virtual real getErrorNorm (const tfel::math::vector< real > &) const =0
virtual bool checkConvergence (StudyCurrentState &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const SolverOptions &, const unsigned int, const real, const real) const =0
virtual std::vector< std::string > getFailedCriteriaDiagnostic (const StudyCurrentState &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const SolverOptions &, const real, const real) const =0
virtual void computeLoadingCorrection (StudyCurrentState &, SolverWorkSpace &, const SolverOptions &, const real, const real) const =0
virtual bool postConvergence (StudyCurrentState &, const real, const real, const unsigned int) const =0
virtual void setModellingHypothesis (const std::string &)=0
virtual void printOutput (const real, const StudyCurrentState &, const bool) const =0
 print usefull information in the output file
virtual void setDefaultModellingHypothesis ()=0
 set the modelling hypothesis to the default one
virtual ~Study ()
 destructor

Protected Member Functions

virtual void setGaussPointPositionForEvolutionsEvaluation (const CurrentState &) const =0
 set the position of the Gauss point in the evolution manager

Detailed Description

abstract class describing a physical system

Member Function Documentation

◆ checkConvergence()

virtual bool mtest::Study::checkConvergence ( StudyCurrentState & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const SolverOptions & ,
const unsigned int ,
const real ,
const real  ) const
nodiscardpure virtual
Parameters
[in]scurrent structure state
[in]duunknows increment estimation
[in]rresidual
[in]osolver options
[in]iiteration number
[in]tcurrent time
[in]dttime increment
Returns
a boolean saying if all convergence criteria are met

Implemented in mtest::MTest, and mtest::PipeTest.

◆ computeLoadingCorrection()

virtual void mtest::Study::computeLoadingCorrection ( StudyCurrentState & ,
SolverWorkSpace & ,
const SolverOptions & ,
const real ,
const real  ) const
pure virtual
Parameters
[out]scurrent structure state
[in]wksolver workspace
[in]osolver options
[in]tcurrent time
[in]dttime increment

Implemented in mtest::MTest, and mtest::PipeTest.

◆ computePredictionStiffnessAndResidual()

virtual std::pair< bool, real > mtest::Study::computePredictionStiffnessAndResidual ( StudyCurrentState & ,
tfel::math::matrix< real > & ,
tfel::math::vector< real > & ,
const real & ,
const real & ,
const StiffnessMatrixType  ) const
nodiscardpure virtual

compute the stiffness matrix and the residual

Returns
a pair containing:
  • a boolean syaing if the behaviour integration shall be performed
  • a scaling factor that can be used to:
    • increase the time step if the integration was successfull
    • decrease the time step if the integration failed or if the results were not reliable (time step too large).
Parameters
[out]scurrent structure state
[out]Ktangent operator
[out]rresidual
[in]tcurrent time
[in]dttime increment
[in]smttype of tangent operator
Note
the memory has already been allocated

Implemented in mtest::MTest, and mtest::PipeTest.

◆ computeStiffnessMatrixAndResidual()

virtual std::pair< bool, real > mtest::Study::computeStiffnessMatrixAndResidual ( StudyCurrentState & ,
tfel::math::matrix< real > & ,
tfel::math::vector< real > & ,
const real ,
const real ,
const StiffnessMatrixType  ) const
nodiscardpure virtual

compute the stiffness matrix and the residual

Returns
a pair containing:
  • a boolean syaing if the behaviour integration shall be performed
  • a scaling factor that can be used to:
    • increase the time step if the integration was successfull
    • decrease the time step if the integration failed or if the results were not reliable (time step too large).
Parameters
[out]scurrent structure state
[out]Ktangent operator
[out]rresidual
[in]tcurrent time
[in]dttime increment
[in]smttype of tangent operator
Note
the memory has already been allocated

Implemented in mtest::MTest, and mtest::PipeTest.

◆ doPackagingStep()

virtual bool mtest::Study::doPackagingStep ( StudyCurrentState & ) const
nodiscardpure virtual

perform the computation of the packaging step

Implemented in mtest::SingleStructureScheme.

◆ getErrorNorm()

virtual real mtest::Study::getErrorNorm ( const tfel::math::vector< real > & ) const
nodiscardpure virtual
Parameters
[in]du unknows increment difference between two iterations

Implemented in mtest::MTest, and mtest::PipeTest.

◆ getFailedCriteriaDiagnostic()

virtual std::vector< std::string > mtest::Study::getFailedCriteriaDiagnostic ( const StudyCurrentState & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const SolverOptions & ,
const real ,
const real  ) const
nodiscardpure virtual
Parameters
[in]scurrent structure state
[in]duunknows increment estimation
[in]rresidual
[in]osolver options
[in]tcurrent time
[in]dttime increment
Returns
a description of all the criteria that were not met.

Implemented in mtest::MTest, and mtest::PipeTest.

◆ getNumberOfUnknowns()

virtual size_type mtest::Study::getNumberOfUnknowns ( ) const
nodiscardpure virtual
Returns
the total number of unknowns (including the Lagrange multipliers)

Implemented in mtest::MTest, and mtest::PipeTest.

◆ initializeCurrentState()

virtual void mtest::Study::initializeCurrentState ( StudyCurrentState & ) const
pure virtual

initialize the current state

Parameters
[in]s: current state

Implemented in mtest::MTest, and mtest::PipeTest.

◆ initializeWorkSpace()

virtual void mtest::Study::initializeWorkSpace ( SolverWorkSpace & ) const
pure virtual

initialize the workspace

Parameters
[in]wk: workspace

Implemented in mtest::MTest, and mtest::PipeTest.

◆ makeLinearPrediction()

virtual void mtest::Study::makeLinearPrediction ( StudyCurrentState & ,
const real  ) const
pure virtual

make a linear prediction of the unknows and state

Parameters
[out]scurrent structure state
[in]dttime increment

Implemented in mtest::MTest, and mtest::PipeTest.

◆ postConvergence()

virtual bool mtest::Study::postConvergence ( StudyCurrentState & ,
const real ,
const real ,
const unsigned int  ) const
nodiscardpure virtual
Parameters
[out]scurrent structure state
[in]tcurrent time
[in]dttime increment
[in]pperiod

Implemented in mtest::MTest, and mtest::PipeTest.

◆ prepare()

virtual std::pair< bool, real > mtest::Study::prepare ( StudyCurrentState & ,
const real ,
const real  ) const
nodiscardpure virtual

update current state at the beginning of a new time step:

  • update the material properties
  • update the external state variables
  • compute the thermal expansion if mandatory
    Parameters
    [out]scurrent structure state
    [in]tcurrent time
    [in]dttime increment

Implemented in mtest::MTest, mtest::PipeTest, and mtest::SingleStructureScheme.

◆ printOutput()

virtual void mtest::Study::printOutput ( const real ,
const StudyCurrentState & ,
const bool  ) const
pure virtual

print usefull information in the output file

Parameters
[in]ttime
[in]scurrent state
[in]oif true, this time has been specified by the user. Otherwise, it has been reached due to sub-stepping.

Implemented in mtest::MTest, and mtest::PipeTest.

◆ setDefaultModellingHypothesis()

virtual void mtest::Study::setDefaultModellingHypothesis ( )
pure virtual

set the modelling hypothesis to the default one

Implemented in mtest::MTest, and mtest::PipeTest.

◆ setGaussPointPositionForEvolutionsEvaluation()

virtual void mtest::Study::setGaussPointPositionForEvolutionsEvaluation ( const CurrentState & ) const
protectedpure virtual

set the position of the Gauss point in the evolution manager

Parameters
[in]scurrent state

Implemented in mtest::MTest.

◆ setModellingHypothesis()

virtual void mtest::Study::setModellingHypothesis ( const std::string & )
pure virtual
Parameters
[in]h: modelling hypothesis

Implemented in mtest::PipeTest, and mtest::SchemeBase.


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