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

an interface for point-wise models implemented using the Model domain specific language based for the Cast3M solver. More...

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

Inheritance diagram for mfront::CastemModelInterface:
mfront::AbstractModelInterface mfront::Castem21ModelInterface

Public Member Functions

 CastemModelInterface ()
 constructor
void setOptions (const DataMap &) override
 give options to the interface
std::pair< bool, tokens_iterator > treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override
void declareReservedNames (std::set< std::string > &) override
void writeOutputFiles (const FileDescription &, const ModelDescription &) override
void getTargetsDescription (TargetsDescription &, const ModelDescription &) override
 : fill the target descripton
std::string getLibraryName (const ModelDescription &) const
 ~CastemModelInterface () override
 destructor
Public Member Functions inherited from mfront::AbstractModelInterface
virtual ~AbstractModelInterface ()
 desctructor

Static Public Member Functions

static std::string getName ()

Protected Member Functions

virtual void writeHeaderFile (const FileDescription &, const ModelDescription &)
 generate the header file
virtual void writeSourceFile (const FileDescription &, const ModelDescription &)
 generate the source file

Static Protected Member Functions

static void writeUMATFunctionArguments (std::ostream &)
 write the arguments of the UMAT function

Additional Inherited Members

Public Types inherited from mfront::AbstractModelInterface
using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using TokensContainer = CxxTokenizer::TokensContainer
 a simple alias
using tokens_iterator = CxxTokenizer::TokensContainer::const_iterator
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias

Detailed Description

an interface for point-wise models implemented using the Model domain specific language based for the Cast3M solver.

This interface is based on the on-the-fly conversion of the model description in a behaviour description and using the interface for behaviours.

Member Function Documentation

◆ declareReservedNames()

void mfront::CastemModelInterface::declareReservedNames ( std::set< std::string > & )
overridevirtual
Parameters
[out]namesreserved names

Implements mfront::AbstractModelInterface.

◆ getLibraryName()

std::string mfront::CastemModelInterface::getLibraryName ( const ModelDescription & ) const
nodiscard
Returns
the name of the generated library

◆ getName()

std::string mfront::CastemModelInterface::getName ( )
staticnodiscard
Returns
the name of the interface

◆ getTargetsDescription()

void mfront::CastemModelInterface::getTargetsDescription ( TargetsDescription & ,
const ModelDescription &  )
overridevirtual

: fill the target descripton

Parameters
[out]tdtarget description
[in]mdmodel description

Implements mfront::AbstractModelInterface.

◆ setOptions()

void mfront::CastemModelInterface::setOptions ( const DataMap & )
overridevirtual

give options to the interface

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

Parameters
[in]optsoptions

Implements mfront::AbstractModelInterface.

◆ treatKeyword()

std::pair< bool, tokens_iterator > mfront::CastemModelInterface::treatKeyword ( const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
nodiscardoverridevirtual
Parameters
[in]k: keyword treated
[in]ilist of interfaces to which the keyword is restricted
[in]p: iterator to the current token
[in]pe: iterator 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::AbstractModelInterface.

◆ writeHeaderFile()

virtual void mfront::CastemModelInterface::writeHeaderFile ( const FileDescription & ,
const ModelDescription &  )
protectedvirtual

generate the header file

Parameters
fdfile description
mdmodel description

◆ writeOutputFiles()

void mfront::CastemModelInterface::writeOutputFiles ( const FileDescription & ,
const ModelDescription &  )
overridevirtual
Parameters
fdfile description
mdmodel description

Implements mfront::AbstractModelInterface.

◆ writeSourceFile()

virtual void mfront::CastemModelInterface::writeSourceFile ( const FileDescription & ,
const ModelDescription &  )
protectedvirtual

generate the source file

Parameters
fdfile description
mdmodel description

◆ writeUMATFunctionArguments()

void mfront::CastemModelInterface::writeUMATFunctionArguments ( std::ostream & )
staticprotected

write the arguments of the UMAT function

Parameters
[in]osoutput stream

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