tfel
Loading...
Searching...
No Matches
mtest::MTestParser Struct Reference

class used to parse MTest file. More...

#include </home/runner/work/tfel/tfel/mtest/include/MTest/MTestParser.hxx>

Inheritance diagram for mtest::MTestParser:
mtest::SingleStructureSchemeParser mtest::SchemeParserBase tfel::utilities::CxxTokenizer tfel::utilities::CxxTokenizerOptions

Public Member Functions

 MTestParser ()
void execute (MTest &, const std::string &, const std::vector< std::string > &, const std::map< std::string, std::string > &)
void parseString (MTest &, const std::string &)
std::vector< std::string > getKeyWordsList () const
virtual void displayKeyWordsList () const
 display the list of keywords
virtual void displayKeyWordsHelp () const
 display the list of keywords
virtual void displayKeyWordDescription (const std::string &) const
 display the description of a keyword
 ~MTestParser () override
 destructor
Public Member Functions inherited from mtest::SingleStructureSchemeParser
virtual void handleBehaviour (SingleStructureScheme &, tokens_iterator &)
 handle the @Behaviour keyword
virtual void handleModel (SingleStructureScheme &, tokens_iterator &)
 handle the @Model keyword
virtual void handleParameter (SingleStructureScheme &, tokens_iterator &)
 handle the @Parameter keyword
virtual void handleIntegerParameter (SingleStructureScheme &, tokens_iterator &)
 handle the @IntegerParameter keyword
virtual void handleUnsignedIntegerParameter (SingleStructureScheme &, tokens_iterator &)
 handle the @UnsignedIntegerParameter keyword
virtual void handleOutOfBoundsPolicy (SingleStructureScheme &, tokens_iterator &)
 handle the @OutOfBoundsPolicy keyword
virtual void handleMaterialProperty (SingleStructureScheme &, tokens_iterator &)
 handle the @MaterialProperty keyword
virtual void handleHandleThermalExpansion (SingleStructureScheme &, tokens_iterator &)
 handle the @HandleThermalExpansion keyword
virtual void handleInternalStateVariable (SingleStructureScheme &, tokens_iterator &)
 handle the @InternalStateVariable keyword
virtual void handleExternalStateVariable (SingleStructureScheme &, tokens_iterator &)
 handle the @ExternalStateVariable keyword
 ~SingleStructureSchemeParser () override
 destructor
Public Member Functions inherited from mtest::SchemeParserBase
 SchemeParserBase ()
 constructor
 ~SchemeParserBase () override
 destructor

Protected Types

using CallBack = void (MTestParser::*)(MTest&, tokens_iterator&)
 a simple alias
Protected Types inherited from mtest::SchemeParserBase
using ExternalFunctionManager = tfel::math::parser::ExternalFunctionManager
 a simple alias
Protected Types inherited from tfel::utilities::CxxTokenizer
using TokensContainer = std::vector<Token>
 a simple alias
using const_iterator = TokensContainer::const_iterator
 a simple alias
using size_type = TokensContainer::size_type
 a simple alias

Protected Member Functions

void execute (MTest &t)
void registerCallBacks () final
 register the call backs associated with each command
virtual void handleEvent (MTest &, tokens_iterator &)
 handle the @Event keyword
virtual void handleCompareToNumericalTangentOperator (MTest &, tokens_iterator &)
 handle the @CompareToNumericalTangentOperator keyword
virtual void handleTangentOperatorComparisonCriterion (MTest &, tokens_iterator &)
 handle the @TangentOperatorComparisonCriterium keyword
virtual void handleNumericalTangentOperatorPerturbationValue (MTest &, tokens_iterator &)
 handle the @NumericalTangentOperatorPerturbationValue keyword.
virtual void handleTest (MTest &, tokens_iterator &)
 handle the @Test keyword
virtual void handleRotationMatrix (MTest &, tokens_iterator &)
 handle the @RotationMatrix keyword
virtual void handleStrainEpsilon (MTest &, tokens_iterator &)
 handle the @StrainEpsilon keyword
virtual void handleDeformationGradientEpsilon (MTest &, tokens_iterator &)
 handle the @DeformationGradientEpsilon keyword
virtual void handleOpeningDisplacementEpsilon (MTest &, tokens_iterator &)
 handle the @OpeningDisplacementEpsilon keyword
virtual void handleGradientEpsilon (MTest &, tokens_iterator &)
 handle the @GradientEpsilon keyword
virtual void handleStressEpsilon (MTest &, tokens_iterator &)
 handle the @StressEpsilon keyword
virtual void handleCohesiveForceEpsilon (MTest &, tokens_iterator &)
 handle the @CohesiveForceEpsilon keyword
virtual void handleThermodynamicForceEpsilon (MTest &, tokens_iterator &)
 handle the @ThermodynamicForceEpsilon keyword
virtual void handleModellingHypothesis (MTest &, tokens_iterator &)
 handle the @ModellingHypothesis keyword
virtual void handleStrain (MTest &, tokens_iterator &)
 handle the @Strain keyword
virtual void handleDeformationGradient (MTest &, tokens_iterator &)
 handle the @DeformationGradient keyword
virtual void handleOpeningDisplacement (MTest &, tokens_iterator &)
 handle the @OpeningDisplacement keyword
virtual void handleGradient (MTest &, tokens_iterator &)
 handle the @Gradient keyword
virtual void handleStress (MTest &, tokens_iterator &)
 handle the @Stress keyword
virtual void handleCohesiveForce (MTest &, tokens_iterator &)
 handle the @CohesiveForce keyword
virtual void handleThermodynamicForce (MTest &, tokens_iterator &)
 handle the @ThermodynamicForce keyword
virtual void handleImposedStress (MTest &, tokens_iterator &)
 handle the @ImposedStress keyword
virtual void handleImposedCohesiveForce (MTest &, tokens_iterator &)
 handle the @ImposedCohesiveForce keyword
virtual void handleImposedThermodynamicForce (MTest &, tokens_iterator &)
 handle the @ImposedThermodynamicForce keyword
virtual void handleImposedStrain (MTest &, tokens_iterator &)
 handle the @NonLinearConstraint`` keyword \param[in,out] t: MTest object to be configured \param[in,out] p: position in the input file */ virtual void handleNonLinearConstraint(MTest&, tokens_iterator&); /*! \brief handle the @ImposedStrain keyword \param[in,out] t: MTest` object to be configured
virtual void handleImposedDeformationGradient (MTest &, tokens_iterator &)
 handle the @ImposedDeformationGradient keyword
virtual void handleImposedOpeningDisplacement (MTest &, tokens_iterator &)
 handle the @ImposedOpeningDisplacement keyword
virtual void handleImposedGradient (MTest &, tokens_iterator &)
 handle the @ImposedGradient keyword
virtual void handleUserDefinedPostProcessing (MTest &, tokens_iterator &)
 handle the @UserDefinedPostProcessing keyword
virtual void handlePrintLagrangeMultipliers (MTest &, tokens_iterator &)
 handle the @PrintLagrangeMultipliers keyword
ConstraintOptions readConstraintOptions (const std::string &, tokens_iterator &)
 read the options associated with a constraint
bool treatKeyword (MTest &, tokens_iterator &)
 treat the current keyword
Protected Member Functions inherited from mtest::SingleStructureSchemeParser
void setInternalStateVariableValue (SingleStructureScheme &, tokens_iterator &, const std::string &)
void registerCallBacks () override
bool treatKeyword (SingleStructureScheme &, tokens_iterator &)
 treat the current keyword
std::vector< std::string > getKeyWordsList () const
Protected Member Functions inherited from mtest::SchemeParserBase
void openFile (const std::string &)
virtual void handleLonelySeparator (SchemeBase &, tokens_iterator &)
 allow an lonely ';'
virtual void handleAuthor (SchemeBase &, tokens_iterator &)
 handle the @Author keyword
virtual void handleDate (SchemeBase &, tokens_iterator &)
 handle the @Date keyword
virtual void handleMessage (SchemeBase &, tokens_iterator &)
 handle the @Import`` keyword \param[in,out] p : position in the input file */ virtual void handleImport(SchemeBase&, tokens_iterator&); /*! \brief handle the @Message` keyword
virtual void handleOutputFrequency (SchemeBase &, tokens_iterator &)
 handle the @OutputFrequency keyword
virtual void handleDescription (SchemeBase &, tokens_iterator &)
 handle the @Description keyword
virtual void handlePredictionPolicy (SchemeBase &, tokens_iterator &)
 handle the @PredictionPolicy keyword
virtual void handleTimes (SchemeBase &, tokens_iterator &)
 handle the @Times keyword
virtual void handleReal (SchemeBase &, tokens_iterator &)
 handle the @Real keyword
virtual void handleStiffnessMatrixType (SchemeBase &, tokens_iterator &)
 handle the @StiffnessMatrixType keyword
virtual void handleStiffnessUpdatePolicy (SchemeBase &, tokens_iterator &)
 handle the @StiffnessUpdatePolicy keyword
virtual void handleUseCastemAccelerationAlgorithm (SchemeBase &, tokens_iterator &)
 handle the @UseCastemAccelerationAlgorithm keyword
virtual void handleCastemAccelerationTrigger (SchemeBase &, tokens_iterator &)
 handle the @CastemAccelerationTrigger keyword
virtual void handleCastemAccelerationPeriod (SchemeBase &, tokens_iterator &)
 handle the @CastemAccelerationAlgorithm keyword
virtual void handleAccelerationAlgorithm (SchemeBase &, tokens_iterator &)
 handle the @AccelerationAlgorithm keyword
virtual void handleAccelerationAlgorithmParameter (SchemeBase &, tokens_iterator &)
 handle the @AccelerationAlgorithmParameter keyword
virtual void handleDynamicTimeStepScaling (SchemeBase &, tokens_iterator &)
 handle the @DynamicTimeStepScaling keyword
virtual void handleMaximalTimeStep (SchemeBase &, tokens_iterator &)
 handle the @MaximalTimeStep keyword
virtual void handleMinimalTimeStep (SchemeBase &, tokens_iterator &)
 handle the @MinimalTimeStep keyword
virtual void handleMaximalTimeStepScalingFactor (SchemeBase &, tokens_iterator &)
 handle the @MaximalTimeStepScalingFactor keyword
virtual void handleMinimalTimeStepScalingFactor (SchemeBase &, tokens_iterator &)
 handle the @MinimalTimeStepScalingFactor keyword
virtual void handleMaximumNumberOfIterations (SchemeBase &, tokens_iterator &)
 handle the @MaximumNumberOfIterations keyword
virtual void handleMaximumNumberOfSubSteps (SchemeBase &, tokens_iterator &)
 handle the @MaximumNumberOfSubSteps keyword
virtual void handleEvolution (SchemeBase &, tokens_iterator &)
 handle the @Evolution keyword
virtual void handleOutputFile (SchemeBase &, tokens_iterator &)
 handle the @OutputFile keyword
virtual void handleXMLOutputFile (SchemeBase &, tokens_iterator &)
 handle the @XMLOutputFile keyword
virtual void handleOutputFilePrecision (SchemeBase &, tokens_iterator &)
 handle the @OutputFilePrecision keyword
virtual void handleResidualFile (SchemeBase &, tokens_iterator &)
 handle the @ResidualFile keyword
virtual void handleResidualFilePrecision (SchemeBase &, tokens_iterator &)
 handle the @ResidualFilePrecision keyword
virtual std::string getDocumentationFilePath (const std::string &, const std::string &) const
virtual std::string readUntilEndOfInstruction (tokens_iterator &)
virtual real readDouble (SchemeBase &, tokens_iterator &)
virtual real readTime (SchemeBase &, tokens_iterator &)
virtual std::shared_ptr< Evolution > parseEvolution (SchemeBase &, const std::string &, tokens_iterator &)
 parse an evolution
virtual std::string readEvolutionType (tokens_iterator &)
 try to read the type of an evolution
virtual void readArrayOfSpecifiedSize (std::vector< real > &, SchemeBase &, tokens_iterator &)
virtual std::vector< real > readTimesArray (const std::string &m, SchemeBase &t, tokens_iterator &p)
bool treatKeyword (SchemeBase &, tokens_iterator &)
 treat the current keyword
std::vector< std::string > getKeyWordsList () const
Protected Member Functions inherited from tfel::utilities::CxxTokenizer
virtual void parseStream (std::istream &, Token::size_type &, const std::string &)
 tokenize the lines of a stream
virtual void splitLine (const std::string &, const Token::size_type)
virtual void parseChar (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type)
virtual void parseString (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char)
virtual void parseCComment (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type)
virtual void parseCxxComment (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type)
virtual void try_join (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char)
virtual void try_join (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const char, const char)
virtual void parseNumber (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type)
 read a number
virtual void parsePreprocessorDirective (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const std::string::const_iterator, const Token::size_type)
virtual void parseStandardLine (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const std::string::const_iterator, const Token::size_type)
virtual void parseRawString (Token::size_type &, std::string::const_iterator &, const std::string::const_iterator, const Token::size_type, const Token::size_type)
 read the contents of a raw string literal, which starts at the current iterator, past the opening R"delim( prefix
 CxxTokenizer ()
 default constructor
 CxxTokenizer (const CxxTokenizerOptions &)
 constructor with options
 CxxTokenizer (const std::string &)
 constructor from a file
 CxxTokenizer (const std::string &, const CxxTokenizerOptions &)
 constructor from a file
template<typename InputIterator>
void import (const InputIterator, const InputIterator)
 import the specified tokens
void parseString (const std::string &)
 analyse the string given all previous tokens are erased
void openFile (const std::string &)
 import the specified file
void printFileTokens (std::ostream &) const
 print the stored tokens to the specified stream
void setCStyleCommentOpened (const bool)
 assume that a C-style comment was opened at the beginning of the processing. This is usefull when parsing a file line by line
bool isCStyleCommentOpened () const
void setRawStringOpened (const bool)
 assume that a raw string was opened at the beginning of the processing.
void setRawStringDelimiter (std::string_view)
 set the raw string deliminter. This assume that a raw string was opened at the beginning of the processing, i.e. sets the rawStringOpened boolean to true.
bool isRawStringOpened () const
std::string getCurrentRawStringDelimiter () const noexcept
void stripComments ()
 remove all comment tokens
void clear ()
 clear the object
void treatCharAsString (const bool)
 set if char tokens shall be treated as string tokens
void keepCommentBoundaries (const bool)
 set if the comment boundaries must be left in the resulting tokens.
void treatDotAsSeparator (const bool)
 set if '.' shall be treated as as sperator
void treatPlusAsSeparator (const bool)
 set if '+' shall be treated as as sperator
void treatMinusAsSeparator (const bool)
 set if '-' shall be treated as as sperator
void mergeStrings (const bool)
 set if successive strings shall be merged
void extractNumbers (const bool)
 set if tokens shall be split to extract numbers
void addSeparator (const std::string &)
 add a new separator
void substitute (const std::map< std::string, std::string > &)
 apply the given substitutions by calling replace_all on the values hold by the standard and string tokens.
bool empty () const
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const
const Token & operator[] (const size_type) const
size_type size () const
virtual ~CxxTokenizer ()
 destructor
Protected Member Functions inherited from tfel::utilities::CxxTokenizerOptions
 CxxTokenizerOptions ()
 default constructor
 CxxTokenizerOptions (const CxxTokenizerOptions &)
 copy constructor
 CxxTokenizerOptions (CxxTokenizerOptions &&) noexcept
 move constructor
CxxTokenizerOptions & operator= (const CxxTokenizerOptions &)
 standard assignement
CxxTokenizerOptions & operator= (CxxTokenizerOptions &&) noexcept
 move assignement
 ~CxxTokenizerOptions ()
 destructor

Additional Inherited Members

Public Types inherited from mtest::SchemeParserBase
using tokens_iterator = TokensContainer::const_iterator
 a simple alias
Static Protected Member Functions inherited from tfel::utilities::CxxTokenizer
static bool isValidFunctionIdentifier (const std::string &, const bool=true)
static bool isValidIdentifier (std::string_view, const IsValidIdentifierOptions &)
static bool isValidIdentifier (std::string_view, const bool=true)
static void checkNotEndOfLine (const std::string &, const_iterator &, const const_iterator)
 an helper method throwing an exception if the given iterator is egal to the third argument (which shall point after the last token of the line)
static void checkNotEndOfLine (const std::string &, const std::string &, const_iterator &, const const_iterator)
 an helper method throwing an exception if the given iterator is egal to the fourth argument (which shall point after the last token of the line)
static void readSpecifiedToken (const std::string &, const std::string &, const_iterator &, const const_iterator)
 an helper method throwing an exception if the given iterator is egal to the fourth argument (which shall point after the last token of the line) or if the given token is not equal to the expected value
static unsigned int readUnsignedInt (const_iterator &, const const_iterator)
 an helper method to extract an unsigned int from the given token
static std::string readString (const_iterator &, const const_iterator)
 an helper method to extract a string from the given token
static std::vector< std::string > readArray (const std::string &, const_iterator &, const const_iterator)
 an helper method to extract a set of values from the given as an array
static void readArray (const std::string &, std::vector< std::string > &, const_iterator &, const const_iterator)
 an helper method to extract a set of values from the given as an array
static std::vector< Token > readList (const std::string &, const std::string &, const std::string &, const_iterator &, const const_iterator)
 extract a list of token
static void readList (std::vector< Token > &, const std::string &, const std::string &, const std::string &, const_iterator &, const const_iterator)
 extract a list of token
static std::vector< std::string > readStringArray (const_iterator &, const const_iterator)
 an helper method to extract a set of values from the given as an array
static double readDouble (const_iterator &, const const_iterator)
 an helper method to extract a double from the given token
static int readInt (const_iterator &, const const_iterator)
 an helper method to extract a int from the given token
Protected Attributes inherited from mtest::SchemeParserBase
std::shared_ptr< ExternalFunctionManager > externalFunctions
 external function imported through the @Import keyword
std::string file
 input file
Protected Attributes inherited from tfel::utilities::CxxTokenizer
std::vector< std::string > additional_separators
TokensContainer tokens
 list of tokens read
std::map< Token::size_type, std::string > comments
 store the comments which have been removed by the stripComments method. The key of the map is the line a comment starts on and the value is the values of the comments of this line, in the order they appear in the line, separated by a space character.
bool cStyleCommentOpened = false
 if true, a cStyle comment what opened when the last line treatment was finised
bool rawStringOpened = false
std::string currentRawStringDelimiter
 name of the current delimiter for a raw string
Protected Attributes inherited from tfel::utilities::CxxTokenizerOptions
bool bKeepCommentBoundaries = false
 if true, keep the comment boundaries
bool shallMergeStrings = false
 if true, successive strings are merged
bool allowStrayHashCharacter = false
 allow stray hash character
bool treatHashCharacterAsCommentDelimiter = false
 the hash character can start a comment, as in python, shell, etc..
bool allowStrayBackSlash = false
 allow stray backslash
bool treatPreprocessorDirectives = true
 treat preprocessor directives
bool treatStrings = true
 treat strings and characters If false, the ' and '"' are treated as indivdual tokens
bool treatNumbers = true
 extract number
bool treatCComments = true
 treat comments
bool treatCxxComments = true
 treat comments
bool joinCxxTwoCharactersSeparators = true
bool graveAccentAsSeparator = true
 strings and characters
bool charAsString = false
bool dotAsSeparator = true
 treat . as a separator
bool plusAsSeparator = true
 treat + as a separator
bool minusAsSeparator = true
 treat - as a separator
bool addCurlyBraces = false
 add curly braces at the beginning and at the end of the file

Detailed Description

class used to parse MTest file.

Constructor & Destructor Documentation

◆ MTestParser()

mtest::MTestParser::MTestParser ( )

default constructor

Member Function Documentation

◆ execute() [1/2]

void mtest::MTestParser::execute ( MTest & ,
const std::string & ,
const std::vector< std::string > & ,
const std::map< std::string, std::string > &  )

execute mtest parser on a file

Parameters
[out]tstructure to be filled
[in]ffile name
[in]ecmdsexternal commands
[in]ssubstitutions patterns inserted (those substitutions are given through command-line options such as --@YYY@=XXX)

◆ execute() [2/2]

void mtest::MTestParser::execute ( MTest & t)
protected

execute mtest parser after reading a file or parsing a string

Parameters
[out]t: structure to be filled

◆ getKeyWordsList()

std::vector< std::string > mtest::MTestParser::getKeyWordsList ( ) const
nodiscard
Returns
the list of keywords

◆ handleCohesiveForce()

virtual void mtest::MTestParser::handleCohesiveForce ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @CohesiveForce keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleCohesiveForceEpsilon()

virtual void mtest::MTestParser::handleCohesiveForceEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @CohesiveForceEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleCompareToNumericalTangentOperator()

virtual void mtest::MTestParser::handleCompareToNumericalTangentOperator ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @CompareToNumericalTangentOperator keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleDeformationGradient()

virtual void mtest::MTestParser::handleDeformationGradient ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @DeformationGradient keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleDeformationGradientEpsilon()

virtual void mtest::MTestParser::handleDeformationGradientEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @DeformationGradientEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleEvent()

virtual void mtest::MTestParser::handleEvent ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @Event keyword

Parameters
[in,out]p: position in the input file

◆ handleGradient()

virtual void mtest::MTestParser::handleGradient ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @Gradient keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleGradientEpsilon()

virtual void mtest::MTestParser::handleGradientEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @GradientEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedCohesiveForce()

virtual void mtest::MTestParser::handleImposedCohesiveForce ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedCohesiveForce keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedDeformationGradient()

virtual void mtest::MTestParser::handleImposedDeformationGradient ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedDeformationGradient keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedGradient()

virtual void mtest::MTestParser::handleImposedGradient ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedGradient keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedOpeningDisplacement()

virtual void mtest::MTestParser::handleImposedOpeningDisplacement ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedOpeningDisplacement keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedStrain()

virtual void mtest::MTestParser::handleImposedStrain ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @NonLinearConstraint`` keyword \param[in,out] t: MTest object to be configured \param[in,out] p: position in the input file */ virtual void handleNonLinearConstraint(MTest&, tokens_iterator&); /*! \brief handle the @ImposedStrain keyword \param[in,out] t: MTest` object to be configured

Parameters
[in,out]pposition in the input file

◆ handleImposedStress()

virtual void mtest::MTestParser::handleImposedStress ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedStress keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleImposedThermodynamicForce()

virtual void mtest::MTestParser::handleImposedThermodynamicForce ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ImposedThermodynamicForce keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleModellingHypothesis()

virtual void mtest::MTestParser::handleModellingHypothesis ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ModellingHypothesis keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleNumericalTangentOperatorPerturbationValue()

virtual void mtest::MTestParser::handleNumericalTangentOperatorPerturbationValue ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @NumericalTangentOperatorPerturbationValue keyword.

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleOpeningDisplacement()

virtual void mtest::MTestParser::handleOpeningDisplacement ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @OpeningDisplacement keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleOpeningDisplacementEpsilon()

virtual void mtest::MTestParser::handleOpeningDisplacementEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @OpeningDisplacementEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handlePrintLagrangeMultipliers()

virtual void mtest::MTestParser::handlePrintLagrangeMultipliers ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @PrintLagrangeMultipliers keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleRotationMatrix()

virtual void mtest::MTestParser::handleRotationMatrix ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @RotationMatrix keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleStrain()

virtual void mtest::MTestParser::handleStrain ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @Strain keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleStrainEpsilon()

virtual void mtest::MTestParser::handleStrainEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @StrainEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleStress()

virtual void mtest::MTestParser::handleStress ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @Stress keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleStressEpsilon()

virtual void mtest::MTestParser::handleStressEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @StressEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleTangentOperatorComparisonCriterion()

virtual void mtest::MTestParser::handleTangentOperatorComparisonCriterion ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @TangentOperatorComparisonCriterium keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleTest()

virtual void mtest::MTestParser::handleTest ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @Test keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleThermodynamicForce()

virtual void mtest::MTestParser::handleThermodynamicForce ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ThermodynamicForce keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleThermodynamicForceEpsilon()

virtual void mtest::MTestParser::handleThermodynamicForceEpsilon ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @ThermodynamicForceEpsilon keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ handleUserDefinedPostProcessing()

virtual void mtest::MTestParser::handleUserDefinedPostProcessing ( MTest & ,
tokens_iterator &  )
protectedvirtual

handle the @UserDefinedPostProcessing keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

◆ parseString()

void mtest::MTestParser::parseString ( MTest & ,
const std::string &  )

execute mtest parser on a string

Parameters
[in]s: string

◆ readConstraintOptions()

ConstraintOptions mtest::MTestParser::readConstraintOptions ( const std::string & ,
tokens_iterator &  )
protected

read the options associated with a constraint

Parameters
[in]mcalling method
[in,out]pposition in the input file

◆ registerCallBacks()

void mtest::MTestParser::registerCallBacks ( )
finalprotectedvirtual

register the call backs associated with each command

Note
this method is declared final to be callable in MTestParser's constructor safely

Reimplemented from mtest::SchemeParserBase.

◆ treatKeyword()

bool mtest::MTestParser::treatKeyword ( MTest & ,
tokens_iterator &  )
protected

treat the current keyword

Parameters
[in,out]tMTest object to be configured
[in,out]pposition in the input file

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