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

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

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

Classes

struct  tfel::material::homogenization::elasticity::IsotropicLocalisationTensor< 2u, StressType >
struct  tfel::material::homogenization::elasticity::IsotropicLocalisationTensor< 3u, StressType >

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<unsigned short int N, tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< N, types::real< StressType > > tfel::material::homogenization::elasticity::internals::computeLocalisationTensorBase (tfel::math::st2tost2< N, StressType > &C_0, const tfel::math::st2tost2< N, tfel::types::compliance< StressType > > &P0, const tfel::math::st2tost2< N, StressType > &C_i)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::real< StressType > > tfel::material::homogenization::elasticity::computeDiskPlaneStrainLocalisationTensor (const IsotropicModuli< StressType > &, const tfel::math::st2tost2< 2u, StressType > &)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< 2u, types::real< StressType > > tfel::material::homogenization::elasticity::computePlaneStrainLocalisationTensor (const IsotropicModuli< StressType > &, const tfel::math::st2tost2< 2u, StressType > &, const tfel::math::tvector< 2u, types::real< StressType > > &, const types::length< StressType > &, const types::length< StressType > &)
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::computeSphereLocalisationTensor (const StressType &, const types::real< StressType > &, 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::real< StressType > > tfel::material::homogenization::elasticity::computeSphereLocalisationTensor (const IsotropicModuli< StressType > &, const IsotropicModuli< StressType > &)
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::computeAxisymmetricalEllipsoidLocalisationTensor (const StressType &, const types::real< StressType > &, const StressType &, const types::real< StressType > &, const tfel::math::tvector< 3u, types::real< 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::real< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalEllipsoidLocalisationTensor (const IsotropicModuli< StressType > &, const IsotropicModuli< StressType > &, const tfel::math::tvector< 3u, types::real< 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::real< StressType > > tfel::material::homogenization::elasticity::computeEllipsoidLocalisationTensor (const IsotropicModuli< StressType > &, const tfel::math::st2tost2< 3u, 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 > &)
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::computeEllipsoidLocalisationTensor (const StressType &, const types::real< StressType > &, 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 > &)
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::computeEllipsoidLocalisationTensor (const IsotropicModuli< StressType > &, 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 > &)
template<unsigned short int N, tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< N, types::real< StressType > > tfel::material::homogenization::elasticity::computeIsotropicLocalisationTensor (const IsotropicModuli< StressType > &, const tfel::math::st2tost2< N, StressType > &, const tfel::math::tvector< N, types::real< StressType > > &, const tfel::math::tvector< N, types::real< StressType > > &, const std::array< types::length< StressType >, N > &)

Detailed Description

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

Author
Antoine Martin
Date
18 June 2025

Function Documentation

◆ computeAxisymmetricalEllipsoidLocalisationTensor() [1/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalEllipsoidLocalisationTensor ( const IsotropicModuli< StressType > & IM0,
const IsotropicModuli< StressType > & IM_i,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::real< StressType > & e )

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

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM0isotropic moduli of the matrix
[in]IM_iisotropic moduli of the inclusions
[in]n_adirection of the axis of the ellipsoid (whose semi-length is \(a\))
[in]alength of semi-axis relative to the direction \(n_a\)

◆ computeAxisymmetricalEllipsoidLocalisationTensor() [2/2]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeAxisymmetricalEllipsoidLocalisationTensor ( const StressType & young,
const types::real< StressType > & nu,
const StressType & young_i,
const types::real< StressType > & nu_i,
const tfel::math::tvector< 3u, types::real< StressType > > & n_a,
const types::real< StressType > & e )

This function builds the strain localisation tensor of an axisymmetrical ellipsoid with a general elasticity, embedded in an isotropic matrix. The ellipsoid also has a specific orientation given by the vector \(n_a\), axis of the ellipsoid, whose semi-length is \(a\).

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]young,nuYoung modulus and Poisson's ratio of the matrix
[in]young_i,nu_iYoung modulus and Poisson's ratio of the inclusions
[in]n_adirection of the axis of the ellipsoid (whose semi-length is \(a\))
[in]alength of semi-axis relative to the direction \(n_a\)

◆ computeDiskPlaneStrainLocalisationTensor()

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

This function builds the strain localisation tensor of a circular cylinder embedded in an isotropic matrix, with a general elasticity, considering a PLANE STRAIN modelling hypothesis.

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM_0Isotropic Moduli of the matrix
[in]C_ielasticity of the inclusion

◆ computeEllipsoidLocalisationTensor() [1/3]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeEllipsoidLocalisationTensor ( const IsotropicModuli< StressType > & IM0,
const IsotropicModuli< StressType > & IM_i,
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 )

This function is another overload of computeEllipsoidLocalisationTensor with elastic moduli of IsotropicModuli<StressType> type

Returns
an object of type st2tost2, which is the fourth-order localisation tensor \(A\)
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM0isotropic moduli of the matrix
[in]IM_iisotropic moduli of the inclusions
[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

◆ computeEllipsoidLocalisationTensor() [2/3]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeEllipsoidLocalisationTensor ( const IsotropicModuli< StressType > & IM0,
const tfel::math::st2tost2< 3u, StressType > & C_i,
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 )

This function builds the strain localisation tensor of a general ellipsoid with a general elasticity, embedded in an isotropic matrix. The localisation tensor \(A\) is defined as follows :

\[\epsilon = A:E_0\]

where \(E_0\) is the uniform strain tensor imposed at infinity, and \(\epsilon\) is the strain tensor solution of Eshelby problem for the ellipsoid. The ellipsoid also has a specific orientation given by the vectors \(n_a\), \(n_b\), which provides a direct local basis \((n_a,n_b,n_c)\). The elasticity \(C_i\) is specified in this local basis.

Returns
an object of type st2tost2, which is the fourth-order localisation tensor \(A\) (in the global basis).
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM0isotropic moduli of the matrix
[in]C_istiffness of the inclusions
[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

◆ computeEllipsoidLocalisationTensor() [3/3]

TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, types::real< StressType > > tfel::material::homogenization::elasticity::computeEllipsoidLocalisationTensor ( const StressType & young,
const types::real< StressType > & nu,
const StressType & young_i,
const types::real< StressType > & nu_i,
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 )

This function is an overload of computeEllipsoidLocalisationTensor with elastic moduli in the form (young,nu)

Returns
an object of type st2tost2, which is the fourth-order localisation tensor \(A\)
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]young,nuYoung modulus and Poisson's ratio of the matrix
[in]young_i,nu_iYoung modulus and Poisson's ratio of the inclusions
[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

◆ computeIsotropicLocalisationTensor()

template<unsigned short int N, tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility< tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE tfel::math::st2tost2< N, types::real< StressType > > tfel::material::homogenization::elasticity::computeIsotropicLocalisationTensor ( const IsotropicModuli< StressType > & IM0,
const tfel::math::st2tost2< N, StressType > & C_i,
const tfel::math::tvector< N, types::real< StressType > > & n_a,
const tfel::math::tvector< N, types::real< StressType > > & n_b,
const std::array< types::length< StressType >, N > & semiLengths )

This function just groups implementations of localisation tensors for dimension 2 and 3

Template Parameters
Ndimension
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM0isotropic moduli of the matrix
[in]C_istiffness of the inclusions
[in]n_adirection of the principal axis relative to first semi-length
[in]n_bdirection of the principal axis relative to second semi-length
[in]semiLengthsarray of lengths of the N semi-axes. The first one for direction \(n_a\), the second for \(n_b\).

◆ computePlaneStrainLocalisationTensor()

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

This function builds the strain localisation tensor of an elliptic cylinder embedded in an isotropic matrix, with a general elasticity, considering a PLANE STRAIN modelling hypothesis.

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM_0Isotropic Moduli of the matrix
[in]C_ielasticity of the inclusion in the LOCAL basis, which is the basis related to \(n_a\)
[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

◆ computeSphereLocalisationTensor() [1/2]

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

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

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]IM0isotropic moduli of the matrix
[in]IM_iisotropic moduli of the inclusions

◆ computeSphereLocalisationTensor() [2/2]

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

This function builds the strain localisation tensor of a sphere with a general elasticity, embedded in an isotropic matrix.

Returns
an object of type st2tost2
Template Parameters
StressTypetype of the elastic constants related to the matrix and the ellipsoid
Parameters
[in]young,nuYoung modulus and Poisson's ratio of the matrix
[in]young_i,nu_iYoung modulus and Poisson's ratio of the inclusions