|
tfel
|
This file implements the methods of the class stensor. More...
#include <cmath>#include <iterator>#include "TFEL/FSAlgorithm/FSAlgorithm.hxx"#include "TFEL/Math/General/Abs.hxx"#include "TFEL/Math/General/MathConstants.hxx"#include "TFEL/Math/General/ConstExprMathFunctions.hxx"#include "TFEL/Math/Stensor/SymmetricStensorProduct.hxx"#include "TFEL/Math/Stensor/Internals/StensorChangeBasis.hxx"#include "TFEL/Math/Stensor/Internals/StensorEigenSolver.hxx"#include "TFEL/Math/Stensor/Internals/SortEigenValues.hxx"#include "TFEL/Math/Stensor/Internals/SortEigenVectors.hxx"#include "TFEL/Math/Stensor/Internals/StensorComputeEigenValuesDerivatives.hxx"#include "TFEL/Math/Stensor/Internals/StensorComputeEigenVectorsDerivatives.hxx"#include "TFEL/Math/Stensor/Internals/StensorComputeIsotropicFunctionDerivative.hxx"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. | |
Functions | |
| 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 &A, unsigned short int i, unsigned short int j) |
|
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<typename T> | |
| TFEL_HOST_DEVICE constexpr T | tfel::math::tresca (const stensor< 1u, T > &, const bool=false) |
| template<unsigned short N, typename T> | |
| TFEL_HOST_DEVICE T | tfel::math::tresca (const stensor< N, 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::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<StensorConcept StensorType> | |
| TFEL_HOST_DEVICE constexpr auto | tfel::math::change_basis (const StensorType &s, const tmatrix< 3u, 3u, base_type< numeric_type< StensorType > > > &r) noexcept |
| 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 &s, const T2 &U) 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 &S, const T2 &U) 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: | |
| 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<ScalarConcept ValueType> | |
| constexpr tvector< 3u, ValueType > | tfel::math::sortEigenValues (const tvector< 3u, ValueType > &, stensor_common::EigenValuesOrdering=stensor_common::DESCENDING) noexcept |
| sort the eigenvalues | |
This file implements the methods of the class stensor.