ug4
ug::FVLineSourceOrSink< 1, TData > Class Template Reference

#include <fv1_sss.h>

+ Inheritance diagram for ug::FVLineSourceOrSink< 1, TData >:

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, MathVector< dim > &ls, MathVector< dim > &le)
 test whether a source/sink point corresponds to a given corner of the element More...
 
const MathVector< dim > & from_position ()
 returns the beginning of the line segment More...
 
 FVLineSourceOrSink (const MathVector< dim > &_point1, const MathVector< dim > &_point2)
 class constructor (with the default constructor for data) More...
 
 FVLineSourceOrSink (const MathVector< dim > &_point1, const MathVector< dim > &_point2, const TData &_data)
 class constructor (with the copy constructor for data) More...
 
 FVLineSourceOrSink (const std::vector< number > &_point1, const std::vector< number > &_point2)
 class constructor (with the default constructor for data) More...
 
const MathVector< dim > & to_position ()
 returns the end of the line segment More...
 

Private Attributes

MathVector< dimpoint1
 beginning of the line segment More...
 
MathVector< dimpoint2
 end of the line segment More...
 

Static Private Attributes

static const int dim = 1
 

Detailed Description

template<typename TData>
class ug::FVLineSourceOrSink< 1, TData >

Partial specialization of for 1d: No line sources and sinks in 1d Base class for line sources and sinks

Constructor & Destructor Documentation

◆ FVLineSourceOrSink() [1/3]

template<typename TData >
ug::FVLineSourceOrSink< 1, TData >::FVLineSourceOrSink ( const MathVector< dim > &  _point1,
const MathVector< dim > &  _point2 
)
inline

class constructor (with the default constructor for data)

Parameters
_point1beginning of the line segment
_point2end of the line segment

◆ FVLineSourceOrSink() [2/3]

template<typename TData >
ug::FVLineSourceOrSink< 1, TData >::FVLineSourceOrSink ( const MathVector< dim > &  _point1,
const MathVector< dim > &  _point2,
const TData &  _data 
)
inline

class constructor (with the copy constructor for data)

Parameters
_point1beginning of the line segment
_point2end of the line segment
_datathe data to copy

◆ FVLineSourceOrSink() [3/3]

template<typename TData >
ug::FVLineSourceOrSink< 1, TData >::FVLineSourceOrSink ( const std::vector< number > &  _point1,
const std::vector< number > &  _point2 
)
inline

class constructor (with the default constructor for data)

Parameters
_point1beginning of the line segment
_point2end of the line segment

References UG_THROW.

Member Function Documentation

◆ corresponds_to()

template<typename TData >
template<typename TElem , typename TAAPos , typename TFVGeom >
bool ug::FVLineSourceOrSink< 1, TData >::corresponds_to ( TElem *  elem,
Grid grid,
TAAPos &  aaPos,
const TFVGeom &  geo,
size_t  co,
MathVector< dim > &  ls,
MathVector< dim > &  le 
)
inline

test whether a source/sink point corresponds to a given corner of the element

Parameters
[in]elemthe element
[in]gridthe grid
[in]aaPosposition of the vertices
[in]geoFV geometry (initialized for 'elem')
[in]cocorner to get the contribution for
[out]lsbeginning of the subsegment
[out]leend of the subsegment

References UG_THROW.

◆ from_position()

template<typename TData >
const MathVector<dim>& ug::FVLineSourceOrSink< 1, TData >::from_position ( )
inline

returns the beginning of the line segment

References ug::FVLineSourceOrSink< dim, TData >::point1.

◆ to_position()

template<typename TData >
const MathVector<dim>& ug::FVLineSourceOrSink< 1, TData >::to_position ( )
inline

returns the end of the line segment

References ug::FVLineSourceOrSink< dim, TData >::point2.

Member Data Documentation

◆ dim

template<typename TData >
const int ug::FVLineSourceOrSink< 1, TData >::dim = 1
staticprivate

◆ point1

template<typename TData >
MathVector<dim> ug::FVLineSourceOrSink< 1, TData >::point1
private

beginning of the line segment

◆ point2

template<typename TData >
MathVector<dim> ug::FVLineSourceOrSink< 1, TData >::point2
private

end of the line segment


The documentation for this class was generated from the following file: