tfel
Loading...
Searching...
No Matches
mfront::GenericBehaviourMTestFileGenerator Struct Referencefinal
Inheritance diagram for mfront::GenericBehaviourMTestFileGenerator:
mfront::MTestFileGeneratorBase

Classes

struct  BehaviourVariablesDescription
 a small helper structure describing the gradients and thermodynamic forces of the behaviour More...

Public Member Functions

 GenericBehaviourMTestFileGenerator (const BehaviourVariablesDescription &, const char *const, const char *const)
 constructor
virtual void setGradientsAtTheBeginningOfTheTimeStep (const double *const)
 set the gradients at the beginning of the time step
virtual void setGradientsAtTheEndOfTheTimeStep (const double *const)
 set the gradients at the end of the time step
virtual void setThermodynamicForcesAtTheBeginningOfTheTimeStep (const double *const)
 set thermodynamic forces
 ~GenericBehaviourMTestFileGenerator () override
 destructor
Public Member Functions inherited from mfront::MTestFileGeneratorBase
 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

Protected Member Functions

void writeBehaviourDeclaration (std::ostream &) const override
void writeGradients (std::ostream &) const override
Protected Member Functions inherited from mfront::MTestFileGeneratorBase
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 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

Protected Attributes

const BehaviourVariablesDescription & d
 description of the gradients and thermodynamic forces of the behaviour
const char *const library
 library name
const char *const behaviour
 behaviour name
const double * gradients_bts
 gradients at the beginning of the time step
const double * gradients_ets
 gradients at the end of the time step
const double * th_forces_bts
 thermodynamic forces at the beginning of the time step
Protected Attributes inherited from mfront::MTestFileGeneratorBase
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

Additional Inherited Members

Public Types inherited from mfront::MTestFileGeneratorBase
using Hypothesis = tfel::material::ModellingHypothesis::Hypothesis
 a simple alias
using real = double
 a simple alias
Static Public Member Functions inherited from mfront::MTestFileGeneratorBase
static unsigned int getIdentifier ()

Constructor & Destructor Documentation

◆ GenericBehaviourMTestFileGenerator()

mfront::GenericBehaviourMTestFileGenerator::GenericBehaviourMTestFileGenerator ( const BehaviourVariablesDescription & ,
const char * const ,
const char * const  )

constructor

Parameters
[in]bvddescription of the gradients and thermodynamic forces of the behaviour
[in]llibrary
[in]bbehaviour

Member Function Documentation

◆ setGradientsAtTheBeginningOfTheTimeStep()

virtual void mfront::GenericBehaviourMTestFileGenerator::setGradientsAtTheBeginningOfTheTimeStep ( const double * const )
virtual

set the gradients at the beginning of the time step

Parameters
[in]g: gradient

◆ setGradientsAtTheEndOfTheTimeStep()

virtual void mfront::GenericBehaviourMTestFileGenerator::setGradientsAtTheEndOfTheTimeStep ( const double * const )
virtual

set the gradients at the end of the time step

Parameters
[in]g: gradient

◆ setThermodynamicForcesAtTheBeginningOfTheTimeStep()

virtual void mfront::GenericBehaviourMTestFileGenerator::setThermodynamicForcesAtTheBeginningOfTheTimeStep ( const double * const )
virtual

set thermodynamic forces

Parameters
[in]thfsthermodynamic forces

◆ writeBehaviourDeclaration()

void mfront::GenericBehaviourMTestFileGenerator::writeBehaviourDeclaration ( std::ostream & ) const
overrideprotectedvirtual

write behaviour declaration

Parameters
[in]os: output stream

Implements mfront::MTestFileGeneratorBase.

◆ writeGradients()

void mfront::GenericBehaviourMTestFileGenerator::writeGradients ( std::ostream & ) const
overrideprotectedvirtual

write driving variables

Parameters
[in]os: output stream

Implements mfront::MTestFileGeneratorBase.


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