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

File which defines the mechanical operations which can be applied to evaluators returning tensorial values (hydrostatic_stress, vmis, principal_stress, from_pk1_to_cauchy, ...) and the convert_finite_strain_stiffness function converting finite strain tangent operators from one kind to another. More...

#include <type_traits>
#include "TFEL/Material/FiniteStrainBehaviourTangentOperator.hxx"
#include "MGIS/Function/Evaluator.hxx"
#include "MGIS/Function/TFEL/General.hxx"
#include "MGIS/Function/TFEL/Tensors.hxx"
#include "MGIS/Function/TFEL/Mechanics.ixx"

Classes

struct  mgis::function::internals::HydrostaticStressOperator
 callable object computing the hydrostatic stress, i.e. the mean normal stress, of a symmetric tensor, defined as trace(s) / 3 More...
struct  mgis::function::internals::VonMisesStressOperator
 callable object computing the von Mises stress of a symmetric tensor interpreted as a stress More...
struct  mgis::function::internals::FirstPiolaKirchhoffStressToCauchyStressOperator
 callable object converting a first Piola-Kirchhoff stress into a Cauchy stress given the deformation gradient More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Typedefs

using mgis::function::FiniteStrainStiffnessKind
 conversion of finite strain tangent operators

Functions

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

Variables

constexpr auto mgis::function::hydrostatic_stress
 modifier computing the hydrostatic stress (trace(s) / 3) of the symmetric tensorial values computed by an evaluator
constexpr auto mgis::function::vmis
 modifier computing the von Mises stress of the symmetric tensorial values computed by an evaluator
constexpr auto mgis::function::von_mises_stress = vmis
 alias for vmis, modifier computing the von Mises stress
template<tfel::math::stensor_common::EigenSolver esolver = tfel::math::stensor_common::TFELEIGENSOLVER>
constexpr auto mgis::function::principal_stress = eigen_values<esolver>
 modifier computing the principal stresses, i.e. the eigen values, of the symmetric tensorial values computed by an evaluator
constexpr auto mgis::function::from_pk1_to_cauchy
 modifier converting the first Piola-Kirchhoff stresses computed by an evaluator into Cauchy stresses, given an evaluator of the deformation gradient

Detailed Description

File which defines the mechanical operations which can be applied to evaluators returning tensorial values (hydrostatic_stress, vmis, principal_stress, from_pk1_to_cauchy, ...) and the convert_finite_strain_stiffness function converting finite strain tangent operators from one kind to another.

Author
Thomas Helfer
Date
02/05/2025

Typedef Documentation

◆ FiniteStrainStiffnessKind

Initial value:
tfel::material::FiniteStrainBehaviourTangentOperatorBase::Flag

conversion of finite strain tangent operators

Function Documentation

◆ 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

Variable Documentation

◆ from_pk1_to_cauchy

auto mgis::function::from_pk1_to_cauchy
inlineconstexpr
Initial value:
=
MGIS_HOST_DEVICE constexpr auto binary_operation_modifier2(CallableType)
create a helper from a callable object which is only used to deduce the type of the binary operation
Definition BinaryOperation.ixx:221
callable object converting a first Piola-Kirchhoff stress into a Cauchy stress given the deformation ...
Definition Mechanics.hxx:70

modifier converting the first Piola-Kirchhoff stresses computed by an evaluator into Cauchy stresses, given an evaluator of the deformation gradient

◆ hydrostatic_stress

auto mgis::function::hydrostatic_stress
inlineconstexpr
Initial value:
=
MGIS_HOST_DEVICE constexpr auto unary_operation_modifier2(CallableType)
create a modifier from a callable object which is only used to deduce the type of the unary operation
Definition UnaryOperation.ixx:108
callable object computing the hydrostatic stress, i.e. the mean normal stress, of a symmetric tensor,...
Definition Mechanics.hxx:38

modifier computing the hydrostatic stress (trace(s) / 3) of the symmetric tensorial values computed by an evaluator

◆ principal_stress

template<tfel::math::stensor_common::EigenSolver esolver = tfel::math::stensor_common::TFELEIGENSOLVER>
auto mgis::function::principal_stress = eigen_values<esolver>
inlineconstexpr

modifier computing the principal stresses, i.e. the eigen values, of the symmetric tensorial values computed by an evaluator

Template Parameters
esolvereigen solver used to compute the eigen values, which defaults to tfel::math::stensor_common::TFELEIGENSOLVER

◆ vmis

auto mgis::function::vmis
inlineconstexpr
Initial value:
=
callable object computing the von Mises stress of a symmetric tensor interpreted as a stress
Definition Mechanics.hxx:54

modifier computing the von Mises stress of the symmetric tensorial values computed by an evaluator