13#ifndef DUMUX_MULTIDOMAIN_EMBEDDED_ELEMENTDOFS_HH
14#define DUMUX_MULTIDOMAIN_EMBEDDED_ELEMENTDOFS_HH
20#include <dumux/common/typetraits/localdofs_.hh>
31template<
class ElementDiscretization>
34 using LocalDof = std::decay_t<decltype(*localDofs(std::declval<const ElementDiscretization&>()).begin())>;
35 std::vector<typename LocalDof::GridIndexType> dofIndices(Dumux::Detail::LocalDofs::numLocalDofs(elemDisc));
36 for (
const auto& localDof :
localDofs(elemDisc))
37 dofIndices[localDof.index()] = localDof.dofIndex();
50template<
class Gr
idDiscretization,
class Geometry,
class GlobalPosition,
class ShapeValues>
52 const Geometry& geometry,
53 const GlobalPosition& globalPos,
54 ShapeValues& shapeValues)
56 const auto ipLocal = geometry.local(globalPos);
57 gridDiscretization.feCache().get(geometry.type()).localBasis().evaluateFunction(ipLocal, shapeValues);
void basisFunctionValues(const GridDiscretization &gridDiscretization, const Geometry &geometry, const GlobalPosition &globalPos, ShapeValues &shapeValues)
The values of the basis functions of an element at a position.
Definition elementdofs.hh:51
auto elementDofIndices(const ElementDiscretization &elemDisc)
The global dof indices of the local dofs of the bound element of a control-volume finite element or f...
Definition elementdofs.hh:32
decltype(auto) gridDiscretization(const T &t, Args &&... args)
The grid discretization.
Definition griddiscretization.hh:98
Class representing dofs on elements for control-volume finite element schemes.
Definition circlepoints.hh:24
auto localDofs(const FVElementGeometry &fvGeometry)
range over local dofs
Definition localdof.hh:50