tfel
Loading...
Searching...
No Matches
IsotropicEshelbyTensor.ixx File Reference

This file defines the Eshelby tensor for an ellipsoidal inclusion embedded in an isotropic matrix. More...

#include <cmath>
#include <algorithm>
#include <type_traits>
#include <numbers>
#include <stdexcept>
#include "TFEL/Math/General/IEEE754.hxx"

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::material
 This namespace contains classes and functions related to mechanics and material description. The functionalities included in this namespace includes:
namespace  tfel::material::homogenization::elasticity::internals

Functions

template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, real > tfel::material::homogenization::elasticity::computeDiskPlaneStrainEshelbyTensor (const real &)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeDiskPlaneStrainHillTensor (const IsotropicModuli< StressType > &)
template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, real > tfel::material::homogenization::elasticity::computePlaneStrainEshelbyTensor (const real &, const real &)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computePlaneStrainHillTensor (const IsotropicModuli< StressType > &, const tfel::math::tvector< 2u, types::real< StressType > > &, const types::length< StressType > &, const types::length< StressType > &)
template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > tfel::material::homogenization::elasticity::computeSphereEshelbyTensor (const real &)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeSphereHillPolarisationTensor (const StressType &, const types::real< StressType > &)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeSphereHillPolarisationTensor (const IsotropicModuli< StressType > &)
template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > tfel::material::homogenization::elasticity::internals::convertEshelbyTensorFromDoublePrecision (const tfel::math::st2tost2< 3u, double > &S)
 convert an Eshelby tensor computed in double precision
template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > tfel::material::homogenization::elasticity::computeAxisymmetricalEshelbyTensor (const real &, const real &, const tfel::math::base_type< real >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< real > >())
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalHillPolarisationTensor (const StressType &, const types::real< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::real< StressType > &, const tfel::math::base_type< StressType >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< StressType > >())
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalHillPolarisationTensor (const IsotropicModuli< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::real< StressType > &, const tfel::math::base_type< StressType >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< StressType > >())
template<typename LengthType>
TFEL_HOST_DEVICE std::array< std::size_t, 3 > tfel::material::homogenization::elasticity::internals::sortEllipsoidLengths (const LengthType &a, const LengthType &b, const LengthType &c)
template<typename real>
TFEL_HOST_DEVICE tfel::math::tvector< 3u, real > tfel::material::homogenization::elasticity::internals::orthogonaliseEllipsoidAxes (const tfel::math::tvector< 3u, real > &n_a, const tfel::math::tvector< 3u, real > &n_b, const char *const msg="n_a and n_b not normals")
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeEshelbyTensor (const types::real< StressType > &, const types::length< StressType > &, const types::length< StressType > &, const types::length< StressType > &, const tfel::math::base_type< StressType >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< StressType > >())
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeHillPolarisationTensor (const StressType &, const types::real< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::length< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::length< StressType > &, const types::length< StressType > &, const tfel::math::base_type< StressType >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< StressType > >())
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeHillPolarisationTensor (const IsotropicModuli< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::length< StressType > &, const tfel::math::tvector< 3u, types::real< StressType > > &, const types::length< StressType > &, const types::length< StressType > &, const tfel::math::base_type< StressType >=tfel::material::EshelbyTolerances::get< tfel::math::base_type< StressType > >())

Detailed Description

This file defines the Eshelby tensor for an ellipsoidal inclusion embedded in an isotropic matrix.

Author
Antoine Martin
Date
15 October 2024

Function Documentation

◆ computeAxisymmetricalEshelbyTensor()

template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > tfel::material::homogenization::elasticity::computeAxisymmetricalEshelbyTensor ( const real & nu,
const real & e,
const tfel::math::base_type< real > precision = tfel::material::EshelbyTolerances::get< tfel::math::base_type<real>>() )

This function builds the Eshelby tensor of an axisymmetrical ellipsoid embedded in an isotropic matrix. The function returns the Eshelby tensor in the basis (e1,e2,e3) where e1 corresponds to (one of) the biggest ax(es)

Returns
an object of type st2tost2<3u,real>
Template Parameters
realunderlying type
Parameters
[in]nuPoisson's ratio of the matrix
[in]easpect ratio of the ellipsoid (e>1 : prolate, e<1 : oblate)
[in]precf,precd,preclddefault arguments which aim at preventing the numerical instability of the formula when the ellipsoid is almost a sphere. When the absolute value of (e-1) is below precf (resp. precd, precld) for real=float (resp. real= double, long double), the returned tensor is computeSphereEshelbyTensor(nu). Otherwise, in single precision, the tensor is computed in double precision.

The expressions can be found in Torquato, Random Heterogeneous Materials (2002).

◆ computeAxisymmetricalHillPolarisationTensor() [1/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalHillPolarisationTensor ( const IsotropicModuli< StressType > & IM0,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::real< StressType > & e,
const tfel::math::base_type< StressType > precision = tfel::material:: EshelbyTolerances::get<tfel::math::base_type<StressType>>() )

This function is an overload of computeAxisymmetricalHillPolarisationTensor with elastic moduli of IsotropicModuli<StressType> type

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]IM0isotropic moduli of the matrix

◆ computeAxisymmetricalHillPolarisationTensor() [2/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalHillPolarisationTensor ( const StressType & young,
const types::real< StressType > & nu,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::real< StressType > & e,
const tfel::math::base_type< StressType > precision = tfel::material:: EshelbyTolerances::get<tfel::math::base_type<StressType>>() )

This function builds the Hill tensor of an axisymmetrical ellipsoid embedded in an isotropic matrix. The function takes into account the orientation of the ellipsoid.

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]youngYoung modulus of the matrix
[in]nuPoisson's ratio of the matrix
[in]n_adirection of the principal axis
[in]easpect ratio of the ellipsoid (e>1 : prolate, e<1 : oblate)
[in]precf,precd,preclddefault arguments which aim at preventing the numerical instability of the formula when the ellipsoid is almost a sphere. When the absolute value of (e-1) is below precf (resp. precd, precld) for real=float (resp. real= double, long double), the returned tensor is computeSphereHillTensor(young,nu).

◆ computeDiskPlaneStrainEshelbyTensor()

template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, real > tfel::material::homogenization::elasticity::computeDiskPlaneStrainEshelbyTensor ( const real & nu)

This function builds the Eshelby tensor of a circular cylinder embedded in an isotropic matrix, considering a PLANE STRAIN modelling hypothesis

Returns
an object of type st2tost2<2u,real>
Template Parameters
realunderlying type
Parameters
[in]nuPoisson's ratio of the matrix

◆ computeDiskPlaneStrainHillTensor()

TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeDiskPlaneStrainHillTensor ( const IsotropicModuli< StressType > & IM_0)

This function builds the Hill tensor of a circular cylinder embedded in an isotropic matrix, considering a PLANE STRAIN modelling hypothesis. The Hill tensor gives the opposite of the uniform strain in the ellipsoid as a function of the imposed polarisation.

Returns
an object of type st2tost2<2u,compliance>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]IM_0Isotropic Moduli of the matrix

◆ computeEshelbyTensor()

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeEshelbyTensor ( const types::real< StressType > & nu,
const types::length< StressType > & a,
const types::length< StressType > & b,
const types::length< StressType > & c,
const tfel::math::base_type< StressType > precision = tfel::material:: EshelbyTolerances::get<tfel::math::base_type<StressType>>() )

This function builds the Eshelby tensor of a general ellipsoid embedded in an isotropic matrix. The function returns the Eshelby tensor in the basis (e1,e2,e3) where e1 (resp. e2, e3) is aligned with the axis with the first (resp. the second and third) biggest length

Returns
an object of type st2tost2<3u,real>
Parameters
[in]nuPoisson's ratio of the matrix
[in]alength of the first semi-axis
[in]blength of the second semi-axis
[in]clength of the third semi-axis
[in]precisiondefault arguments which aim at preventing the numerical instability of the formula when the ellipsoid is almost axisymmetrical. When the absolute value of the difference of two semi-axes, divided by the smallest semi-axis, is below precf (resp. precd, precld) for real=float (resp. real= double, long double), the returned tensor is computeAxisymmetricalEshelbyTensor. In single precision, the tensor is computed in double precision.

The expressions for the case of three distinct semi-axes can be found in Eshelby (1957).

◆ computeHillPolarisationTensor() [1/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeHillPolarisationTensor ( const IsotropicModuli< StressType > & IM0,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::length< StressType > & a,
const tfel::math::tvector< 3u, types::real< StressType > > & n_b,
const types::length< StressType > & b,
const types::length< StressType > & c,
const tfel::math::base_type< StressType > precision = tfel::material:: EshelbyTolerances::get<tfel::math::base_type<StressType>>() )

This function is an overload of computeHillPolarisationTensor with elastic moduli of IsotropicModuli<StressType> type

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]IM0isotropic moduli of the matrix
[in]n_adirection of the principal axis whose length is \(a\)
[in]alength of semi-axis relative to the direction \(n_a\)
[in]n_bdirection of the principal axis whose length is \(b\)
[in]blength of semi-axis relative to the direction \(n_b\)
[in]clength of the remaining semi-axis
[in]precisiondefault arguments which aim at preventing the numerical instability of the formula when the ellipsoid is almost axisymmetrical. When the absolute value of the difference of two semi-axes, divided by the smallest semi-axis, is below precf (resp. precd, precld) for real=float (resp. real= double, long double), the returned tensor is computeAxisymmetricalHillTensor.

◆ computeHillPolarisationTensor() [2/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeHillPolarisationTensor ( const StressType & young,
const types::real< StressType > & nu,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::length< StressType > & a,
const tfel::math::tvector< 3u, types::real< StressType > > & n_b,
const types::length< StressType > & b,
const types::length< StressType > & c,
const tfel::math::base_type< StressType > precision = tfel::material:: EshelbyTolerances::get<tfel::math::base_type<StressType>>() )

This function builds the Hill tensor of a general ellipsoid embedded in an isotropic matrix. The function takes into account the orientation of the ellipsoid.

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]youngYoung modulus of the matrix
[in]nuPoisson's ratio of the matrix
[in]n_adirection of the principal axis whose length is \(a\)
[in]alength of semi-axis relative to the direction \(n_a\)
[in]n_bdirection of the principal axis whose length is \(b\)
[in]blength of semi-axis relative to the direction \(n_b\)
[in]clength of the remaining semi-axis
[in]precisiondefault arguments which aim at preventing the numerical instability of the formula when the ellipsoid is almost axisymmetrical. When the absolute value of the difference of two semi-axes, divided by the smallest semi-axis, is below precf (resp. precd, precld) for real=float (resp. real= double, long double), the returned tensor is computeAxisymmetricalHillTensor.

◆ computePlaneStrainEshelbyTensor()

template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, real > tfel::material::homogenization::elasticity::computePlaneStrainEshelbyTensor ( const real & nu,
const real & e )

This function builds the Eshelby tensor of an elliptic cylinder embedded in an isotropic matrix, considering a PLANE STRAIN modelling hypothesis The function returns the Eshelby tensor in the basis (e1,e2) where e1 corresponds to the biggest axis

Returns
an object of type st2tost2<2u,real>
Template Parameters
realunderlying type
Parameters
[in]nuPoisson's ratio of the matrix
[in]easpect ratio of the elliptic basis

◆ computePlaneStrainHillTensor()

TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computePlaneStrainHillTensor ( const IsotropicModuli< StressType > & IM_0,
const tfel::math::tvector< 2u, types::real< StressType > > & n_a,
const types::length< StressType > & a,
const types::length< StressType > & b )

This function builds the Hill tensor of an elliptic cylinder embedded in an isotropic matrix, considering a PLANE STRAIN modelling hypothesis. The Hill tensor gives the opposite of the uniform strain in the ellipsoid as a function of the imposed polarisation.

Returns
an object of type st2tost2<2u,compliance>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]IM_0Isotropic Moduli of the matrix
[in]n_adirection of the principal axis whose length is \(a\)
[in]alength of semi-axis relative to the direction \(n_a\)
[in]blength of semi-axis relative to the other direction

◆ computeSphereEshelbyTensor()

template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > tfel::material::homogenization::elasticity::computeSphereEshelbyTensor ( const real & nu)

This function builds the Eshelby tensor of a sphere embedded in an isotropic matrix.

Returns
an object of type st2tost2<3u,real>
Template Parameters
realunderlying type
Parameters
[in]nuPoisson's ratio of the matrix

◆ computeSphereHillPolarisationTensor() [1/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeSphereHillPolarisationTensor ( const IsotropicModuli< StressType > & IM0)

This function is an overload of computeSphereHillPolarisationTensor with elastic moduli of IsotropicModuli<StressType> type

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]IM0isotropic moduli of the matrix

◆ computeSphereHillPolarisationTensor() [2/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::compliance< StressType > > tfel::material::homogenization::elasticity::computeSphereHillPolarisationTensor ( const StressType & young,
const types::real< StressType > & nu )

This function builds the Hill tensor of a sphere embedded in an isotropic matrix.

Returns
an object of type st2tost2<3u,compliance<StressType>>
Template Parameters
StressTypetype of the elastic constants
Parameters
[in]youngYoung modulus of the matrix
[in]nuPoisson's ratio of the matrix