NonLinearElastic class represents a non-linear elastic finite element. More...
#include <ikarus/finiteelements/mechanics/nonlinearelastic.hh>
Public Types | |
using | Traits = PreFE::Traits |
using | Basis = typename Traits::Basis |
using | FlatBasis = typename Traits::FlatBasis |
using | Requirement = FERequirements< FESolutions::displacement, FEParameter::loadfactor > |
using | LocalView = typename Traits::LocalView |
using | Geometry = typename Traits::Geometry |
using | GridView = typename Traits::GridView |
using | Element = typename Traits::Element |
using | Material = PRE::Material |
using | Pre = PRE |
using | LocalBasisType = decltype(std::declval< LocalView >().tree().child(0).finiteElement().localBasis()) |
template<typename ST > | |
using | VectorXOptRef = std::optional< std::reference_wrapper< const Eigen::VectorX< ST > > > |
template<template< typename, int, int > class RT> | |
using | RTWrapperType = ResultWrapper< RT< typename Traits::ctype, myDim, Traits::worlddim >, ResultShape::Vector > |
template<typename ST > | |
using | StrainType = Eigen::Vector< ST, strainDim > |
template<typename ST > | |
using | BopType = Eigen::Matrix< ST, strainDim, myDim > |
template<typename ST > | |
using | KgType = Eigen::Matrix< ST, myDim, myDim > |
using | SupportedResultTypes = std::tuple< decltype(makeRT< ResultTypes >())... > |
Public Member Functions | |
NonLinearElastic (const Pre &pre) | |
Constructor for the NonLinearElastic class. More... | |
template<typename ScalarType = double> | |
auto | displacementFunction (const Requirement &par, const VectorXOptRef< ScalarType > &dx=std::nullopt) const |
Get the displacement function for the given Requirement. More... | |
template<typename ScalarType = double> | |
auto | strainFunction (const Requirement &par, const VectorXOptRef< ScalarType > &dx=std::nullopt) const |
The strain function for the given Requirement. More... | |
template<typename ScalarType , int strainDim> | |
auto | internalEnergy (const Eigen::Vector< ScalarType, strainDim > &strain) const |
Get the internal energy for the given strain. More... | |
template<typename ScalarType , int strainDim, bool voigt = true> | |
auto | stress (const Eigen::Vector< ScalarType, strainDim > &strain) const |
Get the stress for the given strain. More... | |
template<typename ScalarType , int strainDim, bool voigt = true> | |
auto | materialTangent (const Eigen::Vector< ScalarType, strainDim > &strain) const |
Get the material tangent for the given strain for the given Requirement. More... | |
const Geometry & | geometry () const |
size_t | numberOfNodes () const |
int | order () const |
const Dune::CachedLocalBasis< std::remove_cvref_t< LocalBasisType > > & | localBasis () const |
template<typename ScalarType = double> | |
decltype(auto) | material () const |
template<template< typename, int, int > class RT> requires (supportsResultType<RT>()) | |
auto | resultFunction () const |
Get a lambda function that evaluates the requested result type for a given strain (in Voigt notation). More... | |
template<template< typename, int, int > class RT> requires (supportsResultType<RT>()) | |
auto | calculateAtImpl (const Requirement &req, const Dune::FieldVector< double, Traits::mydim > &local, Dune::PriorityTag< 1 >) const |
Calculates a requested result at a specific local position. More... | |
template<typename ST > | |
auto | stiffnessMatrixFunction (const Requirement &par, typename Traits::template MatrixType< ST > &K, const VectorXOptRef< ST > &dx=std::nullopt) const |
Get a lambda function that evaluates the stiffness matrix for a given strain, integration point and its index. More... | |
template<typename ST > | |
auto | internalForcesFunction (const Requirement &par, typename Traits::template VectorType< ST > &force, const VectorXOptRef< ST > &dx=std::nullopt) const |
Get a lambda function that evaluates the internal force vector for a given strain, integration point and its index. More... | |
template<typename ST > | |
auto | energyFunction (const Requirement &par, const VectorXOptRef< ST > &dx=std::nullopt) const |
Get a lambda function that evaluates the internal energy at a given integration point and its index. More... | |
Static Public Member Functions | |
static consteval bool | supportsResultType () |
Returns whether a ResultType is provided by the element. More... | |
Static Public Attributes | |
static constexpr int | myDim = Traits::mydim |
static constexpr int | strainDim = myDim * (myDim + 1) / 2 |
static constexpr auto | strainType = StrainTags::greenLagrangian |
static constexpr auto | stressType = StressTags::PK2 |
static constexpr bool | hasEAS |
Protected Member Functions | |
void | bindImpl () |
A helper function to bind the local view to the element. More... | |
template<typename ScalarType > | |
void | calculateMatrixImpl (const Requirement &par, const MatrixAffordance &affordance, typename Traits::template MatrixType<> K, const VectorXOptRef< ScalarType > &dx=std::nullopt) const |
Calculate the matrix associated with the given Requirement. More... | |
template<typename ScalarType > | |
auto | calculateScalarImpl (const Requirement &par, ScalarAffordance affordance, const VectorXOptRef< ScalarType > &dx=std::nullopt) const -> ScalarType |
template<typename ScalarType > | |
void | calculateVectorImpl (const Requirement &par, VectorAffordance affordance, typename Traits::template VectorType< ScalarType > force, const VectorXOptRef< ScalarType > &dx=std::nullopt) const |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Basis = typename Traits::Basis |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::BopType = Eigen::Matrix<ST, strainDim, myDim> |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Element = typename Traits::Element |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::FlatBasis = typename Traits::FlatBasis |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Geometry = typename Traits::Geometry |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::GridView = typename Traits::GridView |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::KgType = Eigen::Matrix<ST, myDim, myDim> |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::LocalBasisType = decltype(std::declval<LocalView>().tree().child(0).finiteElement().localBasis()) |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::LocalView = typename Traits::LocalView |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Material = PRE::Material |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Pre = PRE |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Requirement = FERequirements<FESolutions::displacement, FEParameter::loadfactor> |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::RTWrapperType = ResultWrapper<RT<typename Traits::ctype, myDim, Traits::worlddim>, ResultShape::Vector> |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::StrainType = Eigen::Vector<ST, strainDim> |
|
inherited |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Traits = PreFE::Traits |
using Ikarus::NonLinearElastic< PreFE, FE, PRE >::VectorXOptRef = std::optional<std::reference_wrapper<const Eigen::VectorX<ST> >> |
|
inlineexplicit |
pre | The pre fe |
|
inlineprotected |
|
inline |
req | The Requirement object holding the global solution. |
local | Local position vector. |
RT | The type representing the requested result. |
|
inlineprotected |
ScalarType | The scalar type for the calculation. |
par | The Requirement object specifying the requirements for the calculation. |
K | The matrix to store the calculated result. |
|
inlineprotected |
|
inlineprotected |
|
inline |
ScalarType | The scalar type for the displacement function. |
par | The Requirement object. |
dx | Optional displacement vector. |
|
inline |
ST | The scalar type for the material and strain. |
par | The Requirement object. |
dx | Optional displacement vector. |
|
inline |
|
inline |
ScalarType | The scalar type for the material and strain. |
strainDim | The dimension of the strain vector. |
strain | The strain vector. |
|
inline |
ST | The scalar type for the material and strain. |
par | The Requirement object. |
dx | Optional displacement vector. |
force | The vector to store the calculated result. |
|
inline |
|
inline |
|
inline |
ScalarType | The scalar type for the material and strain. |
strainDim | The dimension of the strain vector. |
voigt | Flag indicating whether to use Voigt notation. |
strain | The strain vector. |
|
inline |
|
inline |
|
inline |
RT | The type representing the requested result. |
|
inline |
ST | The scalar type for the material and strain. |
par | The Requirement object. |
dx | Optional displacement vector. |
K | The matrix to store the calculated result. |
|
inline |
ScalarType | The scalar type for the strain function. |
par | The Requirement object. |
dx | Optional displacement vector. |
|
inline |
ScalarType | The scalar type for the material and strain. |
strainDim | The dimension of the strain vector. |
voigt | A boolean indicating whether to use the Voigt notation for stress. |
strain | The strain vector. |
|
inlinestaticinherited |
RT | requested ResultType |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |