Combines a point source map with a user-provided evaluation function.
More...
#include <dumux/common/pointsources.hh>
template<class Context, class Function>
class Dumux::Experimental::PointSources< Context, Function >
- Template Parameters
-
| Context | the point source context type (e.g. PointSourceContext) |
| Function | callable with signature Values(const ElementDiscretization&, const ElementVariables&, const ScvPointSourceContext<Context>&) |
|
| using | MapType = std::map<std::pair<std::size_t, std::size_t>, std::vector<ScvContext>> |
|
| | PointSources ()=default |
| | PointSources (MapType map, 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> |
| auto | contexts (const ElementDiscretization &elemDisc, const typename ElementDiscretization::Element &element) const |
| | Return the context range of the whole element.
|
| template<class ElementDiscretization, class ElementVariables> |
| auto | eval (const ElementDiscretization &elemDisc, const ElementVariables &elemVars, const ScvContext &context) const |
| | Evaluate the source for a given context.
|
◆ MapType
template<class Context, class Function>
◆ PointSources() [1/2]
template<class Context, class Function>
◆ PointSources() [2/2]
template<class Context, class Function>
◆ contexts() [1/2]
template<class Context, class Function>
template<class ElementDiscretization>
| auto Dumux::Experimental::PointSources< Context, Function >::contexts |
( |
const ElementDiscretization & | elemDisc, |
|
|
const typename ElementDiscretization::Element & | element ) const |
|
inline |
◆ contexts() [2/2]
template<class Context, class Function>
template<class ElementDiscretization>
| std::span< const ScvContext > Dumux::Experimental::PointSources< Context, Function >::contexts |
( |
const ElementDiscretization & | elemDisc, |
|
|
const typename ElementDiscretization::SubControlVolume & | scv ) const |
|
inline |
◆ empty()
template<class Context, class Function>
◆ eval()
template<class Context, class Function>
template<class ElementDiscretization, class ElementVariables>
| auto Dumux::Experimental::PointSources< Context, Function >::eval |
( |
const ElementDiscretization & | elemDisc, |
|
|
const ElementVariables & | elemVars, |
|
|
const ScvContext & | context ) const |
|
inline |
The documentation for this class was generated from the following file: