tfel
Loading...
Searching...
No Matches
cyrano::CyranoInterfaceExceptions Class Reference

Base class for cyrano interfaces. More...

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

Inheritance diagram for cyrano::CyranoInterfaceExceptions:
cyrano::CyranoInterface< Behaviour >

Static Public Member Functions

static void throwUnMatchedNumberOfMaterialProperties (const std::string_view, const unsigned short n1, const CyranoInt n2)
 throw a CyranoException. This method shall be called when the number of materials properties declared by the beahviour and the number of materials properties declared by the interface does not match.
static void throwUnMatchedNumberOfStateVariables (const std::string_view, const unsigned short n1, const CyranoInt n2)
 throw a CyranoException. This method shall be called when the number of state variables declared by the beahviour and the number of state variables declared by the interface does not match.
static void treatCyranoException (const std::string_view, const CyranoException &)
 display the error message out of a CyranoException to the standard output.
static void treatMaterialException (const std::string_view, const tfel::material::MaterialException &)
 display the error message out of a material exception to the standard output.
static void treatTFELException (const std::string_view, const tfel::exception::TFELException &)
 display the error message out of a generic tfel exception to the standard output.
static void treatStandardException (const std::string_view, const std::exception &)
 display the error message out of a generic standard exception to the standard output.
static void treatUnknownException (const std::string_view)
 display the error message when an unknown exception is caught
static void throwNegativeTimeStepException (const std::string_view)
 throw a CyranoException if the time step is negative
static void throwBehaviourIntegrationFailedException (const std::string_view)
 throw a CyranoException if the behaviour integration failed
static void throwMaximumNumberOfSubSteppingReachedException (const std::string_view)
 throw a CyranoException if the maximum number of sub stepping has been reached
static void throwPlaneStressMaximumNumberOfIterationsReachedException (const std::string_view)
 throw a CyranoException if the maximum number of sub stepping has been reached
static void throwInvalidDDSOEException (const std::string_view, const CyranoReal)
 throw a CyranoException if the DDSOE parameter is invalid
static void throwBehaviourInitializationFailedException (const std::string_view)
 throw a CyranoException if the behaviour initialization failed
static void throwPredictionComputationFailedException (const std::string_view)
 throw a CyranoException if the prediction computation failed
static void throwConsistentTangentOperatorIsNotAvalaible (const std::string_view)
 throw a CyranoException if the a consistent tangent operator has to been requested and that the behaviour does not provide one.
static void throwPredictionOperatorIsNotAvalaible (const std::string_view)
 throw a CyranoException if the a prediction operator has to been requested and that the behaviour does not provide one.
static void throwUnsupportedStressFreeExpansionException (const std::string_view)
 display an error message if the behaviour shall handle stress free expansion and that the cyrano interface can't
static void throwThermalExpansionCoefficientShallBeNull (const std::string_view)
 display an error message if the thermal expansion is not null
static void checkNTENSValue (const CyranoInt, const unsigned short)
 throw an error message if the value of the NTENS parameter is not valid
static void throwInvalidBehaviourTypeAndModellingHypothesis (const std::string_view)
 throw an error message if the behaviour type is not supported for the given hypothesis
static void displayInvalidModellingHypothesisErrorMessage ()
 display an error message if the value of the NDI parameter is not valid

Detailed Description

Base class for cyrano interfaces.

Author
Thomas Helfer
Date
12/12/2011

Member Function Documentation

◆ checkNTENSValue()

void cyrano::CyranoInterfaceExceptions::checkNTENSValue ( const CyranoInt ,
const unsigned short  )
static

throw an error message if the value of the NTENS parameter is not valid

Parameters
[in]NTENS: NTENS value
[in]s: expected size

◆ throwBehaviourInitializationFailedException()

void cyrano::CyranoInterfaceExceptions::throwBehaviourInitializationFailedException ( const std::string_view )
static

throw a CyranoException if the behaviour initialization failed

Parameters
[in]b: behaviour name

◆ throwBehaviourIntegrationFailedException()

void cyrano::CyranoInterfaceExceptions::throwBehaviourIntegrationFailedException ( const std::string_view )
static

throw a CyranoException if the behaviour integration failed

Parameters
[in]b: behaviour name

◆ throwConsistentTangentOperatorIsNotAvalaible()

void cyrano::CyranoInterfaceExceptions::throwConsistentTangentOperatorIsNotAvalaible ( const std::string_view )
static

throw a CyranoException if the a consistent tangent operator has to been requested and that the behaviour does not provide one.

Parameters
[in]b: behaviour name

◆ throwInvalidBehaviourTypeAndModellingHypothesis()

void cyrano::CyranoInterfaceExceptions::throwInvalidBehaviourTypeAndModellingHypothesis ( const std::string_view )
static

throw an error message if the behaviour type is not supported for the given hypothesis

Parameters
[in]H: hypothesis

◆ throwInvalidDDSOEException()

void cyrano::CyranoInterfaceExceptions::throwInvalidDDSOEException ( const std::string_view ,
const CyranoReal  )
static

throw a CyranoException if the DDSOE parameter is invalid

Parameters
[in]b: behaviour name
[in]v: DDSOE value

◆ throwMaximumNumberOfSubSteppingReachedException()

void cyrano::CyranoInterfaceExceptions::throwMaximumNumberOfSubSteppingReachedException ( const std::string_view )
static

throw a CyranoException if the maximum number of sub stepping has been reached

Parameters
[in]b: behaviour name

◆ throwNegativeTimeStepException()

void cyrano::CyranoInterfaceExceptions::throwNegativeTimeStepException ( const std::string_view )
static

throw a CyranoException if the time step is negative

Parameters
[in]b: behaviour name

◆ throwPlaneStressMaximumNumberOfIterationsReachedException()

void cyrano::CyranoInterfaceExceptions::throwPlaneStressMaximumNumberOfIterationsReachedException ( const std::string_view )
static

throw a CyranoException if the maximum number of sub stepping has been reached

Parameters
[in]b: behaviour name

◆ throwPredictionComputationFailedException()

void cyrano::CyranoInterfaceExceptions::throwPredictionComputationFailedException ( const std::string_view )
static

throw a CyranoException if the prediction computation failed

Parameters
[in]b: behaviour name

◆ throwPredictionOperatorIsNotAvalaible()

void cyrano::CyranoInterfaceExceptions::throwPredictionOperatorIsNotAvalaible ( const std::string_view )
static

throw a CyranoException if the a prediction operator has to been requested and that the behaviour does not provide one.

Parameters
[in]b: behaviour name

◆ throwThermalExpansionCoefficientShallBeNull()

void cyrano::CyranoInterfaceExceptions::throwThermalExpansionCoefficientShallBeNull ( const std::string_view )
static

display an error message if the thermal expansion is not null

Parameters
[in]b: behaviour name

◆ throwUnMatchedNumberOfMaterialProperties()

void cyrano::CyranoInterfaceExceptions::throwUnMatchedNumberOfMaterialProperties ( const std::string_view ,
const unsigned short n1,
const CyranoInt n2 )
static

throw a CyranoException. This method shall be called when the number of materials properties declared by the beahviour and the number of materials properties declared by the interface does not match.

Parameters
[in]b: behaviour name
[in]n1: number of material properties declared by the behaviour
[in]n2: number of material properties declared by the interface

◆ throwUnMatchedNumberOfStateVariables()

void cyrano::CyranoInterfaceExceptions::throwUnMatchedNumberOfStateVariables ( const std::string_view ,
const unsigned short n1,
const CyranoInt n2 )
static

throw a CyranoException. This method shall be called when the number of state variables declared by the beahviour and the number of state variables declared by the interface does not match.

Parameters
[in]b: behaviour name
[in]n1: number of state variables declared by the behaviour
[in]n2: number of state variables declared by the interface

◆ throwUnsupportedStressFreeExpansionException()

void cyrano::CyranoInterfaceExceptions::throwUnsupportedStressFreeExpansionException ( const std::string_view )
static

display an error message if the behaviour shall handle stress free expansion and that the cyrano interface can't

Parameters
[in]b: behaviour name

◆ treatCyranoException()

void cyrano::CyranoInterfaceExceptions::treatCyranoException ( const std::string_view ,
const CyranoException &  )
static

display the error message out of a CyranoException to the standard output.

Parameters
[in]b: behaviour name
[in]e: the CyranoException to be treated

◆ treatMaterialException()

void cyrano::CyranoInterfaceExceptions::treatMaterialException ( const std::string_view ,
const tfel::material::MaterialException &  )
static

display the error message out of a material exception to the standard output.

Parameters
[in]b: behaviour name
[in]e: the material exception to be treated

◆ treatStandardException()

void cyrano::CyranoInterfaceExceptions::treatStandardException ( const std::string_view ,
const std::exception &  )
static

display the error message out of a generic standard exception to the standard output.

Parameters
[in]b: behaviour name
[in]e: the exception to be treated

◆ treatTFELException()

void cyrano::CyranoInterfaceExceptions::treatTFELException ( const std::string_view ,
const tfel::exception::TFELException &  )
static

display the error message out of a generic tfel exception to the standard output.

Parameters
[in]b: behaviour name
[in]e: the exception to be treated

◆ treatUnknownException()

void cyrano::CyranoInterfaceExceptions::treatUnknownException ( const std::string_view )
static

display the error message when an unknown exception is caught

Parameters
[in]b: behaviour name

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