tfel
Loading...
Searching...
No Matches
mfront::MTestFileGeneratorBase Struct Referenceabstract

a base class for mtest files generation More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/MTestFileGeneratorBase.hxx>

Inheritance diagram for mfront::MTestFileGeneratorBase:
mfront::GenericBehaviourFiniteStrainMTestFileGenerator mfront::GenericBehaviourMTestFileGenerator mfront::GenericBehaviourSmallStrainMTestFileGenerator mfront::UmatFiniteStrainMTestFileGenerator mfront::UmatSmallStrainMTestFileGenerator

Classes

struct  InternalStateVariable
 structure representing an internal state variable More...
struct  ExternalStateVariable
 structure representing an internal state variable More...

Public Types

using Hypothesis = tfel::material::ModellingHypothesis::Hypothesis
 a simple alias
using real = double
 a simple alias

Public Member Functions

 MTestFileGeneratorBase ()
 default constructor
virtual void setModellingHypothesis (const Hypothesis)
virtual void addTime (const real)
 add a computed time
virtual void setHandleThermalExpansion (const bool)
virtual void setRotationMatrix (const real, const real, const real, const real, const real, const real, const real, const real, const real)
 set the rotation matrix
virtual void addMaterialProperty (const std::string &, const real)
 add a material property
virtual void addInternalStateVariable (const std::string &, const SupportedTypes::TypeFlag, const real *const)
 add internal state variable
virtual void addExternalStateVariable (const std::string &, const SupportedTypes::TypeFlag, const real, const real *const, const real, const real *const, const bool)
 add the value of an external state variable
virtual void generate (const std::string &) const
virtual unsigned short getVariableSize (const SupportedTypes::TypeFlag &) const
virtual unsigned short getTVectorSize () const
virtual unsigned short getStensorSize () const
virtual unsigned short getTensorSize () const
virtual ~MTestFileGeneratorBase ()
 destructor

Static Public Member Functions

static unsigned int getIdentifier ()

Protected Member Functions

virtual std::vector< std::string > getTVectorComponentsNames (const std::string &="") const
virtual std::vector< std::string > getStensorComponentsNames (const std::string &="") const
virtual std::vector< std::string > getTensorComponentsNames (const std::string &="") const
virtual std::vector< std::string > getStrainComponentsNames () const
virtual std::vector< std::string > getDeformationGradientComponentsNames () const
virtual std::vector< std::string > getStressComponentsNames () const
virtual void writeModellingHypothesis (std::ostream &) const
virtual void writeBehaviourDeclaration (std::ostream &) const =0
virtual void writeRotationMatrix (std::ostream &) const
virtual void writeMaterialProperties (std::ostream &) const
virtual void writeInternalStateVariables (std::ostream &) const
virtual void writeExternalStateVariables (std::ostream &) const
virtual void writeTimes (std::ostream &) const
virtual void writeGradients (std::ostream &) const =0

Protected Attributes

Hypothesis hypothesis
 modelling hypothesis
std::set< real > times
 real time step
std::map< std::string, real > mps
 values of the material properties
std::vector< InternalStateVariable > ivs
 internal state variable
std::vector< ExternalStateVariable > evs
 values of the external state variables
bool handleThermalExpansion = false
 if true handles thermal expansion
bool hasRotationMatrix = false
 flag true if the rotation matrix is defined
real m [9u]
 rotation matrix

Detailed Description

a base class for mtest files generation

See also
UMATSmallStrainMTestFileGenerator

Member Function Documentation

◆ addExternalStateVariable()

virtual void mfront::MTestFileGeneratorBase::addExternalStateVariable ( const std::string & ,
const SupportedTypes::TypeFlag ,
const real ,
const real * const ,
const real ,
const real * const ,
const bool  )
virtual

add the value of an external state variable

Parameters
[in]nexternal state variable name
[in]fvariable type
[in]tinitial time
[in]v0initial values
[in]tfinal time
[in]v1final values or the increment values
[in]increment_providedboolean stating if v1 holds the final values and the increment values

◆ addInternalStateVariable()

virtual void mfront::MTestFileGeneratorBase::addInternalStateVariable ( const std::string & ,
const SupportedTypes::TypeFlag ,
const real * const  )
virtual

add internal state variable

Parameters
[in]n: internal state variable name
[in]f: variable type
[in]v: value

◆ addMaterialProperty()

virtual void mfront::MTestFileGeneratorBase::addMaterialProperty ( const std::string & ,
const real  )
virtual

add a material property

Parameters
[in]n: material property name
[in]v: value

◆ addTime()

virtual void mfront::MTestFileGeneratorBase::addTime ( const real )
virtual

add a computed time

Parameters
[in]t: time

◆ getDeformationGradientComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getDeformationGradientComponentsNames ( ) const
nodiscardprotectedvirtual
Returns
the names of the components of the deformation gradient

◆ getIdentifier()

unsigned int mfront::MTestFileGeneratorBase::getIdentifier ( )
static
Returns
an uniq identifier

◆ getStensorComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getStensorComponentsNames ( const std::string & = "") const
nodiscardprotectedvirtual
Returns
the names of the components of a symmetric tensor
Parameters
[in]nname of the symmetric tensor

◆ getStensorSize()

virtual unsigned short mfront::MTestFileGeneratorBase::getStensorSize ( ) const
nodiscardvirtual
Returns
the size of an stensor

◆ getStrainComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getStrainComponentsNames ( ) const
nodiscardprotectedvirtual
Returns
the names of the components of the strain tensor

◆ getStressComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getStressComponentsNames ( ) const
nodiscardprotectedvirtual
Returns
the names of the components of the stress tensor

◆ getTensorComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getTensorComponentsNames ( const std::string & = "") const
nodiscardprotectedvirtual
Returns
the names of the components of a tensor
Parameters
[in]nname of the tensor

◆ getTensorSize()

virtual unsigned short mfront::MTestFileGeneratorBase::getTensorSize ( ) const
nodiscardvirtual
Returns
the size of an tensor

◆ getTVectorComponentsNames()

virtual std::vector< std::string > mfront::MTestFileGeneratorBase::getTVectorComponentsNames ( const std::string & = "") const
nodiscardprotectedvirtual
Returns
the names of the components of a vector
Parameters
[in]nname of the vector

◆ getTVectorSize()

virtual unsigned short mfront::MTestFileGeneratorBase::getTVectorSize ( ) const
nodiscardvirtual
Returns
the size of an tiny vector

◆ getVariableSize()

virtual unsigned short mfront::MTestFileGeneratorBase::getVariableSize ( const SupportedTypes::TypeFlag & ) const
nodiscardvirtual
Returns
the size of a variable

◆ setHandleThermalExpansion()

virtual void mfront::MTestFileGeneratorBase::setHandleThermalExpansion ( const bool )
virtual
Parameters
[in]b: boolean

◆ setModellingHypothesis()

virtual void mfront::MTestFileGeneratorBase::setModellingHypothesis ( const Hypothesis )
virtual
See also
the modelling hypothesis class
Parameters
[in]h: modelling hypothesis

◆ setRotationMatrix()

virtual void mfront::MTestFileGeneratorBase::setRotationMatrix ( const real ,
const real ,
const real ,
const real ,
const real ,
const real ,
const real ,
const real ,
const real  )
virtual

set the rotation matrix

Parameters
[in]m00: m(0,0)
[in]m01: m(0,1)
[in]m02: m(0,2)
[in]m10: m(1,0)
[in]m11: m(1,1)
[in]m12: m(1,2)
[in]m20: m(2,0)
[in]m21: m(2,1)
[in]m22: m(2,2)

◆ writeBehaviourDeclaration()

virtual void mfront::MTestFileGeneratorBase::writeBehaviourDeclaration ( std::ostream & ) const
protectedpure virtual

◆ writeExternalStateVariables()

virtual void mfront::MTestFileGeneratorBase::writeExternalStateVariables ( std::ostream & ) const
protectedvirtual

write external state variable

Parameters
[in]os: output stream

◆ writeGradients()

virtual void mfront::MTestFileGeneratorBase::writeGradients ( std::ostream & ) const
protectedpure virtual

◆ writeInternalStateVariables()

virtual void mfront::MTestFileGeneratorBase::writeInternalStateVariables ( std::ostream & ) const
protectedvirtual

write material properties

Parameters
[in]os: output stream

◆ writeMaterialProperties()

virtual void mfront::MTestFileGeneratorBase::writeMaterialProperties ( std::ostream & ) const
protectedvirtual

write material properties

Parameters
[in]os: output stream

◆ writeModellingHypothesis()

virtual void mfront::MTestFileGeneratorBase::writeModellingHypothesis ( std::ostream & ) const
protectedvirtual

write modelling hypothesis

Parameters
[in]os: output stream

◆ writeRotationMatrix()

virtual void mfront::MTestFileGeneratorBase::writeRotationMatrix ( std::ostream & ) const
protectedvirtual

write rotation matrix

Parameters
[in]os: output stream

◆ writeTimes()

virtual void mfront::MTestFileGeneratorBase::writeTimes ( std::ostream & ) const
protectedvirtual

write times

Parameters
[in]os: output stream

Member Data Documentation

◆ hypothesis

Hypothesis mfront::MTestFileGeneratorBase::hypothesis
protected
Initial value:
=
tfel::material::ModellingHypothesis::UNDEFINEDHYPOTHESIS

modelling hypothesis


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