|
tfel
|
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 > >()) |
This file defines the Eshelby tensor for an ellipsoidal inclusion embedded in an isotropic matrix.
| 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)
| real | underlying type |
| [in] | nu | Poisson's ratio of the matrix |
| [in] | e | aspect ratio of the ellipsoid (e>1 : prolate, e<1 : oblate) |
| [in] | precf,precd,precld | default 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).
| 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
| StressType | type of the elastic constants |
| [in] | IM0 | isotropic moduli of the matrix |
| 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.
| StressType | type of the elastic constants |
| [in] | young | Young modulus of the matrix |
| [in] | nu | Poisson's ratio of the matrix |
| [in] | n_a | direction of the principal axis |
| [in] | e | aspect ratio of the ellipsoid (e>1 : prolate, e<1 : oblate) |
| [in] | precf,precd,precld | default 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). |
| 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
| real | underlying type |
| [in] | nu | Poisson's ratio of the matrix |
| 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.
| StressType | type of the elastic constants |
| [in] | IM_0 | Isotropic Moduli of the matrix |
| 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
| [in] | nu | Poisson's ratio of the matrix |
| [in] | a | length of the first semi-axis |
| [in] | b | length of the second semi-axis |
| [in] | c | length of the third semi-axis |
| [in] | precision | default 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).
| 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
| StressType | type of the elastic constants |
| [in] | IM0 | isotropic moduli of the matrix |
| [in] | n_a | direction of the principal axis whose length is \(a\) |
| [in] | a | length of semi-axis relative to the direction \(n_a\) |
| [in] | n_b | direction of the principal axis whose length is \(b\) |
| [in] | b | length of semi-axis relative to the direction \(n_b\) |
| [in] | c | length of the remaining semi-axis |
| [in] | precision | default 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. |
| 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.
| StressType | type of the elastic constants |
| [in] | young | Young modulus of the matrix |
| [in] | nu | Poisson's ratio of the matrix |
| [in] | n_a | direction of the principal axis whose length is \(a\) |
| [in] | a | length of semi-axis relative to the direction \(n_a\) |
| [in] | n_b | direction of the principal axis whose length is \(b\) |
| [in] | b | length of semi-axis relative to the direction \(n_b\) |
| [in] | c | length of the remaining semi-axis |
| [in] | precision | default 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. |
| 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
| real | underlying type |
| [in] | nu | Poisson's ratio of the matrix |
| [in] | e | aspect ratio of the elliptic basis |
| 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.
| StressType | type of the elastic constants |
| [in] | IM_0 | Isotropic Moduli of the matrix |
| [in] | n_a | direction of the principal axis whose length is \(a\) |
| [in] | a | length of semi-axis relative to the direction \(n_a\) |
| [in] | b | length of semi-axis relative to the other direction |
| 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.
| real | underlying type |
| [in] | nu | Poisson's ratio of the matrix |
| 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
| StressType | type of the elastic constants |
| [in] | IM0 | isotropic moduli of the matrix |
| 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.
| StressType | type of the elastic constants |
| [in] | young | Young modulus of the matrix |
| [in] | nu | Poisson's ratio of the matrix |