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

abstract interface of all behaviour interfaces More...

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

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

Public Types

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 Member Functions

virtual std::string getInterfaceName () const =0
 the name of the interface is mostly used internally to build
virtual std::string getInterfaceVersion () const =0
virtual void setOptions (const DataMap &)=0
 give options to the interface
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 bool isBehaviourConstructorRequired (const Hypothesis, const BehaviourDescription &) const =0
virtual std::set< Hypothesis > getModellingHypothesesToBeTreated (const BehaviourDescription &) const =0
virtual std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > buildMaterialPropertiesList (const BehaviourDescription &, const Hypothesis) const =0
virtual void writeInterfaceSpecificIncludes (std::ostream &, const BehaviourDescription &) const =0
virtual void exportMechanicalData (std::ostream &, const Hypothesis, const BehaviourDescription &) const =0
virtual void writeBehaviourConstructorHeader (std::ostream &, const BehaviourDescription &, const Hypothesis, const std::string &) const =0
 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.
virtual void writeBehaviourConstructorBody (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 complete the body of the behaviour constructor associated with the interface.
virtual void writeBehaviourDataConstructor (std::ostream &, const Hypothesis, const BehaviourDescription &) const =0
virtual void writeBehaviourDataMainVariablesSetters (std::ostream &, const BehaviourDescription &) const =0
virtual void writeIntegrationDataConstructor (std::ostream &, const Hypothesis, const BehaviourDescription &) const =0
virtual void writeIntegrationDataMainVariablesSetters (std::ostream &, const BehaviourDescription &) const =0
 write the setters associated with the main variables
virtual void writeBehaviourInitializeFunctions (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 write the initialize functions
virtual void writeBehaviourPostProcessings (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 write the post-processings
virtual void endTreatment (const BehaviourDescription &, const FileDescription &) const =0
 write output files
virtual void getTargetsDescription (TargetsDescription &, const BehaviourDescription &)=0
virtual ~AbstractBehaviourInterface ()
 destructor

Detailed Description

abstract interface of all behaviour interfaces

Member Function Documentation

◆ buildMaterialPropertiesList()

virtual std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::AbstractBehaviourInterface::buildMaterialPropertiesList ( const BehaviourDescription & ,
const Hypothesis  ) const
nodiscardpure virtual
Returns
a pair which first member gives the position of the material properties in the values given through the interface and which second member is an offset giving the number of imposed material properties.
Parameters
[in]mbbehaviour description
[in]hmodelling hypothesis

Implemented in mfront::BehaviourInterfaceBase, mfront::CastemInterface, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ endTreatment()

◆ getInterfaceName()

virtual std::string mfront::AbstractBehaviourInterface::getInterfaceName ( ) const
nodiscardpure virtual

the name of the interface is mostly used internally to build

  • the name of the variable passed to the constructors.
  • the headers guards.
  • etc...
    Returns
    the name of the interface

Implemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::AsterInterface, mfront::CalculiXInterface, mfront::CastemInterface, mfront::ComsolInterface, mfront::CyranoInterface, mfront::DianaFEAInterface, mfront::GenericBehaviourInterface, mfront::LSDYNAInterface, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ getInterfaceVersion()

virtual std::string mfront::AbstractBehaviourInterface::getInterfaceVersion ( ) const
nodiscardpure virtual

◆ getModellingHypothesesToBeTreated()

virtual std::set< Hypothesis > mfront::AbstractBehaviourInterface::getModellingHypothesesToBeTreated ( const BehaviourDescription & ) const
nodiscardpure virtual

◆ getTargetsDescription()

◆ isBehaviourConstructorRequired()

virtual bool mfront::AbstractBehaviourInterface::isBehaviourConstructorRequired ( const Hypothesis ,
const BehaviourDescription &  ) const
nodiscardpure virtual
Returns
true if the interface will create constructors in the behaviour class.
Parameters
[in]h: modelling hypothesis
[in]mb: behaviour description

Implemented in mfront::BehaviourInterfaceBase, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ setOptions()

virtual void mfront::AbstractBehaviourInterface::setOptions ( const DataMap & )
pure virtual

give options to the interface

Those options may have been read from a configuration file or from the command line

Parameters
[in]optsoptions

Implemented in mfront::BehaviourInterfaceBase, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ treatKeyword()

virtual std::pair< bool, tokens_iterator > mfront::AbstractBehaviourInterface::treatKeyword ( BehaviourDescription & ,
const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
nodiscardpure virtual

treat a keyword

Parameters
[in,out]bdbehaviour description
[in]keykeyword to be treated
[in]ilist of interfaces to which the keyword is restricted
[in]pcurrent position in the file
[in]peiterator past the end of the file
Returns
a pair. The first entry is true if the keyword was treated by the interface. The second entry is an iterator after the last token treated.

Implemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::AsterInterface, mfront::CalculiXInterface, mfront::CastemInterface, mfront::ComsolInterface, mfront::CyranoInterface, mfront::DianaFEAInterface, mfront::GenericBehaviourInterface, mfront::LSDYNAInterface, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ writeBehaviourConstructorBody()

virtual void mfront::AbstractBehaviourInterface::writeBehaviourConstructorBody ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

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

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

Implemented in mfront::GenericBehaviourInterface, mfront::MFrontBehaviourInterface, mfront::UMATInterfaceBase, and mfront::ZMATInterface.

◆ writeBehaviourConstructorHeader()

virtual void mfront::AbstractBehaviourInterface::writeBehaviourConstructorHeader ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis ,
const std::string &  ) const
pure virtual

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

Implemented in mfront::AbaqusExplicitInterface, mfront::GenericBehaviourInterface, mfront::LSDYNAInterface, mfront::MFrontBehaviourInterface, mfront::UMATInterfaceBase, and mfront::ZMATInterface.

◆ writeBehaviourDataMainVariablesSetters()

virtual void mfront::AbstractBehaviourInterface::writeBehaviourDataMainVariablesSetters ( std::ostream & ,
const BehaviourDescription &  ) const
pure virtual

write the behaviour constructor associated with the law

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

Implemented in mfront::AbaqusExplicitInterface, mfront::AbaqusInterface, mfront::AnsysInterface, mfront::GenericBehaviourInterface, mfront::LSDYNAInterface, mfront::MFrontBehaviourInterface, mfront::UMATInterfaceBase, and mfront::ZMATInterface.

◆ writeBehaviourInitializeFunctions()

virtual void mfront::AbstractBehaviourInterface::writeBehaviourInitializeFunctions ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

write the initialize functions

Parameters
[in]osoutput stream
[in]bdbehaviour description
[in]hmodelling hypothesis

Implemented in mfront::BehaviourInterfaceBase, mfront::GenericBehaviourInterface, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ writeBehaviourPostProcessings()

virtual void mfront::AbstractBehaviourInterface::writeBehaviourPostProcessings ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

write the post-processings

Parameters
[in]osoutput stream
[in]bdbehaviour description
[in]hmodelling hypothesis

Implemented in mfront::BehaviourInterfaceBase, mfront::GenericBehaviourInterface, mfront::MFrontBehaviourInterface, and mfront::ZMATInterface.

◆ writeIntegrationDataMainVariablesSetters()

virtual void mfront::AbstractBehaviourInterface::writeIntegrationDataMainVariablesSetters ( std::ostream & ,
const BehaviourDescription &  ) const
pure virtual

write the setters associated with the main variables

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

Implemented in mfront::AbaqusExplicitInterface, mfront::GenericBehaviourInterface, mfront::LSDYNAInterface, mfront::MFrontBehaviourInterface, mfront::UMATInterfaceBase, and mfront::ZMATInterface.

◆ writeInterfaceSpecificIncludes()

virtual void mfront::AbstractBehaviourInterface::writeInterfaceSpecificIncludes ( std::ostream & ,
const BehaviourDescription &  ) const
pure virtual

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