version 0.4.1
Ikarus::FEHelper Namespace Reference

Functions

template<typename Traits , typename Vector , typename ST >
auto localSolutionBlockVector (const Vector &x, const typename Traits::LocalView &localView, const std::optional< std::reference_wrapper< const Eigen::VectorX< ST > > > &dx=std::nullopt)
 Gets the local solution Dune block vector. More...
 
template<typename LocalView >
void globalIndicesFromLocalView (const LocalView &localView, std::vector< typename LocalView::MultiIndex > &globalIndices)
 Get the global indices for the provided local view of an element. More...
 
template<typename FiniteElement >
void globalIndices (const FiniteElement &fe, std::vector< typename FiniteElement::LocalView::MultiIndex > &globalIndices)
 Get the global indices for the provided finite element. More...
 

Function Documentation

◆ globalIndices()

template<typename FiniteElement >
void Ikarus::FEHelper::globalIndices ( const FiniteElement &  fe,
std::vector< typename FiniteElement::LocalView::MultiIndex > &  globalIndices 
)

The global indices are collected in a FlatInterLeaved order or in BlockedInterleaved order. This function can handle a scalar basis, power basis, and a composite basis.

Template Parameters
FiniteElementType of the finite element.
Parameters
feThe finite element.
globalIndicesOutput vector to store global indices.
Here is the caller graph for this function:

◆ globalIndicesFromLocalView()

template<typename LocalView >
void Ikarus::FEHelper::globalIndicesFromLocalView ( const LocalView &  localView,
std::vector< typename LocalView::MultiIndex > &  globalIndices 
)
Template Parameters
LocalViewType of the local view
Parameters
localViewLocal view of the element.
globalIndicesOutput vector to store global indices.
Here is the caller graph for this function:

◆ localSolutionBlockVector()

template<typename Traits , typename Vector , typename ST >
auto Ikarus::FEHelper::localSolutionBlockVector ( const Vector &  x,
const typename Traits::LocalView &  localView,
const std::optional< std::reference_wrapper< const Eigen::VectorX< ST > > > &  dx = std::nullopt 
)
Template Parameters
TraitsType of the FE traits.
STScalar type for the local solution vector.
VectorGlobal solution vector
Parameters
xThe global solution vector.
localViewLocal view of the element.
dxOptional global solution vector.
Returns
A Dune block vector representing the solution quantities at each node.