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

a deleguate class aimed a generating the code associated with a behaviour. More...

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

Inheritance diagram for mfront::AbstractBehaviourCodeGenerator:
mfront::BehaviourCodeGeneratorBase mfront::DefaultCodeGeneratorBase mfront::ImplicitCodeGeneratorBase mfront::IsotropicBehaviourCodeGeneratorBase mfront::RungeKuttaCodeGeneratorBase mfront::DefaultCZMCodeGenerator mfront::DefaultFiniteStrainCodeGenerator mfront::IsotropicMisesCreepCodeGenerator mfront::IsotropicMisesPlasticFlowCodeGenerator mfront::IsotropicStrainHardeningMisesCreepCodeGenerator mfront::MultipleIsotropicMisesFlowsCodeGenerator

Public Types

using MaterialPropertyInput = BehaviourDescription::MaterialPropertyInput
 a simple alias
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias

Public Member Functions

virtual void generateOutputFiles (const std::set< Hypothesis > &)=0
 generate the output files
virtual void writeMaterialPropertyEvaluation (std::ostream &, const BehaviourDescription::MaterialProperty &, std::function< std::string(const MaterialPropertyInput &)> &) const =0
 write the call to a material property
virtual bool isSrcFileRequired () const =0
virtual ~AbstractBehaviourCodeGenerator ()
 destructor

Detailed Description

a deleguate class aimed a generating the code associated with a behaviour.

Member Function Documentation

◆ generateOutputFiles()

virtual void mfront::AbstractBehaviourCodeGenerator::generateOutputFiles ( const std::set< Hypothesis > & )
pure virtual

generate the output files

Parameters
[in]mhsmodelling hypotheses to be treated

Implemented in mfront::BehaviourCodeGeneratorBase.

◆ isSrcFileRequired()

virtual bool mfront::AbstractBehaviourCodeGenerator::isSrcFileRequired ( ) const
nodiscardpure virtual
Returns
if the generation of the source file is required

The source file contains implementations of functions common to all interfaces.

Implemented in mfront::BehaviourCodeGeneratorBase.

◆ writeMaterialPropertyEvaluation()

virtual void mfront::AbstractBehaviourCodeGenerator::writeMaterialPropertyEvaluation ( std::ostream & ,
const BehaviourDescription::MaterialProperty & ,
std::function< std::string(const MaterialPropertyInput &)> &  ) const
pure virtual

write the call to a material property

Parameters
[out]outoutput stream
[in]mmaterial property description
[in]ffunction converting input variable name. The function f can be used to specify how evaluate a variable value. For example, if we want to evaluate the variable name 'V' at the end of the time step, we could make f return V+dV

Implemented in mfront::BehaviourCodeGeneratorBase.


The documentation for this struct was generated from the following file:
  • AbstractBehaviourCodeGenerator.hxx