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

a study describing mechanical tests on pipes More...

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

Inheritance diagram for mtest::PipeTest:
mtest::SingleStructureScheme mtest::SchemeBase mtest::Scheme mtest::Study tfel::tests::Test

Classes

struct  UTest
 base class for tests More...
struct  OxidationModel
 structure describing an oxidation model More...

Public Types

enum  AxialLoading {
  DEFAULTAXIALLOADING , ENDCAPEFFECT , IMPOSEDAXIALFORCE , IMPOSEDAXIALGROWTH ,
  NONE
}
 type of axial loading
enum  RadialLoading {
  DEFAULTLOADINGTYPE , TIGHTPIPE , IMPOSEDPRESSURE , IMPOSEDINNERRADIUS ,
  IMPOSEDOUTERRADIUS
}
 type of radial loading
enum  FailurePolicy { STOPCOMPUTATION , REPORTONLY , FREEZESTATEUNTILENDOFCOMPUTATION }
 policy related to failure More...
enum struct  Configuration { INTIAL_CONFIGURATION , CURRENT_CONFIGURATION }
using size_type = tfel::math::vector<real>::size_type
 a simple alias
Public Types inherited from mtest::SingleStructureScheme
using Parameters = tfel::utilities::Data
 a simple alias
Public Types inherited from mtest::SchemeBase
enum  OutputFrequency { USERDEFINEDTIMES , EVERYPERIOD }
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using EvolutionPtr = std::shared_ptr<Evolution>
 a simple alias
using BehaviourType
 a simple alias
using Kinematic = tfel::material::MechanicalBehaviourBase::Kinematic
 a simple alias
Public Types inherited from mtest::Study
using size_type = tfel::math::vector<real>::size_type
 a simple alias

Public Member Functions

 PipeTest ()
 default constructor
std::string name () const override
std::string classname () const override
const PipeMesh & getMesh () const
 return the mesh
virtual tfel::tests::TestResult execute (const bool)
 integrate the behaviour along the loading path
tfel::tests::TestResult execute () override
 integrate the behaviour along the loading path
virtual void execute (StudyCurrentState &, SolverWorkSpace &, const real, const real) const
virtual void setInnerRadius (const real)
 set the pipe inner radius
virtual void setOuterRadius (const real)
 set the pipe outer radius
virtual void setNumberOfElements (const int)
 set the number of elements
virtual void setElementType (const PipeMesh::ElementType)
 set the element type
virtual void setAxialLoading (const AxialLoading)
 set the pipe axial loading
virtual AxialLoading getAxialLoading () const
virtual void setMandrelRadiusEvolution (std::shared_ptr< Evolution >)
 set the evolution of the radius of the mandrel
virtual void setMandrelAxialGrowthEvolution (std::shared_ptr< Evolution >)
 set the evolution of the axial growth of the mandrel
virtual void setInnerPressureEvolution (std::shared_ptr< Evolution >)
 set the inner pressure evolution
virtual void setRadialLoading (const RadialLoading)
 set the radial loading type
virtual RadialLoading getRadialLoading () const
virtual void setInnerRadiusEvolution (std::shared_ptr< Evolution >)
 set the inner radius evolution
virtual void setOuterRadiusEvolution (std::shared_ptr< Evolution >)
 set the outer radius evolution
virtual void setOuterPressureEvolution (std::shared_ptr< Evolution >)
 set the outer pressure evolution
virtual void setAxialForceEvolution (std::shared_ptr< Evolution >)
 set the axial force evolution
virtual void setAxialGrowthEvolution (std::shared_ptr< Evolution >)
 set the axial growth evolution
virtual void setFillingPressure (const real)
 set the filling pressure evolution
virtual void setFillingTemperature (const real)
 set the filling temperature evolution
virtual void setGasEquationOfState (const std::string &)
 set the gas equation of state
virtual void setDisplacementEpsilon (const real)
 set displacement criterion value
virtual void setResidualEpsilon (const real)
 set criterium value for the convergence test on the residual
virtual size_type getNumberOfNodes () const
size_type getNumberOfUnknowns () const override
void initializeCurrentState (StudyCurrentState &) const override
 initialize the current state
void initializeWorkSpace (SolverWorkSpace &) const override
 initialize the workspace
std::pair< bool, real > prepare (StudyCurrentState &, const real, const real) const override
 update current state at the beginning of a new time step:
void makeLinearPrediction (StudyCurrentState &, const real) const override
 make a linear prediction of the unknows and state
std::pair< bool, real > computePredictionStiffnessAndResidual (StudyCurrentState &, tfel::math::matrix< real > &, tfel::math::vector< real > &, const real &, const real &, const StiffnessMatrixType) const override
 compute the stiffness matrix and the residual
std::pair< bool, real > computeStiffnessMatrixAndResidual (StudyCurrentState &, tfel::math::matrix< real > &, tfel::math::vector< real > &, const real, const real, const StiffnessMatrixType) const override
 compute the stiffness matrix and the residual
real getErrorNorm (const tfel::math::vector< real > &) const override
bool checkConvergence (StudyCurrentState &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const SolverOptions &, const unsigned int, const real, const real) const override
std::vector< std::string > getFailedCriteriaDiagnostic (const StudyCurrentState &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const SolverOptions &, const real, const real) const override
void computeLoadingCorrection (StudyCurrentState &, SolverWorkSpace &, const SolverOptions &, const real, const real) const override
bool postConvergence (StudyCurrentState &, const real, const real, const unsigned int) const override
void setModellingHypothesis (const std::string &) override
void setDefaultModellingHypothesis () override
 set the modelling hypothesis to the default one
void printOutput (const real, const StudyCurrentState &, const bool) const override
 print usefull information in the output file
virtual void addProfile (const std::string &, const std::vector< std::string > &)
 add a new profile postprocessing
virtual void performSmallStrainAnalysis ()
 turn hpp to true
virtual std::pair< real, real > computeMinimumAndMaximumValues (const StudyCurrentState &, const std::string &) const
 compute the minium and maximum values of a scalar variable
virtual std::pair< real, real > computeMinimumAndMaximumValues (const StudyCurrentState &, const std::function< real(const mtest::CurrentState &)> &) const
 compute the minium and maximum values of a scalar variable
virtual real computeMinimumValue (const StudyCurrentState &, const std::string &) const
 compute the minimum value of a scalar variable
virtual real computeMinimumValue (const StudyCurrentState &, const std::function< real(const mtest::CurrentState &)> &) const
 compute the minimum value of a scalar variable
virtual real computeMaximumValue (const StudyCurrentState &, const std::string &) const
 compute the maximum value of a scalar variable
virtual real computeMaximumValue (const StudyCurrentState &, const std::function< real(const mtest::CurrentState &)> &) const
 compute the maximum value of a scalar variable
virtual real computeIntegralValue (const StudyCurrentState &, const std::string &, const Configuration=Configuration::INTIAL_CONFIGURATION) const
 compute the integral value of a scalar variable
virtual real computeIntegralValue (const StudyCurrentState &, const std::function< real(const mtest::CurrentState &)> &, const Configuration=Configuration::INTIAL_CONFIGURATION) const
 compute the integral value of a scalar variable
virtual real computeMeanValue (const StudyCurrentState &, const std::string &, const Configuration=Configuration::INTIAL_CONFIGURATION) const
 compute the mean value of a scalar variable
virtual real computeMeanValue (const StudyCurrentState &, const std::function< real(const mtest::CurrentState &)> &, const Configuration=Configuration::INTIAL_CONFIGURATION) const
 compute the mean value of a scalar variable
virtual void addIntegralTest (const std::string &, const tfel::utilities::TextData &, const unsigned short, const real)
 add a test comparing to results stored in a reference file to the computed ones
virtual void addIntegralTest (const std::string &, const std::shared_ptr< Evolution >, const real)
 add a test comparing to results given by an evolution to the computed ones
virtual void addProfileTest (const std::string &, const tfel::utilities::TextData &, const unsigned short, const real)
 add a test comparing to results stored in a reference file to the computed ones
virtual void addOutput (const std::string &, const std::string &)
 add a output
void addFailureCriterion (const std::string &, const tfel::utilities::DataMap &)
 add a failure criterion
void setFailurePolicy (const FailurePolicy)
 change the way a failure is treated
void addOxidationModel (const std::string &, const std::string &, const std::string &)
 change the way a failure is treated
void completeInitialisation () override
 ~PipeTest () override
 destructor
Public Member Functions inherited from mtest::SingleStructureScheme
 SingleStructureScheme ()
 default constructor
virtual void setBehaviour (const std::string &, const std::string &, const std::string &, const Parameters &=Parameters())
 set the behaviour
virtual void setBehaviour (const std::string &, const std::string &, const std::string &, const std::string &, const Parameters &=Parameters())
 set the behaviour
virtual void setMaterialProperty (const std::string &, const EvolutionPtr, const bool)
 define a material property
virtual void setExternalStateVariable (const std::string &, const EvolutionPtr, const bool)
 define an external state variable
virtual BehaviourType getBehaviourType () const
virtual Kinematic getBehaviourKinematic () const
virtual std::shared_ptr< Behaviour > getBehaviour ()
virtual std::shared_ptr< const Behaviour > getBehaviour () const
virtual void setHandleThermalExpansion (const bool)
 set if mtest shall handle thermal expansion coefficient If true, the thermal expansion will be handled if the thermal expansion coefficients are defined.
bool doPackagingStep (StudyCurrentState &) const override
 perform the computation of the packaging step
std::pair< bool, real > prepare (StudyCurrentState &, const real, const real) const override
 update current state at the beginning of a new time step:
virtual void setParameter (const std::string &, const double)
virtual void setIntegerParameter (const std::string &, const int)
virtual void setUnsignedIntegerParameter (const std::string &, const unsigned int)
virtual void setInternalStateVariableInitialValue (const std::string &, const real)
 set the inital value of a scalar variable
virtual void setInternalStateVariableInitialValue (const std::string &, const std::vector< real > &)
 set the inital values of an internal state variable
virtual void setScalarInternalStateVariableInitialValue (const std::string &, const real)
 set the inital value of a scalar variable
virtual void setStensorInternalStateVariableInitialValues (const std::string &, const std::vector< real > &)
 set the inital values of a symetric tensor variable
virtual void setTensorInternalStateVariableInitialValues (const std::string &, const std::vector< real > &)
 set the inital values of a tensor variable
virtual void setOutOfBoundsPolicy (const tfel::material::OutOfBoundsPolicy)
 set the out of bounds policy
void completeInitialisation () override
 ~SingleStructureScheme () override
 destructor
Public Member Functions inherited from mtest::SchemeBase
 SchemeBase ()
 constructor
 SchemeBase (SchemeBase &&)=delete
 move constructor
 SchemeBase (const SchemeBase &)=delete
 copy constructor
SchemeBase & operator= (SchemeBase &&)=delete
 move assignement
SchemeBase & operator= (const SchemeBase &)=delete
 standard assignement
void setModellingHypothesis (const std::string &) override
virtual void setTimes (const std::vector< real > &)
virtual void setOutputFileName (const std::string &)
 set the output file
virtual bool isOutputFileNameDefined () const
virtual void setOutputFilePrecision (const unsigned int)
 set the output file precision
virtual void setResidualFileName (const std::string &)
 set the residual file
virtual bool isResidualFileNameDefined () const
virtual void setXMLOutputFileName (const std::string &)
 set the residual file
virtual bool isXMLOutputFileNameDefined () const
virtual std::string getXMLOutputFileName () const
virtual void setResidualFilePrecision (const unsigned int)
 set the residual file precision
const EvolutionManager & getEvolutions () const
virtual void addEvolution (const std::string &, const EvolutionPtr, const bool, const bool)
 add a new evolution
virtual void setEvolutionValue (const std::string &, const real, const real)
 set evolution value for a given time
virtual void setDescription (const std::string &)
 set the description
virtual void setAuthor (const std::string &)
 set the author
virtual void setDate (const std::string &)
 set the date
virtual void setOutputFrequency (const OutputFrequency)
 set the output frequency
virtual void setDynamicTimeStepScaling (const bool)
 set the maximal time step
virtual void setMaximalTimeStep (const real)
 set the maximal time step
virtual void setMinimalTimeStep (const real)
 set the minimal time step
virtual void setMaximalTimeStepScalingFactor (const real)
 set the maximal time step scaling factor
virtual void setMinimalTimeStepScalingFactor (const real)
 set the minimal time step scaling factor
virtual void setMaximumNumberOfIterations (const unsigned int)
virtual void setMaximumNumberOfSubSteps (const unsigned int)
virtual unsigned short getDimension () const
virtual ModellingHypothesis::Hypothesis getModellingHypothesis () const
virtual void setStiffnessUpdatingPolicy (const StiffnessUpdatingPolicy)
 set the stiffness updating policy
virtual void setPredictionPolicy (const PredictionPolicy)
 set the prediction policy
virtual void setStiffnessMatrixType (const StiffnessMatrixType)
 set the stiffness matrix type
virtual void setUseCastemAccelerationAlgorithm (const bool)
 set the use of the castem acceleration algorithm
virtual void setAccelerationAlgorithm (const std::string &)
 set the acceleration algorithm to be used
virtual void setAccelerationAlgorithmParameter (const std::string &, const std::string &)
 set a parameter of the acceleration algorithm
virtual void setCastemAccelerationTrigger (const int)
 set at which iteration the use of the castem acceleration algorithm will begin
virtual void setCastemAccelerationPeriod (const int)
 set at which period the use of the castem acceleration algorithm will take place
virtual void resetOutputFile ()
 close and reopen the output files
 ~SchemeBase () override
 destructor
Public Member Functions inherited from mtest::Scheme
 ~Scheme () override
 desctructor
Public Member Functions inherited from tfel::tests::Test
virtual ~Test ()
 destructor
Public Member Functions inherited from mtest::Study
virtual ~Study ()
 destructor

Protected Member Functions

void checkBehaviourConsistency (const std::shared_ptr< Behaviour > &) override
 check that the behaviour is consistent with the modelling hypothesis
void checkIntegralTestArgument (const std::string &) const
 check that the tested variable is meaningful
Protected Member Functions inherited from mtest::SingleStructureScheme
virtual void setBehaviour (const std::shared_ptr< Behaviour > &)
 set the behaviour
StiffnessMatrixType getDefaultStiffnessMatrixType () const override
Protected Member Functions inherited from mtest::SchemeBase
void declareVariable (const std::string &, const bool)
 declare a new variable
void declareVariables (const std::vector< std::string > &, const bool)
 declare a list of new variables

Additional Inherited Members

Protected Attributes inherited from mtest::SingleStructureScheme
std::vector< std::string > ivfullnames
 list of internal variable names, including their suffixes
std::shared_ptr< Behaviour > b
 the mechanical behaviour
std::shared_ptr< EvolutionManager > dmpv
 default values for material properties as given by the behaviour
std::vector< real > iv_t0
bool handleThermalExpansion = true
 handle the computation of thermal expansion
Protected Attributes inherited from mtest::SchemeBase
std::vector< std::string > vnames
 declared variable names
bool initialisationFinished = false
 initilisation stage
SolverOptions options
 solver options
std::vector< real > times
 times
std::string description
 description of the test
std::string author
 author
std::string date
 date
ModellingHypothesis::Hypothesis hypothesis
 modelling hypothesis
std::shared_ptr< EvolutionManager > evm
 list of evolutions
std::string output
 output file name
std::ofstream out
 output file
std::string residualFileName
 residual file name
std::string xmlFileName
 xml file name
std::ofstream residual
OutputFrequency output_frequency = USERDEFINEDTIMES
 output frequency
int oprec = -1
 output file precision
int rprec = -1
 residual file precision

Detailed Description

a study describing mechanical tests on pipes

Member Enumeration Documentation

◆ FailurePolicy

policy related to failure

Enumerator
STOPCOMPUTATION 

if a failure is detected, computations are stopped.

REPORTONLY 

failure detection is reported in the output file, but computations are performed as usual.

FREEZESTATEUNTILENDOFCOMPUTATION 

if a failure is detected, the state of the structure is freezed and do not evolve. No equilibrium is performed, the behaviour is no more called and PipeTest will output the same results again and again until the end of computation. This option may be useful when optimizing material parameters.

Member Function Documentation

◆ addFailureCriterion()

void mtest::PipeTest::addFailureCriterion ( const std::string & ,
const tfel::utilities::DataMap &  )

add a failure criterion

Parameters
[in]nname of the failure criterion
[in]optsoptions used to initialize the failure criterion

◆ addIntegralTest() [1/2]

virtual void mtest::PipeTest::addIntegralTest ( const std::string & ,
const std::shared_ptr< Evolution > ,
const real  )
virtual

add a test comparing to results given by an evolution to the computed ones

Parameters
[in]nnamed of the variable tested
[in]evevolution
[in]ecriterion value

◆ addIntegralTest() [2/2]

virtual void mtest::PipeTest::addIntegralTest ( const std::string & ,
const tfel::utilities::TextData & ,
const unsigned short ,
const real  )
virtual

add a test comparing to results stored in a reference file to the computed ones

Parameters
[in]nnamed of the variable tested
[in]ddata
[in]ccolumn
[in]ecriterion value

◆ addOutput()

virtual void mtest::PipeTest::addOutput ( const std::string & ,
const std::string &  )
virtual

add a output

Parameters
[in]ttype of output (minimum_value, maximum_value, minimum_and_maximum_value)
[in]nname of the output

◆ addOxidationModel()

void mtest::PipeTest::addOxidationModel ( const std::string & ,
const std::string & ,
const std::string &  )

change the way a failure is treated

Parameters
[in]librarylibrary path
[in]modelname of the oxidation model
[in]boundaryboundary name. Must be inner_boundary or outer_boundary

◆ addProfile()

virtual void mtest::PipeTest::addProfile ( const std::string & ,
const std::vector< std::string > &  )
virtual

add a new profile postprocessing

Parameters
[in]ffile name
[in]ccomponents

◆ addProfileTest()

virtual void mtest::PipeTest::addProfileTest ( const std::string & ,
const tfel::utilities::TextData & ,
const unsigned short ,
const real  )
virtual

add a test comparing to results stored in a reference file to the computed ones

Parameters
[in]nnamed of the variable tested
[in]ddata
[in]ccolumn
[in]ecriterion value

◆ checkBehaviourConsistency()

void mtest::PipeTest::checkBehaviourConsistency ( const std::shared_ptr< Behaviour > & )
overrideprotectedvirtual

check that the behaviour is consistent with the modelling hypothesis

Parameters
[in]bp: pointer to the behaviour

Reimplemented from mtest::SingleStructureScheme.

◆ checkConvergence()

bool mtest::PipeTest::checkConvergence ( StudyCurrentState & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const SolverOptions & ,
const unsigned int ,
const real ,
const real  ) const
nodiscardoverridevirtual
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

Implements mtest::Study.

◆ checkIntegralTestArgument()

void mtest::PipeTest::checkIntegralTestArgument ( const std::string & ) const
protected

check that the tested variable is meaningful

Parameters
[in]nnamed of the variable tested

◆ classname()

std::string mtest::PipeTest::classname ( ) const
nodiscardoverridevirtual
Returns
the group of the test

Implements tfel::tests::Test.

◆ completeInitialisation()

void mtest::PipeTest::completeInitialisation ( )
overridevirtual

complete the initialisation. This method must be called once.

Note
this method must be called by the derived class.

Reimplemented from mtest::SchemeBase.

◆ computeIntegralValue() [1/2]

virtual real mtest::PipeTest::computeIntegralValue ( const StudyCurrentState & ,
const std::function< real(const mtest::CurrentState &)> & ,
const Configuration = Configuration::INTIAL_CONFIGURATION ) const
nodiscardvirtual

compute the integral value of a scalar variable

Parameters
[in]sstructure state
[in]efunction returning value at integration point
[in]cenum element to choose the initial or final configuration

◆ computeIntegralValue() [2/2]

virtual real mtest::PipeTest::computeIntegralValue ( const StudyCurrentState & ,
const std::string & ,
const Configuration = Configuration::INTIAL_CONFIGURATION ) const
nodiscardvirtual

compute the integral value of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name
[in]cenum element to choose the initial or final configuration

◆ computeLoadingCorrection()

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

Implements mtest::Study.

◆ computeMaximumValue() [1/2]

virtual real mtest::PipeTest::computeMaximumValue ( const StudyCurrentState & ,
const std::function< real(const mtest::CurrentState &)> &  ) const
nodiscardvirtual

compute the maximum value of a scalar variable

Parameters
[in]sstructure state
[in]efunction returning value at integration point

◆ computeMaximumValue() [2/2]

virtual real mtest::PipeTest::computeMaximumValue ( const StudyCurrentState & ,
const std::string &  ) const
nodiscardvirtual

compute the maximum value of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name

◆ computeMeanValue() [1/2]

virtual real mtest::PipeTest::computeMeanValue ( const StudyCurrentState & ,
const std::function< real(const mtest::CurrentState &)> & ,
const Configuration = Configuration::INTIAL_CONFIGURATION ) const
nodiscardvirtual

compute the mean value of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name
[in]cenum element to choose the initial or final configuration

◆ computeMeanValue() [2/2]

virtual real mtest::PipeTest::computeMeanValue ( const StudyCurrentState & ,
const std::string & ,
const Configuration = Configuration::INTIAL_CONFIGURATION ) const
nodiscardvirtual

compute the mean value of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name
[in]cenum element to choose the initial or final configuration

◆ computeMinimumAndMaximumValues() [1/2]

virtual std::pair< real, real > mtest::PipeTest::computeMinimumAndMaximumValues ( const StudyCurrentState & ,
const std::function< real(const mtest::CurrentState &)> &  ) const
nodiscardvirtual

compute the minium and maximum values of a scalar variable

Parameters
[in]sstructure state
[in]efunction returning value at integration point

◆ computeMinimumAndMaximumValues() [2/2]

virtual std::pair< real, real > mtest::PipeTest::computeMinimumAndMaximumValues ( const StudyCurrentState & ,
const std::string &  ) const
nodiscardvirtual

compute the minium and maximum values of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name

◆ computeMinimumValue() [1/2]

virtual real mtest::PipeTest::computeMinimumValue ( const StudyCurrentState & ,
const std::function< real(const mtest::CurrentState &)> &  ) const
nodiscardvirtual

compute the minimum value of a scalar variable

Parameters
[in]sstructure state
[in]efunction returning value at integration point

◆ computeMinimumValue() [2/2]

virtual real mtest::PipeTest::computeMinimumValue ( const StudyCurrentState & ,
const std::string &  ) const
nodiscardvirtual

compute the minimum value of a scalar variable

Parameters
[in]sstructure state
[in]nvariable name

◆ computePredictionStiffnessAndResidual()

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

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

Implements mtest::Study.

◆ computeStiffnessMatrixAndResidual()

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

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

Implements mtest::Study.

◆ execute() [1/3]

tfel::tests::TestResult mtest::PipeTest::execute ( )
nodiscardoverridevirtual

integrate the behaviour along the loading path

Note
this is equivalent to execute(true)

Implements tfel::tests::Test.

◆ execute() [2/3]

virtual tfel::tests::TestResult mtest::PipeTest::execute ( const bool )
nodiscardvirtual

integrate the behaviour along the loading path

Parameters
[in]bInitif true, call the completeInitialisationMethod

◆ execute() [3/3]

virtual void mtest::PipeTest::execute ( StudyCurrentState & ,
SolverWorkSpace & ,
const real ,
const real  ) const
virtual

integrate the behaviour over one step

Parameters
[out]scurrent structure state
[out]wkworkspace
[in]tcurrent time
[in]dttime increment

◆ getAxialLoading()

virtual AxialLoading mtest::PipeTest::getAxialLoading ( ) const
virtual
Returns
the axial loading

◆ getErrorNorm()

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

Implements mtest::Study.

◆ getFailedCriteriaDiagnostic()

std::vector< std::string > mtest::PipeTest::getFailedCriteriaDiagnostic ( const StudyCurrentState & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const SolverOptions & ,
const real ,
const real  ) const
nodiscardoverridevirtual
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.

Implements mtest::Study.

◆ getNumberOfNodes()

virtual size_type mtest::PipeTest::getNumberOfNodes ( ) const
nodiscardvirtual
Returns
the total number of nodes

◆ getNumberOfUnknowns()

size_type mtest::PipeTest::getNumberOfUnknowns ( ) const
nodiscardoverridevirtual
Returns
the total number of unknowns (including the Lagrange multipliers)

Implements mtest::Study.

◆ getRadialLoading()

virtual RadialLoading mtest::PipeTest::getRadialLoading ( ) const
virtual
Returns
the radial loading type

◆ initializeCurrentState()

void mtest::PipeTest::initializeCurrentState ( StudyCurrentState & ) const
overridevirtual

initialize the current state

Parameters
[in]s: current state

Implements mtest::Study.

◆ initializeWorkSpace()

void mtest::PipeTest::initializeWorkSpace ( SolverWorkSpace & ) const
overridevirtual

initialize the workspace

Parameters
[in]wk: workspace

Implements mtest::Study.

◆ makeLinearPrediction()

void mtest::PipeTest::makeLinearPrediction ( StudyCurrentState & ,
const real  ) const
overridevirtual

make a linear prediction of the unknows and state

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

Implements mtest::Study.

◆ name()

std::string mtest::PipeTest::name ( ) const
nodiscardoverridevirtual
Returns
the name of the test

Implements tfel::tests::Test.

◆ postConvergence()

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

Implements mtest::Study.

◆ prepare()

std::pair< bool, real > mtest::PipeTest::prepare ( StudyCurrentState & ,
const real ,
const real  ) const
nodiscardoverridevirtual

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

Implements mtest::Study.

◆ printOutput()

void mtest::PipeTest::printOutput ( const real ,
const StudyCurrentState & ,
const bool  ) const
overridevirtual

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.

Implements mtest::Study.

◆ setAxialForceEvolution()

virtual void mtest::PipeTest::setAxialForceEvolution ( std::shared_ptr< Evolution > )
virtual

set the axial force evolution

Parameters
[in]f: axial force evolution

◆ setAxialGrowthEvolution()

virtual void mtest::PipeTest::setAxialGrowthEvolution ( std::shared_ptr< Evolution > )
virtual

set the axial growth evolution

Parameters
[in]f: axial growth evolution

◆ setAxialLoading()

virtual void mtest::PipeTest::setAxialLoading ( const AxialLoading )
virtual

set the pipe axial loading

Parameters
[in]alaxial loading

◆ setDefaultModellingHypothesis()

void mtest::PipeTest::setDefaultModellingHypothesis ( )
overridevirtual

set the modelling hypothesis to the default one

Implements mtest::Study.

◆ setDisplacementEpsilon()

virtual void mtest::PipeTest::setDisplacementEpsilon ( const real )
virtual

set displacement criterion value

Parameters
[in]ecriterion value

◆ setElementType()

virtual void mtest::PipeTest::setElementType ( const PipeMesh::ElementType )
virtual

set the element type

Parameters
[in]eelement type

◆ setFailurePolicy()

void mtest::PipeTest::setFailurePolicy ( const FailurePolicy )

change the way a failure is treated

Parameters
[in]pfailure policy

◆ setFillingPressure()

virtual void mtest::PipeTest::setFillingPressure ( const real )
virtual

set the filling pressure evolution

Parameters
[in]p: filling pressure evolution

◆ setFillingTemperature()

virtual void mtest::PipeTest::setFillingTemperature ( const real )
virtual

set the filling temperature evolution

Parameters
[in]p: filling temperature evolution

◆ setGasEquationOfState()

virtual void mtest::PipeTest::setGasEquationOfState ( const std::string & )
virtual

set the gas equation of state

Parameters
[in]eequation of state

◆ setInnerPressureEvolution()

virtual void mtest::PipeTest::setInnerPressureEvolution ( std::shared_ptr< Evolution > )
virtual

set the inner pressure evolution

Parameters
[in]p: pressure evolution

◆ setInnerRadius()

virtual void mtest::PipeTest::setInnerRadius ( const real )
virtual

set the pipe inner radius

Parameters
[in]rradius value

◆ setInnerRadiusEvolution()

virtual void mtest::PipeTest::setInnerRadiusEvolution ( std::shared_ptr< Evolution > )
virtual

set the inner radius evolution

Parameters
[in]p: radius evolution

◆ setMandrelAxialGrowthEvolution()

virtual void mtest::PipeTest::setMandrelAxialGrowthEvolution ( std::shared_ptr< Evolution > )
virtual

set the evolution of the axial growth of the mandrel

Parameters
[in]ag: evolution of the axial growth

◆ setMandrelRadiusEvolution()

virtual void mtest::PipeTest::setMandrelRadiusEvolution ( std::shared_ptr< Evolution > )
virtual

set the evolution of the radius of the mandrel

Parameters
[in]r: evolution of the mandrel' radius

◆ setModellingHypothesis()

void mtest::PipeTest::setModellingHypothesis ( const std::string & )
overridevirtual
Parameters
[in]h: modelling hypothesis

Implements mtest::Study.

◆ setNumberOfElements()

virtual void mtest::PipeTest::setNumberOfElements ( const int )
virtual

set the number of elements

Parameters
[in]nnumber of elements

◆ setOuterPressureEvolution()

virtual void mtest::PipeTest::setOuterPressureEvolution ( std::shared_ptr< Evolution > )
virtual

set the outer pressure evolution

Parameters
[in]p: pressure evolution

◆ setOuterRadius()

virtual void mtest::PipeTest::setOuterRadius ( const real )
virtual

set the pipe outer radius

Parameters
[in]rradius value

◆ setOuterRadiusEvolution()

virtual void mtest::PipeTest::setOuterRadiusEvolution ( std::shared_ptr< Evolution > )
virtual

set the outer radius evolution

Parameters
[in]p: radius evolution

◆ setRadialLoading()

virtual void mtest::PipeTest::setRadialLoading ( const RadialLoading )
virtual

set the radial loading type

Parameters
[in]tradial loading type

◆ setResidualEpsilon()

virtual void mtest::PipeTest::setResidualEpsilon ( const real )
virtual

set criterium value for the convergence test on the residual

Parameters
[in]e: criterion value

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