version 3.11-dev
Loading...
Searching...
No Matches

A point source data class used for integration in multidimensional models. More...

#include <dumux/multidomain/embedded/pointsourcedata.hh>

Inheritance diagram for Dumux::PointSourceDataCircleAverage< MDTraits >:

Description

template<class MDTraits>
class Dumux::PointSourceDataCircleAverage< MDTraits >
Note
The point source and related data are connected via an identifier (id) When explicitly computing the circle average, i.e. the pressure for the source term is computed as an integral over the circle describing the surface of the one-dimensional tube. This exact determination of the bulk pressure is necessary for convergence studies.

Classes

struct  CircleInterpolation
 The circle average of the bulk solution: a weight per bulk degree of freedom (the weights add up to one) and the bulk elements on the circle. More...

Public Member Functions

PrimaryVariables< bulkIdx > interpolateBulk (const SolutionVector< bulkIdx > &sol) const
void addCircleInterpolation (std::shared_ptr< const CircleInterpolation > circle)
 Use the circle average for the bulk values, shared with the other point sources on the circle.
void addCircleInterpolation (const std::vector< const std::vector< GridIndex< bulkIdx > > * > &circleDofIndices, const std::vector< ShapeValues > &circleShapeValues, const std::vector< Scalar > &circleIpWeight, const std::vector< GridIndex< bulkIdx > > &circleStencil)
void addCircleInterpolation (const std::vector< Scalar > &circleIpWeight, const std::vector< GridIndex< bulkIdx > > &circleStencil)
const std::vector< GridIndex< bulkIdx > > & circleStencil () const
 The bulk elements on the circle, each once.
void addBulkInterpolation (const ShapeValues &shapeValues, const std::vector< GridIndex< bulkIdx > > &dofIndices, GridIndex< bulkIdx > eIdx)
 Add the interpolation data in the bulk domain.
void addBulkInterpolation (GridIndex< bulkIdx > eIdx)
void addLowDimInterpolation (const ShapeValues &shapeValues, const std::vector< GridIndex< lowDimIdx > > &dofIndices, GridIndex< lowDimIdx > eIdx)
 Add the interpolation data in the lower-dimensional domain.
void addLowDimInterpolation (GridIndex< lowDimIdx > eIdx)
PrimaryVariables< lowDimIdx > interpolateLowDim (const SolutionVector< lowDimIdx > &sol) const
GridIndex< lowDimIdx > lowDimElementIdx () const
GridIndex< bulkIdx > bulkElementIdx () const

Static Public Member Functions

static std::shared_ptr< const CircleInterpolation > makeCircleInterpolation (const std::vector< const std::vector< GridIndex< bulkIdx > > * > &circleDofIndices, const std::vector< ShapeValues > &circleShapeValues, const std::vector< Scalar > &circleIpWeight, const std::vector< GridIndex< bulkIdx > > &circleStencil)
 The circle average from the interpolation data of the circle points (control-volume finite element methods).
static std::shared_ptr< const CircleInterpolation > makeCircleInterpolation (const std::vector< Scalar > &circleIpWeight, const std::vector< GridIndex< bulkIdx > > &circleStencil)
 The circle average from the interpolation data of the circle points (cell-centered methods).

Member Function Documentation

◆ addBulkInterpolation() [1/2]

template<class MDTraits>
void Dumux::PointSourceData< MDTraits >::addBulkInterpolation ( const ShapeValues & shapeValues,
const std::vector< GridIndex< bulkIdx > > & dofIndices,
GridIndex< bulkIdx > eIdx )
inlineinherited
Parameters
shapeValuesthe values of the basis functions of the local dofs at the point source
dofIndicesthe global indices of the local dofs, in the order of the basis functions
eIdxthe index of the element containing the point source

◆ addBulkInterpolation() [2/2]

template<class MDTraits>
void Dumux::PointSourceData< MDTraits >::addBulkInterpolation ( GridIndex< bulkIdx > eIdx)
inlineinherited

◆ addCircleInterpolation() [1/3]

template<class MDTraits>
void Dumux::PointSourceDataCircleAverage< MDTraits >::addCircleInterpolation ( const std::vector< const std::vector< GridIndex< bulkIdx > > * > & circleDofIndices,
const std::vector< ShapeValues > & circleShapeValues,
const std::vector< Scalar > & circleIpWeight,
const std::vector< GridIndex< bulkIdx > > & circleStencil )
inline

◆ addCircleInterpolation() [2/3]

template<class MDTraits>
void Dumux::PointSourceDataCircleAverage< MDTraits >::addCircleInterpolation ( const std::vector< Scalar > & circleIpWeight,
const std::vector< GridIndex< bulkIdx > > & circleStencil )
inline

◆ addCircleInterpolation() [3/3]

template<class MDTraits>
void Dumux::PointSourceDataCircleAverage< MDTraits >::addCircleInterpolation ( std::shared_ptr< const CircleInterpolation > circle)
inline

◆ addLowDimInterpolation() [1/2]

template<class MDTraits>
void Dumux::PointSourceData< MDTraits >::addLowDimInterpolation ( const ShapeValues & shapeValues,
const std::vector< GridIndex< lowDimIdx > > & dofIndices,
GridIndex< lowDimIdx > eIdx )
inlineinherited
Parameters
shapeValuesthe values of the basis functions of the local dofs at the point source
dofIndicesthe global indices of the local dofs, in the order of the basis functions
eIdxthe index of the element containing the point source

◆ addLowDimInterpolation() [2/2]

template<class MDTraits>
void Dumux::PointSourceData< MDTraits >::addLowDimInterpolation ( GridIndex< lowDimIdx > eIdx)
inlineinherited

◆ bulkElementIdx()

template<class MDTraits>
GridIndex< bulkIdx > Dumux::PointSourceData< MDTraits >::bulkElementIdx ( ) const
inlineinherited

◆ circleStencil()

template<class MDTraits>
const std::vector< GridIndex< bulkIdx > > & Dumux::PointSourceDataCircleAverage< MDTraits >::circleStencil ( ) const
inline

◆ interpolateBulk()

template<class MDTraits>
PrimaryVariables< bulkIdx > Dumux::PointSourceDataCircleAverage< MDTraits >::interpolateBulk ( const SolutionVector< bulkIdx > & sol) const
inline

◆ interpolateLowDim()

template<class MDTraits>
PrimaryVariables< lowDimIdx > Dumux::PointSourceData< MDTraits >::interpolateLowDim ( const SolutionVector< lowDimIdx > & sol) const
inlineinherited

◆ lowDimElementIdx()

template<class MDTraits>
GridIndex< lowDimIdx > Dumux::PointSourceData< MDTraits >::lowDimElementIdx ( ) const
inlineinherited

◆ makeCircleInterpolation() [1/2]

template<class MDTraits>
std::shared_ptr< const CircleInterpolation > Dumux::PointSourceDataCircleAverage< MDTraits >::makeCircleInterpolation ( const std::vector< const std::vector< GridIndex< bulkIdx > > * > & circleDofIndices,
const std::vector< ShapeValues > & circleShapeValues,
const std::vector< Scalar > & circleIpWeight,
const std::vector< GridIndex< bulkIdx > > & circleStencil )
inlinestatic
Parameters
circleDofIndicesthe bulk dofs of the element of each circle point
circleShapeValuesthe values of the basis functions at each circle point
circleIpWeightthe weight of each circle point
circleStencilthe bulk element of each circle point

◆ makeCircleInterpolation() [2/2]

template<class MDTraits>
std::shared_ptr< const CircleInterpolation > Dumux::PointSourceDataCircleAverage< MDTraits >::makeCircleInterpolation ( const std::vector< Scalar > & circleIpWeight,
const std::vector< GridIndex< bulkIdx > > & circleStencil )
inlinestatic
Parameters
circleIpWeightthe weight of each circle point
circleStencilthe bulk element of each circle point

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