tfel
Loading...
Searching...
No Matches
castem::CastemInterfaceExceptions Class Reference

Base class for castem interfaces. More...

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

Inheritance diagram for castem::CastemInterfaceExceptions:
castem::CastemInterface< H, Behaviour >

Static Public Member Functions

static void throwUnMatchedNumberOfMaterialProperties (const std::string_view, const unsigned short n1, const CastemInt n2)
 throw an CastemException. 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 CastemInt n2)
 throw an CastemException. 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 treatCastemException (const std::string_view, const CastemException &)
 display the error message out of an CastemException 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 an CastemException if the time step is negative
static void throwBehaviourIntegrationFailedException (const std::string_view)
 throw an CastemException if the behaviour integration failed
static void throwMaximumNumberOfSubSteppingReachedException (const std::string_view)
 throw an CastemException if the maximum number of sub stepping has been reached
static void throwPlaneStressMaximumNumberOfIterationsReachedException (const std::string_view)
 throw an CastemException if the maximum number of sub stepping has been reached
static void throwInvalidDDSDDEException (const std::string_view, const CastemReal)
 throw an CastemException if the DDSDDE parameter is invalid
static void throwTangentOperatorNotAvailableThroughGenericPlaneStressHandler (const std::string_view)
 throw an CastemException when a tanget operator is requested in the generic plane stress handler
static void throwPredictionComputationFailedException (const std::string_view)
 throw an AsterException if the prediction computation failed
static void throwConsistentTangentOperatorIsNotAvalaible (const std::string_view)
 throw an AsterException 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 an AsterException if the a prediction operator has to been requested and that the behaviour does not provide one.
static void checkNTENSValue (const CastemInt, const unsigned short)
 throw an error message if the value of the NTENS parameter is not valid
static void throwBehaviourInitializationFailed (const std::string_view)
 display an error message if the initialization of the behaviour failed
static void throwInvalidBehaviourTypeAndModellingHypothesis (const CastemBehaviourType, const std::string_view)
 throw an error message if the behaviour type is not supported for the given hypothesis
static void throwUnsupportedStressFreeExpansionException (const std::string_view)
 display an error message if the behaviour shall handle stress free expansion and that the castem interface can't
static void throwThermalExpansionCoefficientShallBeNull (const std::string_view)
 display an error message if the thermal expansion is not null
static void displayInvalidModellingHypothesisErrorMessage ()
 display an error message if the value of the NDI parameter is not valid

Detailed Description

Base class for castem interfaces.

Author
Thomas Helfer
Date
12/12/2011

Member Function Documentation

◆ checkNTENSValue()

void castem::CastemInterfaceExceptions::checkNTENSValue ( const CastemInt ,
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

◆ throwBehaviourInitializationFailed()

void castem::CastemInterfaceExceptions::throwBehaviourInitializationFailed ( const std::string_view )
static

display an error message if the initialization of the behaviour failed

Parameters
[in]b: behaviour name

◆ throwBehaviourIntegrationFailedException()

void castem::CastemInterfaceExceptions::throwBehaviourIntegrationFailedException ( const std::string_view )
static

throw an CastemException if the behaviour integration failed

Parameters
[in]b: behaviour name

◆ throwConsistentTangentOperatorIsNotAvalaible()

void castem::CastemInterfaceExceptions::throwConsistentTangentOperatorIsNotAvalaible ( const std::string_view )
static

throw an AsterException 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 castem::CastemInterfaceExceptions::throwInvalidBehaviourTypeAndModellingHypothesis ( const CastemBehaviourType ,
const std::string_view  )
static

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

Parameters
[in]type: behaviour type
[in]H: hypothesis

◆ throwInvalidDDSDDEException()

void castem::CastemInterfaceExceptions::throwInvalidDDSDDEException ( const std::string_view ,
const CastemReal  )
static

throw an CastemException if the DDSDDE parameter is invalid

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

◆ throwMaximumNumberOfSubSteppingReachedException()

void castem::CastemInterfaceExceptions::throwMaximumNumberOfSubSteppingReachedException ( const std::string_view )
static

throw an CastemException if the maximum number of sub stepping has been reached

Parameters
[in]b: behaviour name

◆ throwNegativeTimeStepException()

void castem::CastemInterfaceExceptions::throwNegativeTimeStepException ( const std::string_view )
static

throw an CastemException if the time step is negative

Parameters
[in]b: behaviour name

◆ throwPlaneStressMaximumNumberOfIterationsReachedException()

void castem::CastemInterfaceExceptions::throwPlaneStressMaximumNumberOfIterationsReachedException ( const std::string_view )
static

throw an CastemException if the maximum number of sub stepping has been reached

Parameters
[in]b: behaviour name

◆ throwPredictionComputationFailedException()

void castem::CastemInterfaceExceptions::throwPredictionComputationFailedException ( const std::string_view )
static

throw an AsterException if the prediction computation failed

Parameters
[in]b: behaviour name

◆ throwPredictionOperatorIsNotAvalaible()

void castem::CastemInterfaceExceptions::throwPredictionOperatorIsNotAvalaible ( const std::string_view )
static

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

Parameters
[in]b: behaviour name

◆ throwTangentOperatorNotAvailableThroughGenericPlaneStressHandler()

void castem::CastemInterfaceExceptions::throwTangentOperatorNotAvailableThroughGenericPlaneStressHandler ( const std::string_view )
static

throw an CastemException when a tanget operator is requested in the generic plane stress handler

Parameters
[in]b: behaviour name

◆ throwThermalExpansionCoefficientShallBeNull()

void castem::CastemInterfaceExceptions::throwThermalExpansionCoefficientShallBeNull ( const std::string_view )
static

display an error message if the thermal expansion is not null

Parameters
[in]b: behaviour name

◆ throwUnMatchedNumberOfMaterialProperties()

void castem::CastemInterfaceExceptions::throwUnMatchedNumberOfMaterialProperties ( const std::string_view ,
const unsigned short n1,
const CastemInt n2 )
static

throw an CastemException. 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 castem::CastemInterfaceExceptions::throwUnMatchedNumberOfStateVariables ( const std::string_view ,
const unsigned short n1,
const CastemInt n2 )
static

throw an CastemException. 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 castem::CastemInterfaceExceptions::throwUnsupportedStressFreeExpansionException ( const std::string_view )
static

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

Parameters
[in]b: behaviour name

◆ treatCastemException()

void castem::CastemInterfaceExceptions::treatCastemException ( const std::string_view ,
const CastemException &  )
static

display the error message out of an CastemException to the standard output.

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

◆ treatMaterialException()

void castem::CastemInterfaceExceptions::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 castem::CastemInterfaceExceptions::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 castem::CastemInterfaceExceptions::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 castem::CastemInterfaceExceptions::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: