A point source class with an identifier to attach data. More...
#include <dumux/common/pointsource.hh>
| GlobalPosition | the position type |
| SourceValues | the a vector type storing the source for all equations |
| I | the ID type |
Public Types | |
| using | IdType = I |
| export the id type More... | |
| using | GlobalPosition = GlobalPosition |
| Export the position type. More... | |
| using | Values = SourceValues |
| Export the value type. More... | |
Public Member Functions | |
| IdPointSource (GlobalPosition pos, SourceValues values, IdType id) | |
| Constructor for constant point sources. More... | |
| IdPointSource (GlobalPosition pos, IdType id) | |
| Constructor for sol dependent point sources, when there is no. More... | |
| IdType | id () const |
| return the sources identifier More... | |
| IdPointSource & | operator= (const SourceValues &values) |
| Convenience = operator overload modifying only the values. More... | |
| IdPointSource & | operator= (Scalar s) |
| Convenience = operator overload modifying only the values. More... | |
| PointSource & | operator+= (Scalar s) |
| Convenience += operator overload modifying only the values. More... | |
| PointSource & | operator-= (Scalar s) |
| Convenience -= operator overload modifying only the values. More... | |
| PointSource & | operator*= (Scalar s) |
| Convenience *= operator overload modifying only the values. More... | |
| PointSource & | operator/= (Scalar s) |
| Convenience /= operator overload modifying only the values. More... | |
| Values | values () const |
| return the source values More... | |
| const GlobalPosition & | position () const |
| return the source position More... | |
| 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 More... | |
| void | setEmbeddings (std::size_t embeddings) |
| set the number of embeddings for this point source More... | |
| std::size_t | embeddings () const |
| get the number of embeddings for this point source More... | |
Protected Attributes | |
| Values | values_ |
| value of the point source for each equation More... | |
|
inherited |
| using Dumux::IdPointSource< GlobalPosition, SourceValues, I >::IdType = I |
|
inherited |
|
inline |
|
inline |
|
inlineinherited |
embeddings returns the number of neighboring scvs. Example: If I want to inject 1kg/s at a location that is on the inner face of an scv the point source exists in both scvs. Both have a value of 1kg/s. We then divide the value by the number of embeddings to not inject 2kg/s but 1kg/s.
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |