KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::VariationalArg< Scalar, dim, components > Struct Template Reference

A class that stores values, gradients, and Hessians of evaluated shape functions. More...

#include <shapefunctioncache.hh>

Public Types

using ValueType = Dune::FieldVector<Scalar,components>
 type of variational argument's value

Public Member Functions

 VariationalArg ()
 VariationalArg (ValueType const &value_)
 Constructor.
 VariationalArg (ValueType const &value_, Dune::FieldMatrix< Scalar, components, dim > const &derivative_)
 VariationalArg (ValueType const &value_, Dune::FieldMatrix< Scalar, components, dim > const &derivative_, Tensor< Scalar, components, dim, dim > const &hessian_)

Public Attributes

ValueType value
 The shape function's value, a vector of dimension components
Dune::FieldMatrix< Scalar, components, dim > derivative
 The shape function's spatial derivative, a components x dim matrix.
Tensor< Scalar, components, dim, dim > hessian

Detailed Description

template<typename Scalar, int dim, int components = 1>
struct Kaskade::VariationalArg< Scalar, dim, components >

A class that stores values, gradients, and Hessians of evaluated shape functions.

This is the argument type used during assembly to provide test function values and derivatives to variational functionals.

Template Parameters
Scalarthe field type to be used
dimthe spatial dimension
componentsthe vectorial dimension of shape functions

Definition at line 52 of file shapefunctioncache.hh.

Member Typedef Documentation

◆ ValueType

template<typename Scalar, int dim, int components = 1>
using Kaskade::VariationalArg< Scalar, dim, components >::ValueType = Dune::FieldVector<Scalar,components>

type of variational argument's value

Definition at line 59 of file shapefunctioncache.hh.

Constructor & Destructor Documentation

◆ VariationalArg() [1/4]

template<typename Scalar, int dim, int components = 1>
Kaskade::VariationalArg< Scalar, dim, components >::VariationalArg ( )
inline

Definition at line 54 of file shapefunctioncache.hh.

◆ VariationalArg() [2/4]

template<typename Scalar, int dim, int components = 1>
Kaskade::VariationalArg< Scalar, dim, components >::VariationalArg ( ValueType const & value_)
inlineexplicit

Constructor.

This initializes the value as provied and initializes derivative and hessian to zero.

Definition at line 66 of file shapefunctioncache.hh.

◆ VariationalArg() [3/4]

template<typename Scalar, int dim, int components = 1>
Kaskade::VariationalArg< Scalar, dim, components >::VariationalArg ( ValueType const & value_,
Dune::FieldMatrix< Scalar, components, dim > const & derivative_ )
inline

Definition at line 70 of file shapefunctioncache.hh.

◆ VariationalArg() [4/4]

template<typename Scalar, int dim, int components = 1>
Kaskade::VariationalArg< Scalar, dim, components >::VariationalArg ( ValueType const & value_,
Dune::FieldMatrix< Scalar, components, dim > const & derivative_,
Tensor< Scalar, components, dim, dim > const & hessian_ )
inline

Definition at line 74 of file shapefunctioncache.hh.

Member Data Documentation

◆ derivative

template<typename Scalar, int dim, int components = 1>
Dune::FieldMatrix<Scalar,components,dim> Kaskade::VariationalArg< Scalar, dim, components >::derivative

The shape function's spatial derivative, a components x dim matrix.

Definition at line 88 of file shapefunctioncache.hh.

Referenced by Kaskade::CacheBase< Functional, Cache, ScalarT >::b2(), Kaskade::CacheBase< Functional, Cache, ScalarT >::b2(), Kaskade::CacheBase< Functional, Cache, ScalarT >::b2(), Kaskade::MorleyMapper< ScalarType, GV >::Combiner::Combiner(), Kaskade::CacheBase< Functional, Cache, ScalarT >::d1(), Kaskade::DirichletNitscheBoundary< GridView, components, ScalarType >::d1(), Kaskade::Elastomechanics::FirstPiolaKirchhoffStress< HyperelasticEnergy, StrainTensor >::d1(), Kaskade::Elastomechanics::HyperelasticVariationalFunctional< Energy, LinearizedGreenLagrangeTensor< Scalar_, dim_ > >::d1(), Kaskade::Elastomechanics::LameNavier< dim_, Scalar_ >::d1(), Kaskade::Laplace< Scalar, dim, components, isotropic >::d1(), Kaskade::ScalarLaplace< Scalar, dim, isotropic >::d1(), Kaskade::CacheBase< Functional, Cache, ScalarT >::d2(), Kaskade::CacheBase< Functional, Cache, ScalarT >::d2(), Kaskade::CacheBase< Functional, Cache, ScalarT >::d2(), Kaskade::DirichletNitscheBoundary< GridView, components, ScalarType >::d2(), Kaskade::Elastomechanics::FirstPiolaKirchhoffStress< HyperelasticEnergy, StrainTensor >::d2(), Kaskade::Elastomechanics::HyperelasticVariationalFunctional< Energy, LinearizedGreenLagrangeTensor< Scalar_, dim_ > >::d2(), Kaskade::Elastomechanics::LameNavier< dim_, Scalar_ >::d2(), Kaskade::Laplace< Scalar, dim, components, isotropic >::d2(), Kaskade::ScalarLaplace< Scalar, dim, isotropic >::d2(), Kaskade::ConstantMapper< ScalarType, GV >::Converter::global(), Kaskade::ScalarConverter< Cell, Scalar >::global(), and Kaskade::Elastomechanics::FirstPiolaKirchhoffStress< HyperelasticEnergy, StrainTensor >::spkStressD1().

◆ hessian

template<typename Scalar, int dim, int components = 1>
Tensor<Scalar,components,dim,dim> Kaskade::VariationalArg< Scalar, dim, components >::hessian

◆ value


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