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

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

Inheritance diagram for mfront::UMATInterfaceBase:
mfront::BehaviourInterfaceBase mfront::AbstractBehaviourInterface mfront::SupportedTypes mfront::AbaqusInterfaceBase mfront::AnsysInterface mfront::AsterInterface mfront::CalculiXInterface mfront::CastemInterface mfront::ComsolInterface mfront::CyranoInterface mfront::DianaFEAInterface mfront::LSDYNAInterface

Public Member Functions

 UMATInterfaceBase ()
 constructor
void exportMechanicalData (std::ostream &, const Hypothesis, const BehaviourDescription &) const override
void checkIfTemperatureIsDefinedAsTheFirstExternalStateVariable (const BehaviourDescription &) const
virtual void writeVariableInitializersInBehaviourDataConstructorI (std::ostream &, bool &, const VariableDescriptionContainer &, const std::string &, const std::string &, const std::string &) const
virtual void writeVariableInitializersInBehaviourDataConstructorI (std::ostream &, bool &, const VariableDescriptionContainer::const_iterator &, const VariableDescriptionContainer::const_iterator &, const std::string &, const std::string &, const std::string &) const
virtual void writeVariableInitializersInBehaviourDataConstructorII (std::ostream &, const BehaviourDescription &, const VariableDescriptionContainer &, const std::string &, const std::string &, const std::string &) const
virtual void writeVariableInitializersInBehaviourDataConstructorII (std::ostream &, const BehaviourDescription &, const VariableDescriptionContainer::const_iterator &, const VariableDescriptionContainer::const_iterator &, const std::string &, const std::string &, const std::string &) const
virtual void exportResults (std::ostream &, const BehaviourDescription &, const VariableDescriptionContainer &, const std::string &) const
virtual void writeResultsArrayResize (std::ostream &, const std::string &, const VariableDescriptionContainer &) const
virtual void writeResultsArrayResize (std::ostream &, const std::string &, const SupportedTypes::TypeSize &) const
virtual void exportThermodynamicForce (std::ostream &, const std::string &, const ThermodynamicForce &, const SupportedTypes::TypeSize) const
 write the instruction of exporting a thermodynamic force in an array
virtual std::vector< std::pair< std::string, std::string > > getBehaviourConstructorsAdditionalVariables () const
virtual std::vector< std::pair< std::string, std::string > > getBehaviourDataConstructorAdditionalVariables () const
virtual std::vector< std::pair< std::string, std::string > > getIntegrationDataConstructorAdditionalVariables () const
void writeBehaviourConstructorHeader (std::ostream &, const BehaviourDescription &, const Hypothesis, const std::string &) const override
 write the behaviour constructor header associated with the interface. This method allow the interface to add a new constructor containing specific arguments and the call specific constructors for the behaviour data and integration data, as build by the writeBehaviourDataConstructor and the writeIntegrationDataConstructor methods respectively. This body of this constructor will be populated by the writeBehaviourConstructorBody method.
void writeBehaviourConstructorBody (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 complete the body of the behaviour constructor associated with the interface.
void writeBehaviourDataConstructor (std::ostream &, const Hypothesis, const BehaviourDescription &) const override
virtual void completeBehaviourDataConstructor (std::ostream &, const Hypothesis, const BehaviourDescription &) const
 add interface specific lines at the end of the behaviour data constructor
void writeBehaviourDataMainVariablesSetters (std::ostream &, const BehaviourDescription &) const override
virtual void writeBehaviourDataGradientSetter (std::ostream &, const Gradient &, const SupportedTypes::TypeSize) const
 write the initialisation of a driving variables
virtual void writeBehaviourDataThermodynamicForceSetter (std::ostream &, const ThermodynamicForce &, const SupportedTypes::TypeSize) const
 write the initialisation of a thermodynamic force
void writeIntegrationDataConstructor (std::ostream &, const Hypothesis, const BehaviourDescription &) const override
void writeIntegrationDataMainVariablesSetters (std::ostream &, const BehaviourDescription &) const override
 write the setters associated with the main variables
virtual void writeIntegrationDataGradientSetter (std::ostream &, const Gradient &, const SupportedTypes::TypeSize) const
 write the initialisation of a driving variables
 ~UMATInterfaceBase () override
 destructor
Public Member Functions inherited from mfront::BehaviourInterfaceBase
 BehaviourInterfaceBase ()
 constructor
void setOptions (const DataMap &) override
 give options to the interface
std::string getInterfaceVersion () const override
bool isBehaviourConstructorRequired (const Hypothesis, const BehaviourDescription &) const override
std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > buildMaterialPropertiesList (const BehaviourDescription &, const Hypothesis) const override
void writeBehaviourInitializeFunctions (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 write the initialize functions
void writeBehaviourPostProcessings (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 write the post-processings
virtual std::string getFunctionNameBasis (const std::string &) const =0
virtual std::string getHeaderGuard (const BehaviourDescription &) const
virtual void writeVisibilityDefines (std::ostream &) const
 include the appropriate headers and write the definition of the MFRONT_SHAREDOBJ macro which is used to define the visibility of the generated functions.
virtual void writeSetOutOfBoundsPolicyFunctionDeclaration (std::ostream &, const std::string &) const
virtual void writeGetOutOfBoundsPolicyFunctionImplementation (std::ostream &, const BehaviourDescription &, const std::string &) const
virtual void writeSetOutOfBoundsPolicyFunctionImplementation (std::ostream &, const BehaviourDescription &, const std::string &) const
virtual void writeSetParametersFunctionsDeclarations (std::ostream &, const BehaviourDescription &, const std::string &) const
virtual void writeSetParametersFunctionsImplementations (std::ostream &, const BehaviourDescription &, const std::string &) const
 generate the implementations of the functions allowing to modify the parameters of a behaviour.
virtual void setGenerateMTestFileOnFailureAttribute (BehaviourDescription &, const bool) const
 set an attribute stating that a MTest file shall be generated on integration failure.
virtual bool shallGenerateMTestFileOnFailure (const BehaviourDescription &) const
virtual std::pair< bool, SupportedTypes::TypeSize > checkIfAxialStrainIsDefinedAndGetItsOffset (const BehaviourDescription &, const Hypothesis) const
virtual std::pair< bool, SupportedTypes::TypeSize > checkIfAxialDeformationGradientIsDefinedAndGetItsOffset (const BehaviourDescription &, const Hypothesis) const
virtual bool readBooleanValue (const std::string &, tokens_iterator &, const tokens_iterator) const
 extract a boolean value from the current token
 ~BehaviourInterfaceBase () override
 destructor
Public Member Functions inherited from mfront::AbstractBehaviourInterface
virtual std::string getInterfaceName () const =0
 the name of the interface is mostly used internally to build
virtual std::pair< bool, tokens_iterator > treatKeyword (BehaviourDescription &, const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator)=0
 treat a keyword
virtual std::set< Hypothesis > getModellingHypothesesToBeTreated (const BehaviourDescription &) const =0
virtual void writeInterfaceSpecificIncludes (std::ostream &, const BehaviourDescription &) const =0
virtual void endTreatment (const BehaviourDescription &, const FileDescription &) const =0
 write output files
virtual void getTargetsDescription (TargetsDescription &, const BehaviourDescription &)=0
virtual ~AbstractBehaviourInterface ()
 destructor
Public Member Functions inherited from mfront::SupportedTypes
 SupportedTypes ()
 default constructor
 SupportedTypes (SupportedTypes &&)=default
 move constructor
 SupportedTypes (const SupportedTypes &)=default
 copy constructor
SupportedTypes & operator= (SupportedTypes &&)=default
 move assignement
SupportedTypes & operator= (const SupportedTypes &)=default
 copy assignement
virtual ~SupportedTypes ()
 desctructor

Protected Member Functions

virtual std::string getLibraryName (const BehaviourDescription &) const =0
virtual void writeMaterialPropertiesInitializersInBehaviourDataConstructorI (std::ostream &, bool &first, const Hypothesis, const BehaviourDescription &, const std::vector< BehaviourMaterialProperty > &, const SupportedTypes::TypeSize, const std::string &, const std::string &, const std::string &) const
virtual void writeMaterialPropertiesInitializersInBehaviourDataConstructorII (std::ostream &, const Hypothesis, const BehaviourDescription &, const std::vector< BehaviourMaterialProperty > &, const SupportedTypes::TypeSize, const std::string &, const std::string &, const std::string &) const
virtual void getExtraSrcIncludes (std::ostream &, const BehaviourDescription &) const
virtual void generateMTestFile1 (std::ostream &, const BehaviourDescription &) const
 write the first part of the code used to generate a MTest file
virtual void generateMTestFile2 (std::ostream &, const BehaviourDescription &, const BehaviourDescription::BehaviourType, const std::string &, const std::string &) const
 write the second part of the code used to generate a MTest file. This method shall be called when only one function is generated for all modelling hypotheses. This methods calls the gatherModellingHypothesesAndTests to make an appropriate dispatch among hypotheses. For each hypothesis, the generateMTestFileForHypothesis is called.
virtual void generateMTestFileForHypothesis (std::ostream &, const BehaviourDescription &, const BehaviourDescription::BehaviourType, const std::string &, const std::string &, const Hypothesis) const
 write the code used to generate a MTest file for a given hypotesis
virtual void writeMTestFileGeneratorSetRotationMatrix (std::ostream &, const BehaviourDescription &) const
virtual void writeMTestFileGeneratorSetStrainAndStressTensors (std::ostream &, const Hypothesis) const
 write the code giving the strain at the beginning of the time step, the strain increment and the stress at the beginning of the time step of a strain based behaviour to the generator of MTest files. The generator expects the components in the order of the symmetric tensors of TFEL. The default implementation gives the arrays STRAN, DSTRAN and mg_STRESS unchanged.
virtual void writeMTestFileGeneratorSetModellingHypothesis (std::ostream &) const =0
virtual std::map< Hypothesis, std::string > gatherModellingHypothesesAndTests (const BehaviourDescription &) const
 When the interface only provide one entry point (i.e. does not provide an entry point by modelling hypothesis), the generation of MTest files, provided by the generateMTestFile2 method, must have access to tests to distinguish modelling hypotheses.
virtual std::string getModellingHypothesisTest (const Hypothesis) const
virtual bool areExternalStateVariablesSupported () const
virtual bool isTemperatureIncrementSupported () const

Additional Inherited Members

Public Types inherited from mfront::BehaviourInterfaceBase
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
Public Types inherited from mfront::AbstractBehaviourInterface
typedef tfel::material::ModellingHypothesis ModellingHypothesis
 a simple alias
typedef ModellingHypothesis::Hypothesis Hypothesis
 a simple alias
using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using tokens_iterator = CxxTokenizer::TokensContainer::const_iterator
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias
Public Types inherited from mfront::SupportedTypes
enum  TypeFlag { SCALAR , TVECTOR , STENSOR , TENSOR }
 flag associaed with a variable type
using const_iterator = tfel::utilities::CxxTokenizer::const_iterator
 a simple alias
Static Public Member Functions inherited from mfront::SupportedTypes
static const std::map< std::string, TypeFlag, std::less<> > & getTypeFlags ()
static bool isSupportedConstexprIntegerVariables (const std::string_view)
static std::string extractType (const_iterator &, const const_iterator &, const TypeParsingOptions &=TypeParsingOptions())
static std::string extractType (const std::string_view, const TypeParsingOptions &=TypeParsingOptions())
static bool hasTypeFlag (const std::string_view)
static bool isScalarType (const std::string_view)
static TypeFlag getTypeFlag (const std::string_view)
static int getTypeIdentifier (const std::string_view)
static TypeSize getTypeSize (const std::string_view, const unsigned short=1)
static std::string getTimeDerivativeType (const std::string_view)
Static Public Attributes inherited from mfront::BehaviourInterfaceBase
static const char *const generateMTestFileAttribute
 attribute used to store if an MTest file shall be generated
Static Public Attributes inherited from mfront::SupportedTypes
static constexpr int ArraySizeLimit = 10u
 limit for small array support

Detailed Description

This class provides some helper function for behaviours interfaces based on the UMAT standard or its derivative:

  • Abaqus/Standard
  • Abaqus/Explicit
  • Code_Aster
  • CalculiX
  • Cyrano
  • etc..

Member Function Documentation

◆ areExternalStateVariablesSupported()

virtual bool mfront::UMATInterfaceBase::areExternalStateVariablesSupported ( ) const
nodiscardprotectedvirtual
Returns
true if the interface handles external state variables

Reimplemented in mfront::AnsysInterface, mfront::CalculiXInterface, mfront::ComsolInterface, and mfront::DianaFEAInterface.

◆ checkIfTemperatureIsDefinedAsTheFirstExternalStateVariable()

void mfront::UMATInterfaceBase::checkIfTemperatureIsDefinedAsTheFirstExternalStateVariable ( const BehaviourDescription & ) const

This method check of the temperature is defined as the first external state variable. If this is not the case, an exception is thrown.

Note
The temperature must be defined as the first external state variable in many interfaces.
Parameters
[in]bdbehaviour description

◆ completeBehaviourDataConstructor()

virtual void mfront::UMATInterfaceBase::completeBehaviourDataConstructor ( std::ostream & ,
const Hypothesis ,
const BehaviourDescription &  ) const
virtual

add interface specific lines at the end of the behaviour data constructor

Parameters
[in]behaviourFile: output file
[in]h: modelling hypothesis
[in]mb: behaviour description

Reimplemented in mfront::AbaqusInterface, and mfront::AnsysInterface.

◆ exportMechanicalData()

void mfront::UMATInterfaceBase::exportMechanicalData ( std::ostream & ,
const Hypothesis ,
const BehaviourDescription &  ) const
overridevirtual

◆ exportResults()

virtual void mfront::UMATInterfaceBase::exportResults ( std::ostream & ,
const BehaviourDescription & ,
const VariableDescriptionContainer & ,
const std::string &  ) const
virtual
Parameters
[out]f: output file
[in]mb: behaviour description
[in]v: variables to be initialized
[in]src: name of the array to which the variables are exported

◆ exportThermodynamicForce()

virtual void mfront::UMATInterfaceBase::exportThermodynamicForce ( std::ostream & ,
const std::string & ,
const ThermodynamicForce & ,
const SupportedTypes::TypeSize  ) const
virtual

write the instruction of exporting a thermodynamic force in an array

Parameters
[out]out: output stream
[in]a: array name
[in]f: thermodynamic force
[in]o: thermodynamic force offset

Reimplemented in mfront::AbaqusInterface, mfront::AnsysInterface, mfront::CalculiXInterface, and mfront::DianaFEAInterface.

◆ gatherModellingHypothesesAndTests()

virtual std::map< Hypothesis, std::string > mfront::UMATInterfaceBase::gatherModellingHypothesesAndTests ( const BehaviourDescription & ) const
nodiscardprotectedvirtual

When the interface only provide one entry point (i.e. does not provide an entry point by modelling hypothesis), the generation of MTest files, provided by the generateMTestFile2 method, must have access to tests to distinguish modelling hypotheses.

Returns
a map associating each distinct modelling hypothesis to appropriate tests. This method is called internally by generateMTestFile2 method.
Parameters
[in]mb: behaviour description

Reimplemented in mfront::AsterInterface, mfront::CalculiXInterface, mfront::CastemInterface, and mfront::DianaFEAInterface.

◆ generateMTestFile1()

virtual void mfront::UMATInterfaceBase::generateMTestFile1 ( std::ostream & ,
const BehaviourDescription &  ) const
protectedvirtual

write the first part of the code used to generate a MTest file

Parameters
[out]outoutput stream
[in]bdbehaviour description

◆ generateMTestFile2()

virtual void mfront::UMATInterfaceBase::generateMTestFile2 ( std::ostream & ,
const BehaviourDescription & ,
const BehaviourDescription::BehaviourType ,
const std::string & ,
const std::string &  ) const
protectedvirtual

write the second part of the code used to generate a MTest file. This method shall be called when only one function is generated for all modelling hypotheses. This methods calls the gatherModellingHypothesesAndTests to make an appropriate dispatch among hypotheses. For each hypothesis, the generateMTestFileForHypothesis is called.

Parameters
[out]outoutput stream
[out]bdbehaviour description

◆ generateMTestFileForHypothesis()

virtual void mfront::UMATInterfaceBase::generateMTestFileForHypothesis ( std::ostream & ,
const BehaviourDescription & ,
const BehaviourDescription::BehaviourType ,
const std::string & ,
const std::string & ,
const Hypothesis  ) const
protectedvirtual

write the code used to generate a MTest file for a given hypotesis

Parameters
[out]outoutput stream
[out]bdbehaviour description

◆ getBehaviourConstructorsAdditionalVariables()

virtual std::vector< std::pair< std::string, std::string > > mfront::UMATInterfaceBase::getBehaviourConstructorsAdditionalVariables ( ) const
nodiscardvirtual
Returns
the list of additional variables to be passed to the behaviour data and integration data constructors which are specific to the interface.

For each item in the list, the first element is the variable name and the second element is the variable description.

◆ getBehaviourDataConstructorAdditionalVariables()

virtual std::vector< std::pair< std::string, std::string > > mfront::UMATInterfaceBase::getBehaviourDataConstructorAdditionalVariables ( ) const
nodiscardvirtual
Returns
the list of additional variables to be passed to the behaviour data constructor which are specific to the interface.

For each item in the list, the first element is the variable name and the second element is the variable description.

Reimplemented in mfront::AbaqusInterface, and mfront::AnsysInterface.

◆ getIntegrationDataConstructorAdditionalVariables()

virtual std::vector< std::pair< std::string, std::string > > mfront::UMATInterfaceBase::getIntegrationDataConstructorAdditionalVariables ( ) const
nodiscardvirtual
Returns
the list of additional variables to be passed to the integration data constructor which are specific to the interface.

For each item in the list, the first element is the variable name and the second element is the variable description.

◆ getLibraryName()

virtual std::string mfront::UMATInterfaceBase::getLibraryName ( const BehaviourDescription & ) const
nodiscardprotectedpure virtual

◆ getModellingHypothesisTest()

virtual std::string mfront::UMATInterfaceBase::getModellingHypothesisTest ( const Hypothesis ) const
nodiscardprotectedvirtual
Returns
a test for the given modelling hypotesis This method is called by the gatherModellingHypothesesAndTests. As this method is only meaningfull for interfaces which only provide one entry point (i.e. does not provide an entry point by modelling hypothesis), the default implementation throws an exception.

Reimplemented in mfront::AsterInterface, mfront::CalculiXInterface, mfront::CastemInterface, mfront::CyranoInterface, mfront::DianaFEAInterface, and mfront::LSDYNAInterface.

◆ isTemperatureIncrementSupported()

virtual bool mfront::UMATInterfaceBase::isTemperatureIncrementSupported ( ) const
nodiscardprotectedvirtual
Returns
true if the interface handles temperature increment

Reimplemented in mfront::CalculiXInterface, mfront::ComsolInterface, and mfront::DianaFEAInterface.

◆ writeBehaviourConstructorBody()

void mfront::UMATInterfaceBase::writeBehaviourConstructorBody ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
overridevirtual

complete the body of the behaviour constructor associated with the interface.

Parameters
[in]osoutput file
[in]mbbehaviour description
[in]hmodelling hypothesis

Implements mfront::AbstractBehaviourInterface.

◆ writeBehaviourConstructorHeader()

void mfront::UMATInterfaceBase::writeBehaviourConstructorHeader ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis ,
const std::string &  ) const
overridevirtual

write the behaviour constructor header associated with the interface. This method allow the interface to add a new constructor containing specific arguments and the call specific constructors for the behaviour data and integration data, as build by the writeBehaviourDataConstructor and the writeIntegrationDataConstructor methods respectively. This body of this constructor will be populated by the writeBehaviourConstructorBody method.

Parameters
[in]behaviourFile: output file
[in]mb: behaviour description
[in]h: modelling hypothesis
[in]initStateVarsIncrements: constructor part assigning default value (zero) to state variable increments

Implements mfront::AbstractBehaviourInterface.

◆ writeBehaviourDataConstructor()

void mfront::UMATInterfaceBase::writeBehaviourDataConstructor ( std::ostream & ,
const Hypothesis ,
const BehaviourDescription &  ) const
overridevirtual

◆ writeBehaviourDataGradientSetter()

virtual void mfront::UMATInterfaceBase::writeBehaviourDataGradientSetter ( std::ostream & ,
const Gradient & ,
const SupportedTypes::TypeSize  ) const
virtual

write the initialisation of a driving variables

Parameters
[in]os: output file
[in]v: variable to be initialised
[in]o: variable offsert

Reimplemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::CalculiXInterface, mfront::DianaFEAInterface, and mfront::LSDYNAInterface.

◆ writeBehaviourDataMainVariablesSetters()

void mfront::UMATInterfaceBase::writeBehaviourDataMainVariablesSetters ( std::ostream & ,
const BehaviourDescription &  ) const
overridevirtual

write the behaviour constructor associated with the law

Parameters
[in]behaviourFile: output file
[in]mb: behaviour description

Implements mfront::AbstractBehaviourInterface.

◆ writeBehaviourDataThermodynamicForceSetter()

virtual void mfront::UMATInterfaceBase::writeBehaviourDataThermodynamicForceSetter ( std::ostream & ,
const ThermodynamicForce & ,
const SupportedTypes::TypeSize  ) const
virtual

write the initialisation of a thermodynamic force

Parameters
[in]os: output file
[in]v: variable to be initialised
[in]o: variable offsert

Reimplemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::CalculiXInterface, mfront::DianaFEAInterface, and mfront::LSDYNAInterface.

◆ writeIntegrationDataConstructor()

void mfront::UMATInterfaceBase::writeIntegrationDataConstructor ( std::ostream & ,
const Hypothesis ,
const BehaviourDescription &  ) const
overridevirtual

◆ writeIntegrationDataGradientSetter()

virtual void mfront::UMATInterfaceBase::writeIntegrationDataGradientSetter ( std::ostream & ,
const Gradient & ,
const SupportedTypes::TypeSize  ) const
virtual

write the initialisation of a driving variables

Parameters
[in]os: output file
[in]v: variable to be initialised
[in]o: variable offsert

Reimplemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::CalculiXInterface, mfront::DianaFEAInterface, and mfront::LSDYNAInterface.

◆ writeIntegrationDataMainVariablesSetters()

void mfront::UMATInterfaceBase::writeIntegrationDataMainVariablesSetters ( std::ostream & ,
const BehaviourDescription &  ) const
overridevirtual

write the setters associated with the main variables

Parameters
[in]behaviourFile: output file
[in]mb: behaviour description

Implements mfront::AbstractBehaviourInterface.

◆ writeMaterialPropertiesInitializersInBehaviourDataConstructorI()

virtual void mfront::UMATInterfaceBase::writeMaterialPropertiesInitializersInBehaviourDataConstructorI ( std::ostream & ,
bool & first,
const Hypothesis ,
const BehaviourDescription & ,
const std::vector< BehaviourMaterialProperty > & ,
const SupportedTypes::TypeSize ,
const std::string & ,
const std::string & ,
const std::string &  ) const
protectedvirtual
Parameters
[out]f: output file
[out]first: boolean stating if the an initializer has already been declared
[in]h: modelling hypothesis
[in]mb: behaviour description
[in]v: variables to be initialized
[in]iv: indirection vector
[in]o: offset in the indirection vector
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names

◆ writeMaterialPropertiesInitializersInBehaviourDataConstructorII()

virtual void mfront::UMATInterfaceBase::writeMaterialPropertiesInitializersInBehaviourDataConstructorII ( std::ostream & ,
const Hypothesis ,
const BehaviourDescription & ,
const std::vector< BehaviourMaterialProperty > & ,
const SupportedTypes::TypeSize ,
const std::string & ,
const std::string & ,
const std::string &  ) const
protectedvirtual
Parameters
[out]f: output file
[in]h: modelling hypothesis
[in]mb: behaviour description
[in]v: variables to be initialized
[in]iv: indirection vector
[in]o: offset in the indirection vector
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names

◆ writeMTestFileGeneratorSetModellingHypothesis()

virtual void mfront::UMATInterfaceBase::writeMTestFileGeneratorSetModellingHypothesis ( std::ostream & ) const
protectedpure virtual

◆ writeMTestFileGeneratorSetStrainAndStressTensors()

virtual void mfront::UMATInterfaceBase::writeMTestFileGeneratorSetStrainAndStressTensors ( std::ostream & ,
const Hypothesis  ) const
protectedvirtual

write the code giving the strain at the beginning of the time step, the strain increment and the stress at the beginning of the time step of a strain based behaviour to the generator of MTest files. The generator expects the components in the order of the symmetric tensors of TFEL. The default implementation gives the arrays STRAN, DSTRAN and mg_STRESS unchanged.

Parameters
[in]out: output file
[in]h: modelling hypothesis

Reimplemented in mfront::AbaqusInterface, and mfront::AnsysInterface.

◆ writeVariableInitializersInBehaviourDataConstructorI() [1/2]

virtual void mfront::UMATInterfaceBase::writeVariableInitializersInBehaviourDataConstructorI ( std::ostream & ,
bool & ,
const VariableDescriptionContainer & ,
const std::string & ,
const std::string & ,
const std::string &  ) const
virtual
Parameters
[out]f: output file
[out]first: true if not initializer has been declared yet
[in]v: variables to be initialized
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names
[in]o: offset in the array from which the variables are initialized

◆ writeVariableInitializersInBehaviourDataConstructorI() [2/2]

virtual void mfront::UMATInterfaceBase::writeVariableInitializersInBehaviourDataConstructorI ( std::ostream & ,
bool & ,
const VariableDescriptionContainer::const_iterator & ,
const VariableDescriptionContainer::const_iterator & ,
const std::string & ,
const std::string & ,
const std::string &  ) const
virtual
Parameters
[out]f: output file
[out]first: true if not initializer has been declared yet
[in]b: iterator to the first variable to be initialized
[in]e: iterator past the last variable to be initialized
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names
[in]o: offset in the array from which the variables are initialized

◆ writeVariableInitializersInBehaviourDataConstructorII() [1/2]

virtual void mfront::UMATInterfaceBase::writeVariableInitializersInBehaviourDataConstructorII ( std::ostream & ,
const BehaviourDescription & ,
const VariableDescriptionContainer & ,
const std::string & ,
const std::string & ,
const std::string &  ) const
virtual
Parameters
[out]f: output file
[in]mb: behaviour description
[in]v: variables to be initialized
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names
[in]o: offset in the array from which the variables are initialized

◆ writeVariableInitializersInBehaviourDataConstructorII() [2/2]

virtual void mfront::UMATInterfaceBase::writeVariableInitializersInBehaviourDataConstructorII ( std::ostream & ,
const BehaviourDescription & ,
const VariableDescriptionContainer::const_iterator & ,
const VariableDescriptionContainer::const_iterator & ,
const std::string & ,
const std::string & ,
const std::string &  ) const
virtual
Parameters
[out]f: output file
[in]mb: behaviour description
[in]b: iterator to the first variable to be initialized
[in]e: iterator past the last variable to be initialized
[in]src: name of the array from which the variables are initialized
[in]prefix: prefix added to variable's names
[in]suffix: suffix added to variable's names
[in]o: offset in the array from which the variables are initialized

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