version 0.3.7
Ikarus::TraitsFromLocalView< LocalView, useRef > Struct Template Reference

Traits for handling local views.see https://en.wikipedia.org/wiki/Lam%C3%A9_parameters. More...

#include <ikarus/finiteelements/physicshelper.hh>

Public Types

using GridEntity = typename LocalView::Element
 
template<typename ScalarType = double>
using VectorType = std::conditional_t< useRef, Eigen::Ref< Eigen::VectorX< ScalarType > >, Eigen::VectorX< ScalarType > & >
 Type of the internal forces. More...
 
template<typename ScalarType = double>
using MatrixType = std::conditional_t< useRef, Eigen::Ref< Eigen::MatrixX< ScalarType > >, Eigen::MatrixX< ScalarType > & >
 Type of the stiffness matrix. More...
 

Static Public Attributes

static constexpr int worlddim = GridEntity::Geometry::coorddimension
 Dimension of the world space. More...
 
static constexpr int mydim = GridEntity::mydimension
 Dimension of the geometry. More...
 
static constexpr int dimension = GridEntity::dimension
 Dimension of the grid. More...
 

Detailed Description

template<typename LocalView, bool useRef = false>
struct Ikarus::TraitsFromLocalView< LocalView, useRef >
Template Parameters
LocalViewType of the local view.
useRefBoolean indicating whether to use Eigen::Ref for VectorType and MatrixType.Structure representing Young's modulus and Poisson's ratio.

Member Typedef Documentation

◆ GridEntity

template<typename LocalView , bool useRef = false>
using Ikarus::TraitsFromLocalView< LocalView, useRef >::GridEntity = typename LocalView::Element

◆ MatrixType

template<typename LocalView , bool useRef = false>
template<typename ScalarType = double>
using Ikarus::TraitsFromLocalView< LocalView, useRef >::MatrixType = std::conditional_t<useRef, Eigen::Ref<Eigen::MatrixX<ScalarType> >, Eigen::MatrixX<ScalarType>&>

◆ VectorType

template<typename LocalView , bool useRef = false>
template<typename ScalarType = double>
using Ikarus::TraitsFromLocalView< LocalView, useRef >::VectorType = std::conditional_t<useRef, Eigen::Ref<Eigen::VectorX<ScalarType> >, Eigen::VectorX<ScalarType>&>

Member Data Documentation

◆ dimension

template<typename LocalView , bool useRef = false>
constexpr int Ikarus::TraitsFromLocalView< LocalView, useRef >::dimension = GridEntity::dimension
staticconstexpr

◆ mydim

template<typename LocalView , bool useRef = false>
constexpr int Ikarus::TraitsFromLocalView< LocalView, useRef >::mydim = GridEntity::mydimension
staticconstexpr

◆ worlddim

template<typename LocalView , bool useRef = false>
constexpr int Ikarus::TraitsFromLocalView< LocalView, useRef >::worlddim = GridEntity::Geometry::coorddimension
staticconstexpr

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