tfel
Loading...
Searching...
No Matches
stensor.hxx File Reference

Classes

struct  tfel::math::DerivativeTypeDispatcher< StensorTag, ScalarTag, StensorType, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::DerivativeTypeDispatcher< ScalarTag, StensorTag, ScalarType, StensorType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::stensor_common
 an helper structure inherited by the stensor class More...
class  tfel::math::stensor< N, ValueType >
 symmetric tensor. More...
struct  tfel::typetraits::IsAssignableTo< tfel::math::stensor< N, T2 >, tfel::math::stensor< N, T > >

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Typedefs

template<unsigned short N, typename T>
using tfel::math::StensorView = View<stensor<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using tfel::math::ConstStensorView = ConstView<stensor<N, T>>
 a simple alias for backward compatibility

Functions

template<typename... T>
 tfel::math::stensor (T &&... t) -> stensor< StensorSizeToDime< sizeof...(T)>::value, std::common_type_t< T... > >
template<typename NumType, typename T>
requires (isAssignableTo<NumType, T>())
TFEL_HOST_DEVICE constexpr void tfel::math::setComponent (StensorConcept auto &, unsigned short, unsigned short, const T &) noexcept
 This function set the component (i,j) of a stensor to a value Aij, using the function VoigtIndex.
TFEL_HOST_DEVICE constexpr auto tfel::math::getComponent (const StensorConcept auto &, unsigned short, unsigned short)
 This function returns the component (i,j) of a stensor, using the function VoigtIndex.
template<unsigned short N, typename T, typename OutputIterator>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void tfel::math::exportToBaseTypeArray (const stensor< N, T > &, OutputIterator) noexcept
 export the given vector to an array
template<unsigned short N, typename T>
TFEL_HOST_DEVICE T tfel::math::tresca (const stensor< N, T > &, const bool=false)
template<typename T>
TFEL_HOST_DEVICE constexpr T tfel::math::tresca (const stensor< 1u, T > &, const bool=false)
TFEL_HOST_DEVICE auto tfel::math::square_root (const StensorConcept auto &)
TFEL_HOST_DEVICE constexpr auto tfel::math::det (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeterminantDerivative (const StensorConcept auto &) noexcept
TFEL_HOST_DEVICE constexpr auto tfel::math::computeDeviatorDeterminantDerivative (const StensorConcept auto &) noexcept
template<StensorConcept StensorType>
TFEL_HOST_DEVICE constexpr auto tfel::math::change_basis (const StensorType &, const rotation_matrix< numeric_type< StensorType > > &) noexcept
 rotate a symmetric tensor using a rotation matrix
TFEL_HOST_DEVICE constexpr auto tfel::math::invert (const StensorConcept auto &) noexcept
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::logarithm (const StensorType &, const bool=false)
 compute the logarithm of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::absolute_value (const StensorType &, const bool=false)
 compute the absolute value of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::positive_part (const StensorType &, const bool=false)
 compute the positive part of a symmetric tensor
template<StensorConcept StensorType>
requires ( tfel::typetraits::IsFundamentalNumericType< numeric_type<StensorType>>::cond)
TFEL_HOST_DEVICE auto tfel::math::negative_part (const StensorType &, const bool=false)
 compute the negative part of a symmetric tensor
TFEL_HOST_DEVICE auto tfel::math::square (const StensorConcept auto &)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunction (const Function &, const StensorType &, const bool=false)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunctionDerivative (const Function &, const FunctionDerivative &, const StensorType &, const numeric_type< StensorType >, const bool=false)
template<typename stensor_common::EigenSolver = stensor_common::TFELEIGENSOLVER, typename Function, typename FunctionDerivative, StensorConcept StensorType>
TFEL_HOST_DEVICE auto tfel::math::computeIsotropicFunctionAndDerivative (const Function &, const FunctionDerivative &, const StensorType &, const numeric_type< StensorType >, const bool=false)
template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertCorotationnalCauchyStressToSecondPiolaKirchhoffStress (const T &, const T2 &) noexcept
 convert the corotationnal cauchy stress to the second Piola-Kirchhoff stress
template<StensorConcept T, StensorConcept T2>
requires ( (getSpaceDimension<T>() == getSpaceDimension<T2>()) && (tfel::typetraits::IsFundamentalNumericType<numeric_type<T2>>::cond))
TFEL_HOST_DEVICE constexpr auto tfel::math::convertSecondPiolaKirchhoffStressToCorotationnalCauchyStress (const T &, const T2 &) noexcept
 convert the second Piola-Kirchhoff stress to the corotationnal cauchy stress:
template<StensorConcept StensorType1, StensorConcept StensorType2>
requires (getSpaceDimension<StensorType1>() == getSpaceDimension<StensorType2>())
TFEL_HOST_DEVICE constexpr auto tfel::math::symmetric_product (const StensorType1 &, const StensorType2 &) noexcept
 return the symmetric product of two stensors as a symmetric tensor:
template<ScalarConcept ValueType>
constexpr tvector< 3u, ValueType > tfel::math::sortEigenValues (const tvector< 3u, ValueType > &, stensor_common::EigenValuesOrdering=stensor_common::DESCENDING) noexcept
 sort the eigenvalues

Detailed Description

Author
Thomas Helfer
Date
04/05/2006