version 0.4.1
Ikarus::EnhancedAssumedStrains< PreFE, FE, ES > Class Template Reference

Wrapper class for using Enhanced Assumed Strains (EAS) with displacement based elements. More...

#include <ikarus/finiteelements/mechanics/enhancedassumedstrains.hh>

Inheritance diagram for Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >:
[legend]

Public Types

using Traits = PreFE::Traits
 
using Requirement = FERequirements< FESolutions::displacement, FEParameter::loadfactor >
 
using LocalView = typename Traits::LocalView
 
using Geometry = typename Traits::Geometry
 
using GridView = typename Traits::GridView
 
using Pre = EnhancedAssumedStrainsPre< ES >
 
using EnhancedStrain = ES
 
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, Traits::mydim, Traits::worlddim >, ResultShape::Vector >
 

Public Member Functions

 EnhancedAssumedStrains (const Pre &pre)
 Constructor for Enhanced Assumed Strains elements. More...
 
bool isDisplacementBased () const
 Checks if the element is displacement-based and the EAS is turned off. More...
 
const auto & easVariant () const
 Gets the variant representing the type of Enhanced Assumed Strains (EAS). More...
 
auto numberOfEASParameters () const
 Gets the number of EAS parameters based on the current EAS type. More...
 
template<template< typename, int, int > class RT>
requires (EnhancedAssumedStrains::template supportsResultType<RT>())
auto calculateAtImpl (const Requirement &req, const Dune::FieldVector< double, Traits::mydim > &local, Dune::PriorityTag< 2 >) const
 Calculates a requested result at a specific local position using the Enhanced Assumed Strains (EAS) method. More...
 
void setEASType (int numberOfEASParameters)
 Sets the EAS type for 2D elements. More...
 
const auto & alpha () const
 Gets the internal state variable alpha for the EAS element. More...
 

Static Public Attributes

static constexpr int myDim = Traits::mydim
 

Protected Member Functions

void bindImpl ()
 
void updateStateImpl (const Requirement &par, const std::remove_reference_t< typename Traits::template VectorType<> > &correction)
 Updates the internal state variable alpha_ at the end of an iteration before the update of the displacements done by the non-linear solver. See [2] for implementation details and further references. More...
 
void easApplicabilityCheck () const
 
template<typename ScalarType >
void calculateMatrixImpl (const Requirement &par, const MatrixAffordance &affordance, typename Traits::template MatrixType<> K, const VectorXOptRef< ScalarType > &dx=std::nullopt) const
 
template<typename ScalarType >
ScalarType calculateScalarImpl (const Requirement &par, ScalarAffordance affordance, const VectorXOptRef< ScalarType > &dx=std::nullopt) const
 
template<typename ScalarType >
void calculateVectorImpl (const Requirement &par, VectorAffordance affordance, typename Traits::template VectorType< ScalarType > force, const VectorXOptRef< ScalarType > &dx=std::nullopt) const
 
template<typename MT , typename BC >
void subscribeToImpl (BC &bc)
 

Detailed Description

template<typename PreFE, typename FE, typename ES>
class Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >

This class extends a displacement-based element to support Enhanced Assumed Strains.

Template Parameters
PreFEType of the pre finite element.
FEType of the finite element.
ESThe enhanced strain type.

Member Typedef Documentation

◆ EnhancedStrain

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::EnhancedStrain = ES

◆ Geometry

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::Geometry = typename Traits::Geometry

◆ GridView

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::GridView = typename Traits::GridView

◆ LocalView

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::LocalView = typename Traits::LocalView

◆ Pre

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::Pre = EnhancedAssumedStrainsPre<ES>

◆ Requirement

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::Requirement = FERequirements<FESolutions::displacement, FEParameter::loadfactor>

◆ RTWrapperType

template<typename PreFE , typename FE , typename ES >
template<template< typename, int, int > class RT>
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::RTWrapperType = ResultWrapper<RT<typename Traits::ctype, Traits::mydim, Traits::worlddim>, ResultShape::Vector>

◆ Traits

template<typename PreFE , typename FE , typename ES >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::Traits = PreFE::Traits

◆ VectorXOptRef

template<typename PreFE , typename FE , typename ES >
template<typename ST >
using Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::VectorXOptRef = std::optional<std::reference_wrapper<const Eigen::VectorX<ST> >>

Constructor & Destructor Documentation

◆ EnhancedAssumedStrains()

template<typename PreFE , typename FE , typename ES >
Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::EnhancedAssumedStrains ( const Pre pre)
inlineexplicit
Parameters
preThe pre finite element

Member Function Documentation

◆ alpha()

template<typename PreFE , typename FE , typename ES >
const auto & Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::alpha ( ) const
inline
Returns
Internal state variable (alpha).
Here is the caller graph for this function:

◆ bindImpl()

template<typename PreFE , typename FE , typename ES >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::bindImpl ( )
inlineprotected

◆ calculateAtImpl()

template<typename PreFE , typename FE , typename ES >
template<template< typename, int, int > class RT>
requires (EnhancedAssumedStrains::template supportsResultType<RT>())
auto Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::calculateAtImpl ( const Requirement req,
const Dune::FieldVector< double, Traits::mydim > &  local,
Dune::PriorityTag< 2 >   
) const
inline

This function calculates the results at the specified local coordinates . It takes into account the displacement-based element calculations and, if applicable, incorporates the EAS method for enhanced accuracy.

Parameters
reqThe result requirements.
localThe local coordinates at which results are to be calculated.
Returns
calculated result
Template Parameters
RTThe type representing the requested result.

◆ calculateMatrixImpl()

template<typename PreFE , typename FE , typename ES >
template<typename ScalarType >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::calculateMatrixImpl ( const Requirement par,
const MatrixAffordance affordance,
typename Traits::template MatrixType<>  K,
const VectorXOptRef< ScalarType > &  dx = std::nullopt 
) const
inlineprotected

◆ calculateScalarImpl()

template<typename PreFE , typename FE , typename ES >
template<typename ScalarType >
ScalarType Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::calculateScalarImpl ( const Requirement par,
ScalarAffordance  affordance,
const VectorXOptRef< ScalarType > &  dx = std::nullopt 
) const
inlineprotected

◆ calculateVectorImpl()

template<typename PreFE , typename FE , typename ES >
template<typename ScalarType >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::calculateVectorImpl ( const Requirement par,
VectorAffordance  affordance,
typename Traits::template VectorType< ScalarType >  force,
const VectorXOptRef< ScalarType > &  dx = std::nullopt 
) const
inlineprotected

◆ easApplicabilityCheck()

template<typename PreFE , typename FE , typename ES >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::easApplicabilityCheck ( ) const
inlineprotected
Here is the caller graph for this function:

◆ easVariant()

template<typename PreFE , typename FE , typename ES >
const auto & Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::easVariant ( ) const
inline
Returns
Const reference to the EAS variant.

◆ isDisplacementBased()

template<typename PreFE , typename FE , typename ES >
bool Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::isDisplacementBased ( ) const
inline
Returns
True if the element is displacement-based, false otherwise.
Here is the caller graph for this function:

◆ numberOfEASParameters()

template<typename PreFE , typename FE , typename ES >
auto Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::numberOfEASParameters ( ) const
inline
Returns
Number of EAS parameters.
Here is the caller graph for this function:

◆ setEASType()

template<typename PreFE , typename FE , typename ES >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::setEASType ( int  numberOfEASParameters)
inline
Parameters
numberOfEASParametersThe number of EAS parameters
Here is the caller graph for this function:

◆ subscribeToImpl()

template<typename PreFE , typename FE , typename ES >
template<typename MT , typename BC >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::subscribeToImpl ( BC &  bc)
inlineprotected

◆ updateStateImpl()

template<typename PreFE , typename FE , typename ES >
void Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::updateStateImpl ( const Requirement par,
const std::remove_reference_t< typename Traits::template VectorType<> > &  correction 
)
inlineprotected
Parameters
parThe Requirement object.
correctionThe correction in displacement (DeltaD) vector passed based on which the internal state variable alpha is to be updated.
Here is the caller graph for this function:

Member Data Documentation

◆ myDim

template<typename PreFE , typename FE , typename ES >
constexpr int Ikarus::EnhancedAssumedStrains< PreFE, FE, ES >::myDim = Traits::mydim
staticconstexpr

The documentation for this class was generated from the following file: