A point source base class. More...
#include <dumux/common/pointsource.hh>

A point source base class.
| PositionType | the position type |
| ValueType | the a vector type storing the source for all equations |
Public Types | |
| using | Scalar = std::decay_t<decltype(std::declval<ValueType>()[0])> |
| Export the scalar type. | |
| using | GlobalPosition = PositionType |
| Export the position type. | |
| using | Values = ValueType |
| Export the value type. | |
Public Member Functions | |
| PointSource (GlobalPosition pos, Values values) | |
| Constructor for constant point sources. | |
| PointSource (GlobalPosition pos) | |
| Constructor for sol dependent point sources, when there is no. | |
| PointSource & | operator+= (Scalar s) |
| Convenience += operator overload modifying only the values. | |
| PointSource & | operator-= (Scalar s) |
| Convenience -= operator overload modifying only the values. | |
| PointSource & | operator*= (Scalar s) |
| Convenience *= operator overload modifying only the values. | |
| PointSource & | operator/= (Scalar s) |
| Convenience /= operator overload modifying only the values. | |
| PointSource & | operator= (const Values &values) |
| Convenience = operator overload modifying only the values. | |
| PointSource & | operator= (Scalar s) |
| Convenience = operator overload modifying only the values. | |
| Values | values () const |
| return the source values | |
| const GlobalPosition & | position () const |
| return the source position | |
| template<class Problem, class FVElementGeometry, class ElementVolumeVariables> | |
| void | update (const Problem &problem, const typename FVElementGeometry::GridGeometry::GridView::template Codim< 0 >::Entity &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const typename FVElementGeometry::SubControlVolume &scv) |
| an update function called before adding the value | |
| void | setEmbeddings (std::size_t embeddings) |
| set the number of embeddings for this point source | |
| std::size_t | embeddings () const |
| get the number of embeddings for this point source | |
Protected Attributes | |
| Values | values_ |
| value of the point source for each equation | |
| using Dumux::PointSource< PositionType, ValueType >::GlobalPosition = PositionType |
Export the position type.
| using Dumux::PointSource< PositionType, ValueType >::Scalar = std::decay_t<decltype(std::declval<ValueType>()[0])> |
Export the scalar type.
| using Dumux::PointSource< PositionType, ValueType >::Values = ValueType |
Export the value type.
|
inline |
Constructor for constant point sources.
|
inline |
Constructor for sol dependent point sources, when there is no.
|
inline |
get the number of embeddings for this point source
|
inline |
Convenience *= operator overload modifying only the values.
|
inline |
Convenience += operator overload modifying only the values.
|
inline |
Convenience -= operator overload modifying only the values.
|
inline |
Convenience /= operator overload modifying only the values.
|
inline |
Convenience = operator overload modifying only the values.
|
inline |
Convenience = operator overload modifying only the values.
|
inline |
return the source position
|
inline |
set the number of embeddings for this point source
|
inline |
an update function called before adding the value
|
inline |
return the source values
|
protected |
value of the point source for each equation