|
tfel
|
a base class for mtest files generation More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/MTestFileGeneratorBase.hxx>
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 | |
a base class for mtest files generation
|
virtual |
add the value of an external state variable
| [in] | n | external state variable name |
| [in] | f | variable type |
| [in] | t | initial time |
| [in] | v0 | initial values |
| [in] | t | final time |
| [in] | v1 | final values or the increment values |
| [in] | increment_provided | boolean stating if v1 holds the final values and the increment values |
|
virtual |
add internal state variable
| [in] | n | : internal state variable name |
| [in] | f | : variable type |
| [in] | v | : value |
|
virtual |
add a material property
| [in] | n | : material property name |
| [in] | v | : value |
add a computed time
| [in] | t | : time |
|
nodiscardprotectedvirtual |
|
static |
|
nodiscardprotectedvirtual |
| [in] | n | name of the symmetric tensor |
|
nodiscardvirtual |
|
nodiscardprotectedvirtual |
|
nodiscardprotectedvirtual |
|
nodiscardprotectedvirtual |
| [in] | n | name of the tensor |
|
nodiscardvirtual |
|
nodiscardprotectedvirtual |
| [in] | n | name of the vector |
|
nodiscardvirtual |
|
nodiscardvirtual |
|
virtual |
| [in] | b | : boolean |
|
virtual |
| [in] | h | : modelling hypothesis |
|
protectedpure virtual |
write behaviour declaration
| [in] | os | : output stream |
Implemented in mfront::GenericBehaviourFiniteStrainMTestFileGenerator, mfront::GenericBehaviourMTestFileGenerator, mfront::GenericBehaviourSmallStrainMTestFileGenerator, mfront::UmatFiniteStrainMTestFileGenerator, and mfront::UmatSmallStrainMTestFileGenerator.
|
protectedvirtual |
write external state variable
| [in] | os | : output stream |
|
protectedpure virtual |
write driving variables
| [in] | os | : output stream |
Implemented in mfront::GenericBehaviourFiniteStrainMTestFileGenerator, mfront::GenericBehaviourMTestFileGenerator, mfront::GenericBehaviourSmallStrainMTestFileGenerator, mfront::UmatFiniteStrainMTestFileGenerator, and mfront::UmatSmallStrainMTestFileGenerator.
|
protectedvirtual |
write material properties
| [in] | os | : output stream |
|
protectedvirtual |
write material properties
| [in] | os | : output stream |
|
protectedvirtual |
write modelling hypothesis
| [in] | os | : output stream |
|
protectedvirtual |
write rotation matrix
| [in] | os | : output stream |
|
protectedvirtual |
write times
| [in] | os | : output stream |
|
protected |
modelling hypothesis