interface class for all domain specific languages associated with behaviours.
More...
|
|
| AbstractBehaviourDSL ()=default |
| | constructor
|
| DSLTarget | getTargetType () const final |
| virtual std::map< std::string, std::shared_ptr< AbstractBehaviourInterface > > | getBehaviourInterfaces () const =0 |
| virtual BehaviourDSLDescription | getBehaviourDSLDescription () const =0 |
| virtual const BehaviourDescription & | getBehaviourDescription () const =0 |
| virtual std::unique_ptr< AbstractBehaviourCodeGenerator > | getCodeGenerator () const =0 |
| virtual void | addMaterialProperties (const VariableDescriptionContainer &)=0 |
| | add the given material properties
|
| virtual void | addParameters (const VariableDescriptionContainer &)=0 |
| | add the given parameters
|
| virtual void | addStateVariables (const VariableDescriptionContainer &)=0 |
| | add the given state variables
|
| virtual void | addAuxiliaryStateVariables (const VariableDescriptionContainer &)=0 |
| | add the given auxiliary state variables
|
| virtual void | addExternalStateVariables (const VariableDescriptionContainer &)=0 |
| | add the given external state variables
|
| virtual void | addLocalVariables (const VariableDescriptionContainer &)=0 |
| | add the given local state variables
|
| virtual void | addIntegrationVariables (const VariableDescriptionContainer &)=0 |
| | add the given integration variables
|
| virtual std::string | getCodeBlockTemplate (const std::string &, const MFrontTemplateGenerationOptions &) const =0 |
| virtual std::set< Hypothesis > | getDefaultModellingHypotheses () const =0 |
| virtual void | writeMaterialPropertyEvaluation (std::ostream &, const BehaviourDescription::MaterialProperty &, std::function< std::string(const MaterialPropertyInput &)> &) const =0 |
| | write the call to a material property
|
| virtual std::shared_ptr< MaterialPropertyDescription > | handleMaterialPropertyDescription (const std::string &)=0 |
| | This function handles a material property treated as a dependency of the current file.
|
| virtual bool | isModellingHypothesisSupported (const Hypothesis) const =0 |
|
| ~AbstractBehaviourDSL () override |
| | destructor
|
| virtual std::vector< DSLOptionDescription > | getDSLOptions () const =0 |
| virtual const MaterialKnowledgeDescription & | getMaterialKnowledgeDescription () const =0 |
| virtual const FileDescription & | getFileDescription () const =0 |
| virtual std::string | getMaterialKnowledgeIdentifier () const =0 |
| virtual std::string | getMaterialName () const =0 |
| virtual std::string | getOverridableVariableNameByExternalName (const std::string &) const =0 |
| virtual std::map< std::string, double > | getOverridenParameters () const =0 |
| virtual void | analyseFile (const std::string &, const std::vector< std::string > &, const std::map< std::string, std::string > &)=0 |
| | analyse a file
|
| virtual void | analyseString (const std::string &)=0 |
| | analyse the specified string.
|
| virtual void | importFile (const std::string &, const std::vector< std::string > &, const std::map< std::string, std::string > &)=0 |
| | import a file
|
| virtual void | endsInputFileProcessing ()=0 |
| | method called at the end of the input file processing.
|
| virtual void | makeConsistencyChecks () const =0 |
| | method called after processing the input file processing.
|
| virtual const TargetsDescription & | getTargetsDescription () const =0 |
| virtual void | generateOutputFiles ()=0 |
| | treat the specified file.
|
| virtual void | setInterfaces (const std::set< std::string > &)=0 |
| | set list of interfaces
|
| virtual void | getKeywordsList (std::vector< std::string > &) const =0 |
| | return the list of keywords usable with this parser
|
|
virtual | ~AbstractDSL () |
| | destructor
|
interface class for all domain specific languages associated with behaviours.
| virtual bool mfront::AbstractBehaviourDSL::isModellingHypothesisSupported |
( |
const Hypothesis | | ) |
const |
|
nodiscardpure virtual |
- Returns
- true if the given modelling hypothesis is handled by the parser
Some parsers have restrictions on the modelling hypotheses supported. For example, the isotropic behaviours were not able to handle plane stress hypotheses when this comment was written(but it was planned, so this comment may be outdated
now).
The fact that this method returns true means that the user can provide code to support this modelling hypothesis. For example, to support plane stress in RungeKutta and Implicit parsers, the user must provide some hand-crafted code. He must enable this modelling hypothesis by calling explicitely @ModellingHypothesis or @ModellingHypotheses keywords.
Implemented in mfront::BehaviourDSLCommon.