An integration point source class with an identifier to attach data and a quadrature weight and integration element. More...
#include <dumux/multidomain/embedded/integrationpointsource.hh>
An integration point source class with an identifier to attach data and a quadrature weight and integration element.
Public Types | |
using | IdType = std::size_t |
export the id type More... | |
using | GlobalPosition = GlobalPosition |
Export the position type. More... | |
using | Values = SourceValues |
Export the value type. More... | |
Public Member Functions | |
IntegrationPointSource (GlobalPosition pos, SourceValues values, IdType id, Scalar qpweight, Scalar integrationElement, std::size_t elementIndex) | |
Constructor for integration point sources. More... | |
IntegrationPointSource (GlobalPosition pos, IdType id, Scalar qpweight, Scalar integrationElement, std::size_t elementIndex) | |
Scalar | quadratureWeight () const |
Scalar | integrationElement () const |
void | setQuadratureWeight (const Scalar qpWeight) |
void | setIntegrationElement (const Scalar ie) |
std::size_t | elementIndex () const |
The index of the element this intergration point source is associated with. More... | |
IntegrationPointSource & | operator= (const SourceValues &values) |
Convenience = operator overload modifying only the values. More... | |
IntegrationPointSource & | operator= (Scalar s) |
Convenience = operator overload modifying only the values. More... | |
IdType | id () const |
return the sources identifier 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 |
Export the position type.
|
inherited |
export the id type
|
inherited |
Export the value type.
|
inline |
Constructor for integration point sources.
|
inline |
Constructor for integration point sources, when there is no value known at the time of initialization
|
inline |
The index of the element this intergration point source is associated with.
|
inlineinherited |
get the number of embeddings for this point source
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.
|
inlineinherited |
return the sources identifier
|
inline |
|
inlineinherited |
Convenience *= operator overload modifying only the values.
|
inlineinherited |
Convenience += operator overload modifying only the values.
|
inlineinherited |
Convenience -= operator overload modifying only the values.
|
inlineinherited |
Convenience /= operator overload modifying only the values.
|
inline |
Convenience = operator overload modifying only the values.
|
inline |
Convenience = operator overload modifying only the values.
|
inlineinherited |
return the source position
|
inline |
|
inlineinherited |
set the number of embeddings for this point source
|
inline |
|
inline |
|
inlineinherited |
an update function called before adding the value
|
inlineinherited |
return the source values
|
protectedinherited |
value of the point source for each equation