template<class Context, class Function, class LocalPosition = typename Context::GlobalPosition>
class Dumux::Experimental::PointSources< Context, Function, LocalPosition >
A point source acts on a local dof with a control volume if it lies in its sub-control volume (contexts(elemDisc, scv)), and on a local dof without control volume, which includes all local dofs of finite element discretizations, with the value of its basis function at the point (contexts(elemDisc, element)).
- Template Parameters
-
| Context | the point source context type (e.g. PointSourceContext) |
| Function | callable with signature Values(const ElementDiscretization&, const ElementVariables&, const ScvPointSourceContext<Context>&) and with const LocalPointSourceContext<Context, LocalPosition>& as last argument if the discretization has local dofs without control volume |
| LocalPosition | the position type in local element coordinates |
|
| | PointSources ()=default |
| | PointSources (MapType map, Function f) |
| | PointSources (MapType map, ElementMapType elementMap, Function f) |
| bool | empty () const |
| | Returns whether no point sources have been registered.
|
| template<class ElementDiscretization> |
| std::span< const ScvContext > | contexts (const ElementDiscretization &elemDisc, const typename ElementDiscretization::SubControlVolume &scv) const |
| | Return the context range of a sub-control volume.
|
| template<class ElementDiscretization> |
| std::span< const ElementContext > | contexts (const ElementDiscretization &elemDisc, const typename ElementDiscretization::Element &element) const |
| | Return the context range of the whole element, used for the local dofs without control volume.
|
| template<class ElementDiscretization, class ElementVariables, class Ctx> |
| auto | eval (const ElementDiscretization &elemDisc, const ElementVariables &elemVars, const Ctx &context) const |
| | Evaluate the source for a given context, divided by the number of embeddings of the context.
|