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

an a behaviour' brick is a way to alleviate to build a complex behaviour. More...

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

Inheritance diagram for mfront::AbstractBehaviourBrick:
mfront::BehaviourBrickBase mfront::DDIF2Brick mfront::FiniteStrainSingleCrystalBrick mfront::StandardElasticityBrick mfront::StandardElastoViscoPlasticityBrick

Public Types

using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using tokens_iterator = CxxTokenizer::const_iterator
 a simple alias
using Parameters = std::map<std::string, std::string>
using Parameter = Parameters::value_type
 a simple alias
using Data = tfel::utilities::Data
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias

Public Member Functions

virtual std::string getName () const =0
 return the name of the brick
virtual BehaviourBrickDescription getDescription () const =0
virtual std::vector< bbrick::OptionDescription > getOptions (const bool) const =0
virtual void initialize (const Parameters &, const DataMap &)=0
 intialize the brick
virtual std::pair< bool, tokens_iterator > treatKeyword (const std::string &, tokens_iterator &, const tokens_iterator)=0
 treat a keyword
virtual std::vector< Hypothesis > getSupportedModellingHypotheses () const =0
 This method returns the list of supported modelling hypotheses that are supported by the brick.
virtual void endTreatment () const =0
 method called at the end of the input file processing
virtual void completeVariableDeclaration () const =0
 complete the variable description
virtual ~AbstractBehaviourBrick ()
 descructor

Detailed Description

an a behaviour' brick is a way to alleviate to build a complex behaviour.

Member Typedef Documentation

◆ Parameters

using mfront::AbstractBehaviourBrick::Parameters = std::map<std::string, std::string>

Object used to pass parameters to BehaviourBricks constructor The key is the parameter name. The value is the parameter value.

Member Function Documentation

◆ completeVariableDeclaration()

virtual void mfront::AbstractBehaviourBrick::completeVariableDeclaration ( ) const
pure virtual

◆ endTreatment()

virtual void mfront::AbstractBehaviourBrick::endTreatment ( ) const
pure virtual

◆ getDescription()

virtual BehaviourBrickDescription mfront::AbstractBehaviourBrick::getDescription ( ) const
nodiscardpure virtual

◆ getName()

virtual std::string mfront::AbstractBehaviourBrick::getName ( ) const
nodiscardpure virtual

◆ getOptions()

virtual std::vector< bbrick::OptionDescription > mfront::AbstractBehaviourBrick::getOptions ( const bool ) const
nodiscardpure virtual
Parameters
[in]bif true, all options are returned. Otherwise, only the most adapted options for the behaviour are returned.
Returns
the description of the brick options

Implemented in mfront::DDIF2Brick, mfront::FiniteStrainSingleCrystalBrick, mfront::StandardElasticityBrick, and mfront::StandardElastoViscoPlasticityBrick.

◆ getSupportedModellingHypotheses()

virtual std::vector< Hypothesis > mfront::AbstractBehaviourBrick::getSupportedModellingHypotheses ( ) const
nodiscardpure virtual

This method returns the list of supported modelling hypotheses that are supported by the brick.

This method is called after the input file processing. Two cases may arise:

  • if the user has specified a list of supported modelling hypotheses, this list is used to check if the user's request can be fulfilled. If the brick returns an empty list, it means that the brick does not have any restriction.
  • if the user has not specified the list of supported modelling hypotheses, this method is used to select a list of supported modelling hypotheses. If the brick returns an empty list, it means that the brick does not participate to the modelling hypotheses selection. If all the bricks returns an empty list, a set of default modelling hypotheses is selected.

Implemented in mfront::DDIF2Brick, mfront::FiniteStrainSingleCrystalBrick, mfront::StandardElasticityBrick, and mfront::StandardElastoViscoPlasticityBrick.

◆ initialize()

virtual void mfront::AbstractBehaviourBrick::initialize ( const Parameters & ,
const DataMap &  )
pure virtual

◆ treatKeyword()

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

treat a keyword

Parameters
[in]keykeyword to be treated
[in,out]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::BehaviourBrickBase.


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