tfel
Loading...
Searching...
No Matches
tfel::material::homogenization::elasticity::internals Namespace Reference

Functions

template<typename real>
TFEL_HOST_DEVICE auto integrate1D (const std::function< real(const real &)> f, const real a, const real b, const std::size_t max_it=12, const real tol=std::sqrt(std::numeric_limits< real >::epsilon()))
template<typename real>
TFEL_HOST_DEVICE auto dblintegrate (const std::function< real(const real &, const real &)> f, const real a, const real b, const real c, const real d, const std::size_t max_it=12)
template<unsigned short int N, typename real, typename StressType>
TFEL_HOST_DEVICE tfel::math::tmatrix< N, N, real > Acoustic (const tfel::math::st2tost2< N, StressType > &C, const tfel::math::tvector< N, real > &X)
template<typename real, typename StressType, typename LengthType>
TFEL_HOST_DEVICE real p_ijkl_2D (const tfel::math::st2tost2< 2u, StressType > &C, const LengthType &a, const LengthType &b, const real theta, const int &i, const int &j, const int &k, const int &l)
template<typename real, typename StressType, typename LengthType>
TFEL_HOST_DEVICE real p_ijkl (const tfel::math::st2tost2< 3u, StressType > &C, const real theta, const real phi, const LengthType &a, const LengthType &b, const LengthType &c, const int &i, const int &j, const int &k, const int &l)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE std::array< types::real< StressType >, 4 > get_psi (const types::real< StressType > &e)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE std::array< types::compliance< StressType >, 6 > computeHillTensorComponents (const KGModuli< StressType > &kg0, const types::real< StressType > &e)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE std::array< types::squared_compliance< StressType >, 6 > computeDerivativesOfHillTensorComponents (const KGModuli< StressType > &kg0, const types::real< StressType > &e, const std::array< types::real< StressType >, 2 > &dkg0)
template<tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
TFEL_HOST_DEVICE std::array< types::compliance< StressType >, 6 > computeDerivativesOfLocalisationTensorComponents (const KGModuli< StressType > &kg0, const KGModuli< StressType > &kgi, const types::real< StressType > &e, const std::array< types::real< StressType >, 4 > &dkg)
template<typename real>
TFEL_HOST_DEVICE tfel::math::st2tost2< 3u, real > convertEshelbyTensorFromDoublePrecision (const tfel::math::st2tost2< 3u, double > &S)
 convert an Eshelby tensor computed in double precision
template<typename LengthType>
TFEL_HOST_DEVICE std::array< std::size_t, 3 > sortEllipsoidLengths (const LengthType &a, const LengthType &b, const LengthType &c)
template<typename real>
TFEL_HOST_DEVICE tfel::math::tvector< 3u, real > 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<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 > > 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<unsigned short int N, tfel::math::ScalarConcept StressType>
requires (tfel::math::checkUnitCompatibility<tfel::math::unit::Stress, StressType>())
std::vector< tfel::math::stensor< N, StressType > > initialize_polarisation (const std::vector< tfel::math::stensor< N, StressType > > &, const std::size_t)

Detailed Description

An internal function for initialization of the polarisation vector

Function Documentation

◆ convertEshelbyTensorFromDoublePrecision()

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 Parameters
realsingle precision type
Parameters
[in]SEshelby tensor

◆ orthogonaliseEllipsoidAxes()

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" )

This function checks that the directions n_a and n_b of two principal axes of an ellipsoid are orthogonal, up to a tolerance relative to their norms, and removes from n_b its component along n_a, so that n_a, n_b and their cross product define an orthogonal basis up to rounding errors. n_a and n_b need not be unit vectors.

Returns
n_b made orthogonal to n_a
Template Parameters
realnumeric type
Parameters
[in]n_adirection of the first principal axis
[in]n_bdirection of the second principal axis
[in]msgmessage reported if n_a and n_b are not orthogonal

◆ sortEllipsoidLengths()

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 )

This function takes a,b,c and returns the indices of the lengths (a,b,c) sorted from the biggest to the smallest

Returns
an object of type std::array<int,3>
Template Parameters
LengthTypetype of the lengths
Parameters
[in]nuPoisson's ratio of the matrix