tfel
Loading...
Searching...
No Matches
mtest Namespace Reference

This namespace contains material used to build the MTest tool. More...

Classes

struct  AbaqusExplicitBehaviour
struct  AbaqusFiniteStrainBehaviour
struct  AbaqusSmallStrainBehaviour
struct  AbaqusStandardBehaviour
struct  AccelerationAlgorithm
 abstract class for acceleration algorithm. More...
struct  AccelerationAlgorithmFactory
struct  Alternate2DeltaAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  AlternateDelta2AccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  AlternateSecantAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  AnalyticalTest
struct  AnsysFiniteStrainBehaviour
struct  AnsysNormaliseTangentOperator
 normalise the tangent operator returned by: ANSYS usermat behaviours More...
struct  AnsysSmallStrainBehaviour
struct  AnsysStandardBehaviour
 a class to handle mechanical beheaviours written using the ansys interface More...
struct  AsterCohesiveZoneModel
struct  AsterFiniteStrainBehaviour
struct  AsterLogarithmicStrainBehaviourWrapper
 behaviour wrapper used to handle behaviours using the logarithmic strain framework. The wrapped behaviour appears as a standard finite strain behaviour to MTest. More...
struct  AsterSmallStrainBehaviour
struct  AsterStandardBehaviour
struct  Behaviour
 a simple wrapper around mechanical behaviours More...
struct  BehaviourWorkSpace
struct  BehaviourWrapperBase
 a simple helper class to build wrapper around mechanical behaviours. More...
struct  CalculiXFiniteStrainBehaviour
struct  CalculiXSmallStrainBehaviour
struct  CalculiXStandardBehaviour
struct  CastemAccelerationAlgorithm
 This class implements the Cast3M acceleration algorithm. More...
struct  CastemCohesiveZoneModel
 a class to handle cohesive zone models written using the umat interface of the Cast3M finite element solver. More...
struct  CastemEvolution
 An evolution defined by a castem fonction. More...
struct  CastemFiniteStrainBehaviour
 A class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver. This class is based on the legacy version of the Cast3M interface. More...
struct  Castem21FiniteStrainBehaviour
 a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver for Cast3M versions greater than 2021 More...
struct  CastemFiniteStrainBehaviour2
 a class to handle finite strain mechanical beheaviours written using the castem interface based on the ETO/PK1 kinematic. This class is based on the legacy version of the Cast3M interface. More...
struct  Castem21FiniteStrainBehaviour2
 a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver based on the ETO/PK1 kinematic for Cast3M versions greater than 2021. More...
struct  CastemMaterialProperty
 material property based on the Cast3M interface More...
struct  CastemModel
 a class to handle cohesive zone models written using the umat interface of the Cast3M finite element solver. More...
struct  CastemSmallStrainBehaviour
 A class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver. This class is based on the legacy version of the Cast3M interface. More...
struct  Castem21SmallStrainBehaviour
 a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver for Cast3M versions greater than 2021. More...
struct  CastemStandardBehaviour
 a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver. More...
struct  CastemUmatFiniteStrainBehaviour
struct  CastemUmatSmallStrainBehaviour
struct  CastemUmatStandardBehaviour
struct  ConstraintOptions
 a structure containing constraint' options More...
struct  Constraint
 Abstract class for all the constraints imposed to a single mechanical point. More...
struct  ConstraintBase
 Base class for the constraints imposed to a single mechanical point which handles all the details about the active state and associated events. More...
struct  Crossed2DeltaAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  Crossed2DeltabisAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  CrossedDelta2AccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  CrossedSecantAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  CurrentState
 structure containing the state of the material. More...
struct  CyranoBehaviour
struct  CyranoEvolution
 an evolution defined by a cyrano material property More...
struct  CyranoMaterialProperty
 material property based on the Cyrano interface More...
struct  DianaFEASmallStrainBehaviour
 a class to handle mechanical beheaviours written using the DianaFEA interface More...
struct  Evolution
 base class for evolutions of external variables More...
struct  ConstantEvolution
struct  LPIEvolution
 a linear per interval evolution More...
struct  FAndersonAccelerationAlgorithm
 This class implements the Cast3M acceleration algorithm. More...
struct  FunctionEvolution
struct  GasEquationOfState
struct  GenericBehaviour
 A class to handle mechanical beheaviours written using the generic behaviour interface. More...
struct  GenericEvolution
 an evolution defined by a cyrano material property More...
struct  GenericMaterialProperty
 material property based on the generic interface More...
struct  GenericSolver
struct  ImposedGradient
struct  ImposedThermodynamicForce
 Impose the value of a thermodynamic force component. More...
struct  IronsTuckAccelerationAlgorithm
 This class implements the Irons-Tuck acceleration algorithm. More...
struct  LogarithmicStrain1DBehaviourWrapper
 a simple wrapper around a small strain behaviour which turns a small strain behaviour into a finite strain behaviour in the logarithmic strain framework using the ETO-PK1 kinematic assumption under the axisymmetrical generalised plane strain modelling hypothesis. More...
struct  MaterialProperty
 base class for material properties More...
struct  MaterialPropertyBase
 a base class for material properties. More...
struct  MistralBehaviour
struct  MTest
 MTest is a simple class to test mfront behaviours. More...
struct  TestDescription
 structure describing an MTest file to be exported More...
struct  MTestParser
 class used to parse MTest file. More...
struct  NonLinearConstraint
 Impose a contraint on the driving variables. More...
struct  OxidationStatusEvolution
 structure in charge of representing the evolution of the oxidation status. More...
struct  PipeCubicElement
 structure describing a cubic element for pipes More...
struct  PipeFailureCriteriaFactory
 factory associated with failure criteria More...
struct  PipeFailureCriterion
 abstract class for all failure criteria More...
struct  PipeLinearElement
 structure describing a linear element for pipes More...
struct  PipeMesh
 structure describing the pipe mesh More...
struct  PipeProfile
struct  PipeStressProfile
struct  PipeStrainProfile
struct  PipeInternalStateVariableProfile
struct  PipeProfileHandler
struct  PipeQuadraticElement
 structure describing a quadratic element for pipes More...
struct  PipeTest
 a study describing mechanical tests on pipes More...
struct  PipeTestParser
struct  ReferenceFileComparisonTest
 Test based on the comparison of the solution to a reference file. More...
struct  Scheme
 a scheme describe a specific kind of computation. More...
struct  SchemeBase
struct  SchemeParserBase
struct  SecantAccelerationAlgorithm
 This class implements the secant acceleration algorithm. More...
struct  SingleStructureScheme
 base class for schemes describing a single structure More...
struct  SingleStructureSchemeParser
struct  SmallStrainTridimensionalBehaviourWrapper
 a wrapper around a small strain tridimensional behaviour to restrict it to a given modelling hypothesis. More...
struct  Solver
struct  SolverOptions
struct  SolverWorkSpace
struct  StandardBehaviourDescription
 a class gathering all the relevant information about an Umat behaviour. More...
struct  StandardBehaviourBase
 A class to handle standard mechanical behaviours. More...
struct  SteffensenAccelerationAlgorithm
 This class implements the Steffensen acceleration algorithm. More...
struct  StructureCurrentState
 data structure containing the state of a mechanical structure. More...
struct  Study
 abstract class describing a physical system More...
struct  StudyCurrentState
 structure describing the current state of a study More...
struct  UAndersonAccelerationAlgorithm
 This class implements the Cast3M acceleration algorithm. More...
struct  UmatNormaliseTangentOperator
 normalise the tangent operator returned by: More...
struct  UserDefinedPostProcessing
 class handling a user defined postprocessing More...

Typedefs

using PackagingInfo
 an helper structure used to store information for the packaging step
using StudyParameter = tfel::utilities::GenType<bool, real, std::string>
using real = double
 a simple alias
using EvolutionPtr = std::shared_ptr<Evolution>
 a simple alias
using EvolutionManager = std::map<std::string, EvolutionPtr>
 a simple alias

Enumerations

enum struct  CastemInterfaceVersion { LEGACY_CASTEM_INTERFACE_VERSION , CASTEM_INTERFACE_VERSION_2021 }
 describe the version of the interface used More...
enum struct  StiffnessMatrixType {
  NOSTIFFNESS , ELASTIC , SECANTOPERATOR , TANGENTOPERATOR ,
  CONSISTENTTANGENTOPERATOR , ELASTICSTIFNESSFROMMATERIALPROPERTIES , UNSPECIFIEDSTIFFNESSMATRIXTYPE
}
 possible type of stiffness matrix More...
enum struct  StiffnessUpdatingPolicy { CONSTANTSTIFFNESS , CONSTANTSTIFFNESSBYPERIOD , UPDATEDSTIFFNESSMATRIX , UNSPECIFIEDSTIFFNESSUPDATINGPOLICY }
 possible algorithms used for global convergence to update the stiffness matrix More...
enum struct  PredictionPolicy {
  NOPREDICTION , LINEARPREDICTION , ELASTICPREDICTION , ELASTICPREDICTIONFROMMATERIALPROPERTIES ,
  SECANTOPERATORPREDICTION , TANGENTOPERATORPREDICTION , UNSPECIFIEDPREDICTIONPOLICY
}
 possible prediction policies

Functions

MTEST_VISIBILITY_EXPORT bool isBehaviourVariable (const Behaviour &, const std::string &)
MTEST_VISIBILITY_EXPORT std::function< real(const CurrentState &)> buildValueExtractor (const Behaviour &, const std::string &)
MTEST_VISIBILITY_EXPORT bool isScalarVariableType (const int)
MTEST_VISIBILITY_EXPORT size_t getVariableSize (const int, const Behaviour::Hypothesis)
MTEST_VISIBILITY_EXPORT size_t getVariablesSize (const std::vector< int > &, const Behaviour::Hypothesis)
MTEST_VISIBILITY_EXPORT std::vector< std::string > getVariableComponents (const Behaviour &, const std::string &, const int)
 return the components of a variable
MTEST_VISIBILITY_EXPORT void applyConstraintOptions (Constraint &, const ConstraintOptions &)
 apply options to the given constraint
MTEST_VISIBILITY_EXPORT void computeMaterialProperties (CurrentState &, const EvolutionManager &, const EvolutionManager &, const std::vector< std::string > &, const real, const real)
 compute the external state variables for the current time step
MTEST_VISIBILITY_EXPORT void computeExternalStateVariables (CurrentState &, const EvolutionManager &, const std::vector< std::string > &, const real, const real)
 compute the external state variables for the current time step
MTEST_VISIBILITY_EXPORT void computeThermalExpansion (CurrentState &, const EvolutionManager &, const real, const real)
 compute the thermal expansion (orthotropic case)
MTEST_VISIBILITY_EXPORT void computeThermalExpansion (CurrentState &, const EvolutionManager &, const real, const real, const unsigned short)
 compute the thermal expansion (orthotropic case)
MTEST_VISIBILITY_EXPORT void computeThermalExpansion (CurrentState &, const EvolutionManager &, const real, const real, const tfel::material::ModellingHypothesis::Hypothesis)
 compute the thermal expansion (orthotropic case)
MTEST_VISIBILITY_EXPORT void update (CurrentState &)
 update the state for the next time step
MTEST_VISIBILITY_EXPORT void revert (CurrentState &)
 revert the state to the beginning of the time step
MTEST_VISIBILITY_EXPORT void setInternalStateVariableValue (CurrentState &, const std::string &, const real)
 set the value of a scalar internal state variable
MTEST_VISIBILITY_EXPORT void setInternalStateVariableValue (CurrentState &, const std::string &, const std::vector< real > &)
 set the value of an internal state variable
MTEST_VISIBILITY_EXPORT void setInternalStateVariableValue (CurrentState &, const std::string &, const real, const int)
 set the value of a scalar internal state variable
MTEST_VISIBILITY_EXPORT void setInternalStateVariableValue (CurrentState &, const std::string &, const std::vector< real > &, const int)
 set the value of an internal state variable
MTEST_VISIBILITY_EXPORT std::shared_ptr< Evolution > make_evolution (const real)
 build a constant evolution from a real value
MTEST_VISIBILITY_EXPORT std::shared_ptr< Evolution > make_evolution (const std::map< real, real > &)
 build a linear per interval evolution from a map associating a time and a value.
MTEST_VISIBILITY_EXPORT std::shared_ptr< tfel::math::parser::ExternalFunctionManager > buildExternalFunctionManagerFromConstantEvolutions (const EvolutionManager &)
MTEST_VISIBILITY_EXPORT void checkIfDeclared (const std::vector< std::string > &, const EvolutionManager &, const std::string &)
 check if evolutions with given names have been declared
MTEST_VISIBILITY_EXPORT void checkIfDeclared (const std::vector< std::string > &, const EvolutionManager &, const EvolutionManager &, const std::string &)
 check if evolutions with given names have been declared
MTEST_VISIBILITY_EXPORT real getValue (MaterialProperty &, const std::map< std::string, real > &, const bool=false)
MTEST_VISIBILITY_EXPORT real getValue (MaterialProperty &, const std::vector< real > &)
MTEST_VISIBILITY_EXPORT real getValue (MaterialProperty &, const real)
MTEST_VISIBILITY_EXPORT real getValue (MaterialProperty &)
MTEST_VISIBILITY_EXPORT void loadMTestFileContent (TestDescription &, const std::string &)
 load the content of an MTest file.
MTEST_VISIBILITY_EXPORT void write (const TestDescription &, const std::string &)
 write an MTest test to a file.
MTEST_VISIBILITY_EXPORT void setRoundingMode (const std::string &)
 set the rounding mode to the specified mode
MTEST_VISIBILITY_EXPORT void setRoundingMode ()
 set the rounding mode according to currently selected rounding mode.
MTEST_VISIBILITY_EXPORT void initialize (SolverWorkSpace &, const SolverWorkSpace::size_type)
MTEST_VISIBILITY_EXPORT void update (StructureCurrentState &)
 update the state: values at the end of the time step becomes the values at the beginning of the next time step
MTEST_VISIBILITY_EXPORT void revert (StructureCurrentState &)
 revert the state: values at the end of the time step are set equal to the values at the beginning of the next time step
MTEST_VISIBILITY_EXPORT std::vector< double > eval (const tfel::utilities::TextData &, const EvolutionManager &, const std::string &)
 extract the values of the a TextData object using a specified formulae

Detailed Description

This namespace contains material used to build the MTest tool.

Typedef Documentation

◆ PackagingInfo

Initial value:
tfel::utilities::GenType<tfel::math::vector<real>,
runtime row-major matrices
Definition matrix.hxx:34

an helper structure used to store information for the packaging step

Enumeration Type Documentation

◆ CastemInterfaceVersion

enum struct mtest::CastemInterfaceVersion
strong

describe the version of the interface used

Enumerator
LEGACY_CASTEM_INTERFACE_VERSION 

version of the interface for versions prior to 2021

CASTEM_INTERFACE_VERSION_2021 

version of the interface for versions starting with 2021

◆ StiffnessMatrixType

enum struct mtest::StiffnessMatrixType
strong

possible type of stiffness matrix

Enumerator
NOSTIFFNESS 

list of possible matrix type

◆ StiffnessUpdatingPolicy

enum struct mtest::StiffnessUpdatingPolicy
strong

possible algorithms used for global convergence to update the stiffness matrix

Enumerator
CONSTANTSTIFFNESS 

the initial prediction matrix or the initial tangent coherent matrix or the initial secant matrix (normally equal to the elastic stiffness) is used for all iterations

CONSTANTSTIFFNESSBYPERIOD 

the prediction matrix or the first tangent coherent matrix or the first secant matrix is used for all iterations and updated and factorized at at periods

UPDATEDSTIFFNESSMATRIX 

the tangent coherent matrix or the secant matrix is computed and factorized at each iteration

UNSPECIFIEDSTIFFNESSUPDATINGPOLICY 

default value

Function Documentation

◆ applyConstraintOptions()

MTEST_VISIBILITY_EXPORT void mtest::applyConstraintOptions ( Constraint & ,
const ConstraintOptions &  )

apply options to the given constraint

Parameters
[in]cconstraints
[in]ooptions

◆ buildExternalFunctionManagerFromConstantEvolutions()

MTEST_VISIBILITY_EXPORT std::shared_ptr< tfel::math::parser::ExternalFunctionManager > mtest::buildExternalFunctionManagerFromConstantEvolutions ( const EvolutionManager & )
Returns
an external function manager from constant evolutions
Parameters
[in]evmevolution manager

◆ buildValueExtractor()

MTEST_VISIBILITY_EXPORT std::function< real(const CurrentState &)> mtest::buildValueExtractor ( const Behaviour & ,
const std::string &  )
Returns
an object able to extract a specific value from the current state
Parameters
[in]bbehaviour
[in]nvariable name

◆ computeExternalStateVariables()

MTEST_VISIBILITY_EXPORT void mtest::computeExternalStateVariables ( CurrentState & ,
const EvolutionManager & ,
const std::vector< std::string > & ,
const real ,
const real  )

compute the external state variables for the current time step

Parameters
[out]s: state
[in]evm: evolution manager
[in]esvnames: external state variables names
[in]t: time at the beginning of the time step
[in]dt: time increment

◆ computeMaterialProperties()

MTEST_VISIBILITY_EXPORT void mtest::computeMaterialProperties ( CurrentState & ,
const EvolutionManager & ,
const EvolutionManager & ,
const std::vector< std::string > & ,
const real ,
const real  )

compute the external state variables for the current time step

Parameters
[out]s: state
[in]evm: evolution manager
[in]dvm: default material properties value
[in]mpnames: material properties names
[in]t: time at the beginning of the time step
[in]dt: time increment

◆ computeThermalExpansion()

MTEST_VISIBILITY_EXPORT void mtest::computeThermalExpansion ( CurrentState & ,
const EvolutionManager & ,
const real ,
const real ,
const tfel::material::ModellingHypothesis::Hypothesis  )

compute the thermal expansion (orthotropic case)

In plane stress, the third thermal expansion coefficient is optional: if it is not defined, the out-of-plane thermal strain is null.

◆ eval()

MTEST_VISIBILITY_EXPORT std::vector< double > mtest::eval ( const tfel::utilities::TextData & ,
const EvolutionManager & ,
const std::string &  )

extract the values of the a TextData object using a specified formulae

Parameters
[in]ddata
[in]mevolution manager
[in]fformulae

◆ getValue() [1/4]

MTEST_VISIBILITY_EXPORT real mtest::getValue ( MaterialProperty & )
Returns
the value of a constant material property
Parameters
[in]mpmaterial property

◆ getValue() [2/4]

MTEST_VISIBILITY_EXPORT real mtest::getValue ( MaterialProperty & ,
const real  )
Returns
the value of a material property for the given argument
Parameters
[in]mpmaterial property
[in]vargument value

◆ getValue() [3/4]

MTEST_VISIBILITY_EXPORT real mtest::getValue ( MaterialProperty & ,
const std::map< std::string, real > & ,
const bool = false )
Returns
the value of a material property for the given arguments
Parameters
[in]mpmaterial property
[in]argsmapping between values and arguments
[in]ballow missing arguments

◆ getValue() [4/4]

MTEST_VISIBILITY_EXPORT real mtest::getValue ( MaterialProperty & ,
const std::vector< real > &  )
Returns
the value of a material property for the given arguments
Parameters
[in]mpmaterial property
[in]valuesargument values

◆ getVariableComponents()

MTEST_VISIBILITY_EXPORT std::vector< std::string > mtest::getVariableComponents ( const Behaviour & ,
const std::string & ,
const int  )

return the components of a variable

Parameters
[in]bbehaviour
[in]nname of the variable
[in]ttype of the variable

◆ getVariableSize()

MTEST_VISIBILITY_EXPORT size_t mtest::getVariableSize ( const int ,
const Behaviour::Hypothesis  )
Returns
the size of a variable
Parameters
[in]tvariable type
[in]hhypothesis

◆ getVariablesSize()

MTEST_VISIBILITY_EXPORT size_t mtest::getVariablesSize ( const std::vector< int > & ,
const Behaviour::Hypothesis  )
Returns
the size of an array of variables
Parameters
[in]typesvariable types
[in]hhypothesis

◆ initialize()

MTEST_VISIBILITY_EXPORT void mtest::initialize ( SolverWorkSpace & ,
const SolverWorkSpace::size_type  )
Parameters
[out]wk: workspace
[in]s: problem size

◆ isBehaviourVariable()

MTEST_VISIBILITY_EXPORT bool mtest::isBehaviourVariable ( const Behaviour & ,
const std::string &  )
Returns
true if the given variable is either:
  • a driving variable of the behaviour
  • a thermodynamic force the behaviour
  • an internal state variable
  • an external state variable
Parameters
[in]bbehaviour
[in]nvariable name

◆ isScalarVariableType()

MTEST_VISIBILITY_EXPORT bool mtest::isScalarVariableType ( const int )
Returns
if the kind type corresponds to a scalar
Parameters
[in]tvariable type

◆ loadMTestFileContent()

MTEST_VISIBILITY_EXPORT void mtest::loadMTestFileContent ( TestDescription & ,
const std::string &  )

load the content of an MTest file.

Parameters
[out]dMTest file description
[in]foutput file path

◆ make_evolution() [1/2]

MTEST_VISIBILITY_EXPORT std::shared_ptr< Evolution > mtest::make_evolution ( const real )

build a constant evolution from a real value

Parameters
[in]vvalue

◆ make_evolution() [2/2]

MTEST_VISIBILITY_EXPORT std::shared_ptr< Evolution > mtest::make_evolution ( const std::map< real, real > & )

build a linear per interval evolution from a map associating a time and a value.

Parameters
[in]vvalues

◆ revert() [1/2]

MTEST_VISIBILITY_EXPORT void mtest::revert ( CurrentState & )

revert the state to the beginning of the time step

Parameters
[out]sstate

◆ revert() [2/2]

MTEST_VISIBILITY_EXPORT void mtest::revert ( StructureCurrentState & )

revert the state: values at the end of the time step are set equal to the values at the beginning of the next time step

Parameters
[out]sstate

◆ setInternalStateVariableValue() [1/4]

MTEST_VISIBILITY_EXPORT void mtest::setInternalStateVariableValue ( CurrentState & ,
const std::string & ,
const real  )

set the value of a scalar internal state variable

Parameters
[out]sstate
[in]nvariable name
[in]vvalue This overwrites the values of the internal state variables:
  • at the beginning of the previous time step
  • at the beginning of the current time step
  • at the end of the current time step

◆ setInternalStateVariableValue() [2/4]

MTEST_VISIBILITY_EXPORT void mtest::setInternalStateVariableValue ( CurrentState & ,
const std::string & ,
const real ,
const int  )

set the value of a scalar internal state variable

Parameters
[out]sstate
[in]nvariable name
[in]vvalue
[in]ddepth The depth value has the following meaning:
  • -1 means that we are modifying the internal state variable value at the beginning of the previous time step
  • 0 means that we are modifying the internal state variable value at the beginning of the current time step
  • 1 means that we are modifying the internal state variable value at the end of the current time step

◆ setInternalStateVariableValue() [3/4]

MTEST_VISIBILITY_EXPORT void mtest::setInternalStateVariableValue ( CurrentState & ,
const std::string & ,
const std::vector< real > &  )

set the value of an internal state variable

Parameters
[out]sstate
[in]nvariable name
[in]vvalues This overwrites the values of the internal state variables:
  • at the beginning of the previous time step
  • at the beginning of the current time step
  • at the end of the current time step

◆ setInternalStateVariableValue() [4/4]

MTEST_VISIBILITY_EXPORT void mtest::setInternalStateVariableValue ( CurrentState & ,
const std::string & ,
const std::vector< real > & ,
const int  )

set the value of an internal state variable

Parameters
[out]sstate
[in]nvariable name
[in]vvalues
[in]ddepth The depth value has the following meaning:
  • -1 means that we are modifying the internal state variable value at the beginning of the previous time step
  • 0 means that we are modifying the internal state variable value at the beginning of the current time step
  • 1 means that we are modifying the internal state variable value at the end of the current time step

◆ setRoundingMode() [1/2]

MTEST_VISIBILITY_EXPORT void mtest::setRoundingMode ( )

set the rounding mode according to currently selected rounding mode.

This can be used the reset the rounding mode after calling an external function that may change the rounding, or to select a random rounding mode.

Parameters
[in]mrounding mode

◆ setRoundingMode() [2/2]

MTEST_VISIBILITY_EXPORT void mtest::setRoundingMode ( const std::string & )

set the rounding mode to the specified mode

Parameters
[in]mrounding mode

◆ update() [1/2]

MTEST_VISIBILITY_EXPORT void mtest::update ( CurrentState & )

update the state for the next time step

Parameters
[out]sstate

◆ update() [2/2]

MTEST_VISIBILITY_EXPORT void mtest::update ( StructureCurrentState & )

update the state: values at the end of the time step becomes the values at the beginning of the next time step

Parameters
[out]sstate

◆ write()

MTEST_VISIBILITY_EXPORT void mtest::write ( const TestDescription & ,
const std::string &  )

write an MTest test to a file.

The file format is deduced from the extension of the file.

Currently, only extensions associated with the madnex file format (https://github.com/thelfer/madnex) are supported if TFEL is compiled with support of this file format. Those extensions are: mdnx, madnex (deprecated) or edf (experimental data file, deprecated). Note that the behaviour member of the metadata must be specified for export in the madnex file format.

Parameters
[in]dMTest file description
[in]foutput file path