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... | |
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.
FiniteElement | Type of the finite element. |
fe | The finite element. |
globalIndices | Output vector to store global indices. |
void Ikarus::FEHelper::globalIndicesFromLocalView | ( | const LocalView & | localView, |
std::vector< typename LocalView::MultiIndex > & | globalIndices | ||
) |
LocalView | Type of the local view |
localView | Local view of the element. |
globalIndices | Output vector to store global indices. |
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 |
||
) |
Traits | Type of the FE traits. |
ST | Scalar type for the local solution vector. |
Vector | Global solution vector |
x | The global solution vector. |
localView | Local view of the element. |
dx | Optional global solution vector. |