13#ifndef DUMUX_DISCRETIZATION_FE_ELEMENT_GEOMETRY_HH
14#define DUMUX_DISCRETIZATION_FE_ELEMENT_GEOMETRY_HH
27template<
class Gr
idGeometry>
30 using GridView =
typename GridGeometry::GridView;
32 using FEBasis =
typename GridGeometry::FEBasis;
33 using FEBasisLocalView =
typename FEBasis::LocalView;
37 using Element =
typename GridView::template Codim<0>::Entity;
42 , feBasisLocalView_(gg.feBasis().
localView())
53 return std::move(*
this);
58 { feBasisLocalView_.bind(
element); }
68 return std::move(*
this);
77 {
return feBasisLocalView_.isBound(); }
81 {
return feBasisLocalView_.element(); }
85 {
return feBasisLocalView_; }
89 {
return gridGeometry_; }
92 const GridGeometry& gridGeometry_;
93 FEBasisLocalView feBasisLocalView_;
Grid geometry local view, which is a wrapper around a finite element basis local view.
Definition: feelementgeometry.hh:29
const Element & element() const
The bound element.
Definition: feelementgeometry.hh:80
bool isBound() const
Returns true if bind/bindElement has already been called.
Definition: feelementgeometry.hh:76
FEElementGeometry bindElement(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition: feelementgeometry.hh:65
const GridGeometry & gridGeometry() const
Return reference to the grid geometry.
Definition: feelementgeometry.hh:88
typename GridView::template Codim< 0 >::Entity Element
export type of the element
Definition: feelementgeometry.hh:37
FEElementGeometry bind(const Element &element) &&
bind the local view (r-value overload) This overload is called when an instance of this class is a te...
Definition: feelementgeometry.hh:50
void bind(const Element &element) &
Prepare element-local data.
Definition: feelementgeometry.hh:57
FEElementGeometry(const GridGeometry &gg)
constructor taking grid geometry
Definition: feelementgeometry.hh:40
void bindElement(const Element &element) &
Prepare element-local data.
Definition: feelementgeometry.hh:72
const FEBasisLocalView & feBasisLocalView() const
Return the finite element basis local view.
Definition: feelementgeometry.hh:84
GridCache::LocalView localView(const GridCache &gridCache)
Free function to get the local view of a grid cache object.
Definition: localview.hh:26