tfel
Loading...
Searching...
No Matches
mfront::CastemInterface Struct Reference

Interface for behaviours for use in the Cast3M finite element code. More...

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

Inheritance diagram for mfront::CastemInterface:
mfront::UMATInterfaceBase mfront::InterfaceBase mfront::BehaviourInterfaceBase mfront::AbstractBehaviourInterface mfront::SupportedTypes mfront::AmitexInterface mfront::Castem21Interface

Classes

struct  UniqueCast3MIdentifiersGenerator

Public Member Functions

 CastemInterface ()
 default constructor
std::pair< bool, tokens_iterator > treatKeyword (BehaviourDescription &, const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override
 treat a keyword
void getTargetsDescription (TargetsDescription &, const BehaviourDescription &) override
void writeInterfaceSpecificIncludes (std::ostream &, const BehaviourDescription &) const override
void endTreatment (const BehaviourDescription &, const FileDescription &) const override
 write output files
 ~CastemInterface () override
 destructor
Public Member Functions inherited from mfront::UMATInterfaceBase
 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
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 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 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 ~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

Static Public Member Functions

static std::string getName ()
static bool usesGenericPlaneStressAlgorithm (const BehaviourDescription &)
static void writeUMATFunctionArguments (std::ostream &)
 write the arguments of the UMAT function.
static void writeUMATFunctionArguments (std::ostream &, const BehaviourDescription::BehaviourType &)
 write the arguments of the UMAT function
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

static const char *const finiteStrainStrategies
static const char *const useTimeSubStepping
static const char *const doSubSteppingOnInvalidResults
static const char *const maximumSubStepping
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

Protected Member Functions

std::string getLibraryName (const BehaviourDescription &) const override
std::string getInterfaceName () const override
 the name of the interface is mostly used internally to build
std::string getFunctionNameBasis (const std::string &) const override
std::string getBehaviourName (const BehaviourDescription &) const
std::string getModellingHypothesisTest (const Hypothesis) const override
std::map< UMATInterfaceBase::Hypothesis, std::string > gatherModellingHypothesesAndTests (const BehaviourDescription &) const override
 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.
std::set< Hypothesis > getModellingHypothesesToBeTreated (const BehaviourDescription &) const override
std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > buildMaterialPropertiesList (const BehaviourDescription &, const Hypothesis) const override
void writeMTestFileGeneratorSetModellingHypothesis (std::ostream &) const override
void writeGetOutOfBoundsPolicyFunctionImplementation (std::ostream &, const BehaviourDescription &, const std::string &) const override
virtual std::string getUmatFunctionName (const BehaviourDescription &) const
virtual std::vector< BehaviourMaterialProperty > getDefaultMaterialPropertiesList (const BehaviourDescription &, const Hypothesis) const
virtual void writeSetOutOfBoundsPolicyFunctionImplementation2 (std::ostream &, const std::string &, const std::string &) const
 write the set out of bounds policy function for an alias behaviour
virtual void generateInputFileExample (const BehaviourDescription &, const FileDescription &) const
 generate an example of an input file
virtual void generateInputFileExampleForHypothesis (std::ostream &, const BehaviourDescription &, const Hypothesis) const
 generate an example of how to use the behaviour for the given hypothesis. This method is called internally by the generateInputFileExample method.
virtual void writeVariableDescriptionContainerToGibiane (std::ostream &, UniqueCast3MIdentifiersGenerator &, const Hypothesis, const VariableDescriptionContainer &) const
virtual void writeVariableDescriptionsToGibiane (std::ostream &, UniqueCast3MIdentifiersGenerator &, const Hypothesis, const VariableDescriptionContainer::const_iterator, const VariableDescriptionContainer::const_iterator) const
virtual void writeGibianeMappingComments (std::ostream &, UniqueCast3MIdentifiersGenerator &, const Hypothesis, const VariableDescriptionContainer &) const
virtual void writeGibianeMappingComments (std::ostream &, UniqueCast3MIdentifiersGenerator &, const std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > &) const
virtual void writeGibianeInstruction (std::ostream &, const std::string &) const
virtual void writeCastemFunctionDeclaration (std::ostream &, const std::string &) const
virtual void writeCastemFunction (std::ostream &, const std::string &, const std::string &, const BehaviourDescription &, void(CastemInterface::*)(std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const) const
 an helper function
virtual void writeFiniteRotationSmallStrainCastemFunction (std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const
virtual void writeMieheApelLambrechtLogarithmicStrainCastemFunction (std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const
virtual void writeLogarithmicStrain1DCastemFunction (std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const
 write the implementation of the umat function corresponding to the LOGARITHMICSTRAIN1D finite strain strategy
virtual void writeStandardCastemFunction (std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const
virtual std::string getMaterialPropertiesOffsetForBehaviourTraits (const BehaviourDescription &) const
 return a string used to initialize the offset of the material properties when declaring the CastemTraits class.
virtual void writeCastemBehaviourTraits (std::ostream &, const BehaviourDescription &, const Hypothesis) const
 write a specialisation of the CastemTraits class
virtual bool writeInitializeAxialStrain (std::ostream &, const BehaviourDescription &, const char) const
 plane stress handling requires to have access to the axial strain, but it is not obvious nor always possible to get it... This method handles all the cases.
virtual void writeFiniteStrainStrategiesPlaneStressSpecificCall (std::ostream &, const BehaviourDescription &, const std::string &, const std::string &, const char) const
 plane stress handling requires to have access to the axial strain, but it is not obvious nor always possible to get it... This method handles all the cases.
virtual bool isModellingHypothesisSupported (const Hypothesis, const BehaviourDescription &) const
Protected Member Functions inherited from mfront::UMATInterfaceBase
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 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
Protected Types inherited from mfront::InterfaceBase
using TokensContainer = tfel::utilities::CxxTokenizer::TokensContainer
 a simple alias
Static Protected Member Functions inherited from mfront::InterfaceBase
static void throwRuntimeError (TokensContainer::const_iterator &, const TokensContainer::const_iterator, const std::string &, const std::string &)
 throw a std::runtime_error
static void checkNotEndOfFile (TokensContainer::const_iterator &, const TokensContainer::const_iterator, const std::string &, const std::string &="")
static void readSpecifiedToken (TokensContainer::const_iterator &, const TokensContainer::const_iterator, const std::string &, const std::string &)
static std::vector< std::string > readArrayOfString (TokensContainer::const_iterator &, const TokensContainer::const_iterator, const std::string &)
static std::vector< std::string > readStringOrArrayOfString (TokensContainer::const_iterator &, const TokensContainer::const_iterator, const std::string &)

Detailed Description

Interface for behaviours for use in the Cast3M finite element code.

The name of this interface comes to the fact that the Cast3M choose to use an interface for user defined behaviours closed to the umat interface of the Abaqus finite element solver. However, conventions of Cast3M makes those two interfaces incompatibles.

Member Function Documentation

◆ buildMaterialPropertiesList()

std::pair< std::vector< BehaviourMaterialProperty >, SupportedTypes::TypeSize > mfront::CastemInterface::buildMaterialPropertiesList ( const BehaviourDescription & ,
const Hypothesis  ) const
nodiscardoverrideprotectedvirtual
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

Reimplemented from mfront::BehaviourInterfaceBase.

◆ endTreatment()

void mfront::CastemInterface::endTreatment ( const BehaviourDescription & ,
const FileDescription &  ) const
overridevirtual

write output files

Parameters
[in]mb: behaviour description
[in]fd: mfront file description

Implements mfront::AbstractBehaviourInterface.

◆ gatherModellingHypothesesAndTests()

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

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 from mfront::UMATInterfaceBase.

◆ generateInputFileExample()

virtual void mfront::CastemInterface::generateInputFileExample ( const BehaviourDescription & ,
const FileDescription &  ) const
protectedvirtual

generate an example of an input file

Parameters
[in]bdbehaviour description
[in]hmodelling hypothesis

Reimplemented in mfront::AmitexInterface.

◆ generateInputFileExampleForHypothesis()

virtual void mfront::CastemInterface::generateInputFileExampleForHypothesis ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
protectedvirtual

generate an example of how to use the behaviour for the given hypothesis. This method is called internally by the generateInputFileExample method.

Parameters
[out]outoutput stream
[in]bdbehaviour description
[in]hmodelling hypothesis

Reimplemented in mfront::AmitexInterface.

◆ getDefaultMaterialPropertiesList()

virtual std::vector< BehaviourMaterialProperty > mfront::CastemInterface::getDefaultMaterialPropertiesList ( const BehaviourDescription & ,
const Hypothesis  ) const
nodiscardprotectedvirtual
Returns
the list of material properties required by the Cast3M finite element solver.
Parameters
[in]mbmechanical behaviour description
[in]hmodelling hypothesis

Reimplemented in mfront::Castem21Interface.

◆ getFunctionNameBasis()

std::string mfront::CastemInterface::getFunctionNameBasis ( const std::string & ) const
nodiscardoverrideprotectedvirtual
Returns
the basis for the function(s)' names implementing the behaviour generated by the interface. This can be different from the name of the behaviour to comply with the targeted code restrictions. For example, the Abaqus interfaces require the function name to be upper-cased.
Note
Some interfaces generate one function per behaviour. The name of this function shall be the one returned by this method. The other interfaces generate one function per hypothesis: the function to be called the appends a suffix associated with the modelling hypothesis to the name returned by this method. In any case, the UMAT++ symbols' names are build using the name returned by this method.
Parameters
[in]n: name of the behaviour as defined by interface (generally taking into account the material and the behaviour name)

Implements mfront::BehaviourInterfaceBase.

◆ getInterfaceName()

std::string mfront::CastemInterface::getInterfaceName ( ) const
nodiscardoverrideprotectedvirtual

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

Implements mfront::AbstractBehaviourInterface.

◆ getLibraryName()

std::string mfront::CastemInterface::getLibraryName ( const BehaviourDescription & ) const
nodiscardoverrideprotectedvirtual
Returns
the name of the generated library
Parameters
[in]mb: behaviour description

Implements mfront::UMATInterfaceBase.

◆ getMaterialPropertiesOffsetForBehaviourTraits()

virtual std::string mfront::CastemInterface::getMaterialPropertiesOffsetForBehaviourTraits ( const BehaviourDescription & ) const
nodiscardprotectedvirtual

return a string used to initialize the offset of the material properties when declaring the CastemTraits class.

Parameters
[in]mbmechanical behaviour description

Reimplemented in mfront::Castem21Interface.

◆ getModellingHypothesesToBeTreated()

std::set< Hypothesis > mfront::CastemInterface::getModellingHypothesesToBeTreated ( const BehaviourDescription & ) const
nodiscardoverrideprotectedvirtual
Returns
the list of modelling hypotheses treated by the interface
Parameters
[in]mb: behaviour description

Implements mfront::AbstractBehaviourInterface.

◆ getModellingHypothesisTest()

std::string mfront::CastemInterface::getModellingHypothesisTest ( const Hypothesis ) const
nodiscardoverrideprotectedvirtual
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 from mfront::UMATInterfaceBase.

◆ getName()

std::string mfront::CastemInterface::getName ( )
static
Returns
the name of the interface

◆ getTargetsDescription()

void mfront::CastemInterface::getTargetsDescription ( TargetsDescription & ,
const BehaviourDescription &  )
overridevirtual
Parameters
[out]d: target description
[out]bd: behaviour description

Implements mfront::AbstractBehaviourInterface.

◆ isModellingHypothesisSupported()

virtual bool mfront::CastemInterface::isModellingHypothesisSupported ( const Hypothesis ,
const BehaviourDescription &  ) const
nodiscardprotectedvirtual
Returns
true if the interface supports the given modelling hypothesis.
Note
the Cast3M interface may support modelling hypotheses not intrinsically supported by the behaviour (plane stress case for strain based behaviours).
Parameters
[in]h: modelling hypothesis
[in]mb: behaviour description

◆ treatKeyword()

std::pair< bool, tokens_iterator > mfront::CastemInterface::treatKeyword ( BehaviourDescription & ,
const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
nodiscardoverridevirtual

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.

Implements mfront::AbstractBehaviourInterface.

◆ usesGenericPlaneStressAlgorithm()

bool mfront::CastemInterface::usesGenericPlaneStressAlgorithm ( const BehaviourDescription & )
static
Returns
true if the interface shall support plane stress hypothesis through a generic algorithm.
false if the behaviour handles the plane stress hypothesis or if the behaviour don't handle the generalised plane strain hypothesis.

◆ writeCastemBehaviourTraits()

virtual void mfront::CastemInterface::writeCastemBehaviourTraits ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
protectedvirtual

write a specialisation of the CastemTraits class

Parameters
[in]out: ouptut file
[in]mb: behaviour description
[in]h: modelling hypothesis

◆ writeCastemFunction()

virtual void mfront::CastemInterface::writeCastemFunction ( std::ostream & ,
const std::string & ,
const std::string & ,
const BehaviourDescription & ,
void(CastemInterface::*  )(std::ostream &, const std::string &, const std::string &, const std::string &, const BehaviourDescription &) const ) const
protectedvirtual

an helper function

Parameters
[out]out: output file
[in]name: name of law
[in]suffix: suffix library
[in]mb: mechanical behaviour description
[in]m: méthod called to write the function

◆ writeFiniteRotationSmallStrainCastemFunction()

virtual void mfront::CastemInterface::writeFiniteRotationSmallStrainCastemFunction ( std::ostream & ,
const std::string & ,
const std::string & ,
const std::string & ,
const BehaviourDescription &  ) const
protectedvirtual
Parameters
[out]out: output file
[in]name: name of law
[in]fname: function name
[in]suffix: suffix library
[in]mb: mechanical behaviourd description

◆ writeFiniteStrainStrategiesPlaneStressSpecificCall()

virtual void mfront::CastemInterface::writeFiniteStrainStrategiesPlaneStressSpecificCall ( std::ostream & ,
const BehaviourDescription & ,
const std::string & ,
const std::string & ,
const char  ) const
protectedvirtual

plane stress handling requires to have access to the axial strain, but it is not obvious nor always possible to get it... This method handles all the cases.

Parameters
[in]out: ouptut file
[in]mb: behaviour description
[in]c: beginning of the call
[in]c2: code computing the axial deformation gradient from the axial strain
[in]c3'0' (beginning of time step) or '1' (end of time step)

◆ writeGetOutOfBoundsPolicyFunctionImplementation()

void mfront::CastemInterface::writeGetOutOfBoundsPolicyFunctionImplementation ( std::ostream & ,
const BehaviourDescription & ,
const std::string &  ) const
overrideprotectedvirtual

Reimplemented from mfront::BehaviourInterfaceBase.

◆ writeInitializeAxialStrain()

virtual bool mfront::CastemInterface::writeInitializeAxialStrain ( std::ostream & ,
const BehaviourDescription & ,
const char  ) const
nodiscardprotectedvirtual

plane stress handling requires to have access to the axial strain, but it is not obvious nor always possible to get it... This method handles all the cases.

Returns
false if the axial strain can't be initialized.
Parameters
[in]out: ouptut file
[in]mb: behaviour description
[in]c'0' (beginning of time step) or '1' (end of time step)

◆ writeInterfaceSpecificIncludes()

void mfront::CastemInterface::writeInterfaceSpecificIncludes ( std::ostream & ,
const BehaviourDescription &  ) const
overridevirtual

write interface specific includes

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

Implements mfront::AbstractBehaviourInterface.

◆ writeLogarithmicStrain1DCastemFunction()

virtual void mfront::CastemInterface::writeLogarithmicStrain1DCastemFunction ( std::ostream & ,
const std::string & ,
const std::string & ,
const std::string & ,
const BehaviourDescription &  ) const
protectedvirtual

write the implementation of the umat function corresponding to the LOGARITHMICSTRAIN1D finite strain strategy

Parameters
[out]out: output file
[in]name: name of law
[in]fname: function name
[in]suffix: suffix library
[in]mb: mechanical behaviourd description

◆ writeMieheApelLambrechtLogarithmicStrainCastemFunction()

virtual void mfront::CastemInterface::writeMieheApelLambrechtLogarithmicStrainCastemFunction ( std::ostream & ,
const std::string & ,
const std::string & ,
const std::string & ,
const BehaviourDescription &  ) const
protectedvirtual
Parameters
[out]out: output file
[in]name: name of law
[in]fname: function name
[in]suffix: suffix library
[in]mb: mechanical behaviourd description

◆ writeMTestFileGeneratorSetModellingHypothesis()

void mfront::CastemInterface::writeMTestFileGeneratorSetModellingHypothesis ( std::ostream & ) const
overrideprotectedvirtual
Parameters
[in]out: output file

Implements mfront::UMATInterfaceBase.

◆ writeSetOutOfBoundsPolicyFunctionImplementation2()

virtual void mfront::CastemInterface::writeSetOutOfBoundsPolicyFunctionImplementation2 ( std::ostream & ,
const std::string & ,
const std::string &  ) const
protectedvirtual

write the set out of bounds policy function for an alias behaviour

Parameters
[out]out: output stream
[out]name: name of the alias
[out]name2: name of the original behaviour

◆ writeStandardCastemFunction()

virtual void mfront::CastemInterface::writeStandardCastemFunction ( std::ostream & ,
const std::string & ,
const std::string & ,
const std::string & ,
const BehaviourDescription &  ) const
protectedvirtual
Parameters
[out]out: output file
[in]name: name of law
[in]fname: function name
[in]suffix: suffix library
[in]mb: mechanical behaviour description

◆ writeUMATFunctionArguments() [1/2]

void mfront::CastemInterface::writeUMATFunctionArguments ( std::ostream & )
static

write the arguments of the UMAT function.

Note
This function is meant to be used for declaring UMAT functions as the variables of the function are not named
Parameters
[in]osoutput stream

◆ writeUMATFunctionArguments() [2/2]

void mfront::CastemInterface::writeUMATFunctionArguments ( std::ostream & ,
const BehaviourDescription::BehaviourType &  )
static

write the arguments of the UMAT function

Parameters
[in]osoutput stream
[in]tbehaviour type

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