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 = FERequirementsFactory< FESolutions::displacement, FEParameter::loadfactor, Traits::useEigenRef >::type |
| 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()) |
| using | SupportedResultTypes = std::tuple< decltype(makeRT< ResultTypes::PK2Stress >())> |
Public Member Functions | |
| NonLinearElastic (const Pre &pre) | |
| Constructor for the NonLinearElastic class. More... | |
| template<typename ScalarType = double> | |
| auto | displacementFunction (const Requirement &par, const std::optional< std::reference_wrapper< const Eigen::VectorX< ScalarType > > > &dx=std::nullopt) const |
| Get the displacement function for the given Requirement. More... | |
| template<typename ScalarType = double> | |
| auto | strainFunction (const Requirement &par, const std::optional< std::reference_wrapper< const Eigen::VectorX< ScalarType > > > &dx=std::nullopt) const |
| The strain function for the given Requirement. 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. More... | |
| template<typename ScalarType , int strainDim> | |
| auto | getInternalEnergy (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 | getStress (const Eigen::Vector< ScalarType, strainDim > &strain) const |
| Get the stress for the given strain. More... | |
| const Geometry & | geometry () const |
| size_t | numberOfNodes () const |
| int | order () const |
| template<template< typename, int, int > class RT> requires (canProvideResultType<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... | |
Static Public Attributes | |
| static constexpr int | myDim = Traits::mydim |
| static constexpr auto | strainType = StrainTags::greenLagrangian |
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 std::optional< std::reference_wrapper< const Eigen::VectorX< 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 std::optional< std::reference_wrapper< const Eigen::VectorX< ScalarType > > > &dx=std::nullopt) const -> ScalarType |
| template<typename ScalarType > | |
| void | calculateVectorImpl (const Requirement &par, VectorAffordance affordance, typename Traits::template VectorType< ScalarType > force, const std::optional< std::reference_wrapper< const Eigen::VectorX< ScalarType > > > &dx=std::nullopt) const |
| using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Basis = typename Traits::Basis |
| 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 >::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 = FERequirementsFactory<FESolutions::displacement, FEParameter::loadfactor, Traits::useEigenRef>::type |
| using Ikarus::NonLinearElastic< PreFE, FE, PRE >::SupportedResultTypes = std::tuple<decltype(makeRT<ResultTypes::PK2Stress>())> |
| using Ikarus::NonLinearElastic< PreFE, FE, PRE >::Traits = PreFE::Traits |
|
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 |
|
inline |
| ScalarType | The scalar type for the material and strain. |
| strainDim | The dimension of the strain vector. |
| strain | The strain 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. |
|
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 |
| ScalarType | The scalar type for the strain function. |
| par | The Requirement object. |
| dx | Optional displacement vector. |
|
staticconstexpr |
|
staticconstexpr |