ug4
|
Base class for the point sources and sinks. More...
#include <fv1_sss.h>
Public Member Functions | |
template<typename TElem , typename TAAPos , typename TFVGeom > | |
bool | corresponds_to (TElem *elem, Grid &grid, TAAPos &aaPos, const TFVGeom &geo, size_t co) |
test whether a source/sink point corresponds to a given corner of the element More... | |
FVPointSourceOrSink (const MathVector< dim > &_point) | |
class constructor (with the default constructor for data) More... | |
FVPointSourceOrSink (const MathVector< dim > &_point, const TData &_data) | |
class constructor (with the copy constructor for data) More... | |
FVPointSourceOrSink (const std::vector< number > &_point) | |
class constructor (with the default constructor for data) More... | |
const MathVector< dim > & | position () |
returns the point of the source/sink More... | |
Private Attributes | |
MathVector< dim > | point |
the point of the source/sink More... | |
Base class for the point sources and sinks.
|
inline |
class constructor (with the default constructor for data)
_point | coordinates of the source/sink |
|
inline |
class constructor (with the copy constructor for data)
_point | coordinates of the source/sink |
_data | the data to copy |
|
inline |
class constructor (with the default constructor for data)
_point | coordinates of the source/sink |
References dim, ug::FVPointSourceOrSink< dim, TData >::point, and UG_THROW.
bool ug::FVPointSourceOrSink< dim, TData >::corresponds_to | ( | TElem * | elem, |
Grid & | grid, | ||
TAAPos & | aaPos, | ||
const TFVGeom & | geo, | ||
size_t | co | ||
) |
test whether a source/sink point corresponds to a given corner of the element
Test whether a source/sink point corresponds to a given corner of the element. Note that TElem
must specify the dimensionality of the element. Thus, GridObject
is not a proper type for TElem
. It should be at least Edge
, Face
, Volume
or derived classes.
elem | the element |
grid | the grid |
aaPos | position of the vertices |
geo | FV geometry (initialized for 'elem') |
co | corner to get the contribution for |
References ug::ContainsPoint(), ug::VecDot(), and ug::VecSubtract().
Referenced by ug::FVSingularSourcesAndSinks< dim, TPointData, TLineData >::point_iterator< TElem, TAAPos, TFVGeom >::next_sss().
|
inline |
returns the point of the source/sink
References ug::FVPointSourceOrSink< dim, TData >::point.
Referenced by ug::FVSingularSourcesAndSinks< dim, TPointData, TLineData >::point_iterator< TElem, TAAPos, TFVGeom >::next_sss().
|
private |
the point of the source/sink
Referenced by ug::FVPointSourceOrSink< dim, TData >::FVPointSourceOrSink(), and ug::FVPointSourceOrSink< dim, TData >::position().