MGIS 3.1.0
Loading...
Searching...
No Matches
Mechanics.ixx File Reference

Implementation of the finite strain tangent operator conversion declared in MGIS/Function/TFEL/Mechanics.hxx: the ConvertFiniteStrainStiffnessEvaluator evaluator, the associated modifier generator and the convert_finite_strain_stiffness function. More...

Classes

struct  mgis::function::internals::ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType >
 evaluator computing a finite strain tangent operator from a tangent operator of another kind, given two deformation gradients and the Cauchy stress More...
struct  mgis::function::internals::ConvertFiniteStrainStiffnessModifierGenerator< N, ResultFlag, SourceFlag, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType >
 modifier which, applied to an evaluator returning a tangent operator of kind SourceFlag, builds a ConvertFiniteStrainStiffnessEvaluator converting it into a tangent operator of kind ResultFlag More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
constexpr bool mgis::function::internals::check (AbstractErrorHandler &eh, const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > &e)
 perform consistency checks on a finite strain stiffness conversion evaluator
template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
constexpr mgis::size_type mgis::function::internals::getNumberOfComponents (const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > &) MGIS_NOEXCEPT
 return the number of components of a finite strain stiffness conversion evaluator
template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
decltype(auto) mgis::function::internals::getSpace (const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > &e)
 return the space of a finite strain stiffness conversion evaluator
template<FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
constexpr auto mgis::function::convert_finite_strain_stiffness (const DeformationGradientEvaluatorType0 &, const DeformationGradientEvaluatorType1 &, const CauchyStressEvaluatorType &)
 create a modifier converting a finite strain tangent operator computed by an evaluator into another kind of tangent operator

Detailed Description

Implementation of the finite strain tangent operator conversion declared in MGIS/Function/TFEL/Mechanics.hxx: the ConvertFiniteStrainStiffnessEvaluator evaluator, the associated modifier generator and the convert_finite_strain_stiffness function.

Author
Thomas Helfer
Date
02/05/2025

Function Documentation

◆ check()

template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
bool mgis::function::internals::check ( AbstractErrorHandler & eh,
const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > & e )
nodiscardconstexpr

perform consistency checks on a finite strain stiffness conversion evaluator

Template Parameters
Nspace dimension (1, 2 or 3)
ResultFlagkind of the tangent operator returned by the evaluator
SourceFlagkind of the tangent operator taken as input
StiffnessEvaluatortype of the evaluator providing the tangent operator to convert
DeformationGradientEvaluatorType0type of the evaluator providing the first deformation gradient
DeformationGradientEvaluatorType1type of the evaluator providing the second deformation gradient
CauchyStressEvaluatorTypetype of the evaluator providing the Cauchy stress
Parameters
[in]eherror handler used to report the errors
[in]econversion evaluator
Returns
true if the conversion evaluator is valid

◆ convert_finite_strain_stiffness()

template<FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
auto mgis::function::convert_finite_strain_stiffness ( const DeformationGradientEvaluatorType0 & F0,
const DeformationGradientEvaluatorType1 & F1,
const CauchyStressEvaluatorType & s )
constexpr

create a modifier converting a finite strain tangent operator computed by an evaluator into another kind of tangent operator

definition of the convert_finite_strain_stiffness function declared in MGIS/Function/TFEL/Mechanics.hxx

The conversion is performed by tfel::material::convert<ResultFlag, SourceFlag, N> and generally requires the two deformation gradients and the Cauchy stress at the integration point considered. The returned object is a modifier to be applied, using operator|, to an evaluator returning a tangent operator of kind SourceFlag.

Template Parameters
ResultFlagkind of the tangent operator to be returned
SourceFlagkind of the tangent operator taken as input
DeformationGradientEvaluatorType0type of the evaluator providing the first deformation gradient
DeformationGradientEvaluatorType1type of the evaluator providing the second deformation gradient
CauchyStressEvaluatorTypetype of the evaluator providing the Cauchy stress
Parameters
[in]F0evaluator used to compute the first deformation gradient
[in]F1evaluator used to compute the second deformation gradient
[in]sevaluator used to compute the Cauchy stress
Returns
a modifier converting the tangent operators it is applied to

The space dimension N is deduced from that of the first deformation gradient evaluator; the second deformation gradient and the Cauchy stress must have the same dimension, which is enforced by static_assert.

Template Parameters
ResultFlagkind of the tangent operator to be returned
SourceFlagkind of the tangent operator taken as input
DeformationGradientEvaluatorType0type of the evaluator providing the first deformation gradient
DeformationGradientEvaluatorType1type of the evaluator providing the second deformation gradient
CauchyStressEvaluatorTypetype of the evaluator providing the Cauchy stress
Parameters
[in]F0evaluator used to compute the first deformation gradient
[in]F1evaluator used to compute the second deformation gradient
[in]sevaluator used to compute the Cauchy stress
Returns
a modifier converting the tangent operators it is applied to

◆ getNumberOfComponents()

template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
mgis::size_type mgis::function::internals::getNumberOfComponents ( const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > & )
nodiscardconstexpr

return the number of components of a finite strain stiffness conversion evaluator

Template Parameters
Nspace dimension (1, 2 or 3)
ResultFlagkind of the tangent operator returned by the evaluator
SourceFlagkind of the tangent operator taken as input
StiffnessEvaluatortype of the evaluator providing the tangent operator to convert
DeformationGradientEvaluatorType0type of the evaluator providing the first deformation gradient
DeformationGradientEvaluatorType1type of the evaluator providing the second deformation gradient
CauchyStressEvaluatorTypetype of the evaluator providing the Cauchy stress
Parameters
[in]econversion evaluator
Returns
the number of components of a tangent operator of kind ResultFlag and dimension N

◆ getSpace()

template<unsigned short N, FiniteStrainStiffnessKind ResultFlag, FiniteStrainStiffnessKind SourceFlag, FourthOrderTensorEvaluatorConcept StiffnessEvaluator, TensorEvaluatorConcept DeformationGradientEvaluatorType0, TensorEvaluatorConcept DeformationGradientEvaluatorType1, StensorEvaluatorConcept CauchyStressEvaluatorType>
decltype(auto) mgis::function::internals::getSpace ( const ConvertFiniteStrainStiffnessEvaluator< N, ResultFlag, SourceFlag, StiffnessEvaluator, DeformationGradientEvaluatorType0, DeformationGradientEvaluatorType1, CauchyStressEvaluatorType > & e)
nodiscard

return the space of a finite strain stiffness conversion evaluator

Template Parameters
Nspace dimension (1, 2 or 3)
ResultFlagkind of the tangent operator returned by the evaluator
SourceFlagkind of the tangent operator taken as input
StiffnessEvaluatortype of the evaluator providing the tangent operator to convert
DeformationGradientEvaluatorType0type of the evaluator providing the first deformation gradient
DeformationGradientEvaluatorType1type of the evaluator providing the second deformation gradient
CauchyStressEvaluatorTypetype of the evaluator providing the Cauchy stress
Parameters
[in]econversion evaluator
Returns
the space on which the evaluator is defined