dune-functions 2.9.0
|
The restriction of a finite element basis to a single element. More...
#include <dune/functions/functionspacebases/subspacelocalview.hh>
Public Types | |
using | RootLocalView = RLV |
using | GlobalBasis = SubspaceBasis< typename RootLocalView::GlobalBasis, PrefixPath > |
The global FE basis that this is a view on. More... | |
using | GridView = typename GlobalBasis::GridView |
The grid view the global FE basis lives on. More... | |
using | Element = typename GridView::template Codim< 0 >::Entity |
Type of the grid element we are bound to. More... | |
using | size_type = std::size_t |
The type used for sizes. More... | |
using | RootTree = typename RootLocalView::Tree |
Tree of local finite elements / local shape function sets. More... | |
using | Tree = typename TypeTree::ChildForTreePath< RootTree, PrefixPath > |
Tree of local finite elements / local shape function sets. More... | |
using | MultiIndex = typename RootLocalView::MultiIndex |
Type used for global numbering of the basis vectors. More... | |
Public Member Functions | |
SubspaceLocalView (const GlobalBasis &globalBasis, const PrefixPath &) | |
Construct local view for a given global finite element basis. More... | |
void | bind (const Element &e) |
Bind the view to a grid element. More... | |
const Element & | element () const |
Return the grid element that the view is bound to. More... | |
void | unbind () |
Unbind from the current element. More... | |
bool | bound () const |
Return if the view is bound to a grid element. More... | |
const Tree & | tree () const |
Return the local ansatz tree associated to the bound entity. More... | |
size_type | size () const |
Total number of degrees of freedom on this element. More... | |
size_type | maxSize () const |
Maximum local size for any element on the GridView. More... | |
MultiIndex | index (size_type i) const |
Maps from subtree index set [0..size-1] to a globally unique multi index in global basis. More... | |
const GlobalBasis & | globalBasis () const |
Return the global basis that we are a view on. More... | |
const RootLocalView & | rootLocalView () const |
Protected Attributes | |
const GlobalBasis * | globalBasis_ |
RootLocalView | rootLocalView_ |
The restriction of a finite element basis to a single element.
using Dune::Functions::SubspaceLocalView< RLV, PP >::Element = typename GridView::template Codim<0>::Entity |
Type of the grid element we are bound to.
using Dune::Functions::SubspaceLocalView< RLV, PP >::GlobalBasis = SubspaceBasis<typename RootLocalView::GlobalBasis, PrefixPath> |
The global FE basis that this is a view on.
using Dune::Functions::SubspaceLocalView< RLV, PP >::GridView = typename GlobalBasis::GridView |
The grid view the global FE basis lives on.
using Dune::Functions::SubspaceLocalView< RLV, PP >::MultiIndex = typename RootLocalView::MultiIndex |
Type used for global numbering of the basis vectors.
using Dune::Functions::SubspaceLocalView< RLV, PP >::RootLocalView = RLV |
using Dune::Functions::SubspaceLocalView< RLV, PP >::RootTree = typename RootLocalView::Tree |
Tree of local finite elements / local shape function sets.
using Dune::Functions::SubspaceLocalView< RLV, PP >::size_type = std::size_t |
The type used for sizes.
using Dune::Functions::SubspaceLocalView< RLV, PP >::Tree = typename TypeTree::ChildForTreePath<RootTree, PrefixPath> |
Tree of local finite elements / local shape function sets.
|
inline |
Construct local view for a given global finite element basis.
|
inline |
Bind the view to a grid element.
Having to bind the view to an element before being able to actually access any of its data members offers to centralize some expensive setup code in the 'bind' method, which can save a lot of run-time.
|
inline |
Return if the view is bound to a grid element.
|
inline |
Return the grid element that the view is bound to.
Dune::Exception | if the view is not bound to anything |
|
inline |
Return the global basis that we are a view on.
|
inline |
Maps from subtree index set [0..size-1] to a globally unique multi index in global basis.
|
inline |
Maximum local size for any element on the GridView.
This is the maximal size needed for local matrices and local vectors, i.e., the result is
|
inline |
|
inline |
Total number of degrees of freedom on this element.
|
inline |
Return the local ansatz tree associated to the bound entity.
|
inline |
Unbind from the current element.
Calling this method should only be a hint that the view can be unbound.
|
protected |
|
protected |