3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Protected Attributes | List of all members
Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType > Class Template Reference

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>

Inheritance diagram for Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >:
Inheritance graph

Description

template<class GlobalPosition, class SourceValues, typename IdType = std::size_t>
class Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >

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, const std::vector< std::size_t > &elementIndices)
 Constructor for integration point sources. More...
 
 IntegrationPointSource (GlobalPosition pos, IdType id, Scalar qpweight, Scalar integrationElement, const std::vector< std::size_t > &elementIndices)
 Constructor for integration point sources, when there is no. More...
 
Scalar quadratureWeight () const
 
Scalar integrationElement () const
 
const std::vector< std::size_t > & elementIndices () const
 
IntegrationPointSourceoperator= (const SourceValues &values)
 Convenience = operator overload modifying only the values. More...
 
IntegrationPointSourceoperator= (Scalar s)
 Convenience = operator overload modifying only the values. More...
 
IdType id () const
 return the sources identifier More...
 
PointSourceoperator+= (Scalar s)
 Convenience += operator overload modifying only the values. More...
 
PointSourceoperator-= (Scalar s)
 Convenience -= operator overload modifying only the values. More...
 
PointSourceoperator*= (Scalar s)
 Convenience *= operator overload modifying only the values. More...
 
PointSourceoperator/= (Scalar s)
 Convenience /= operator overload modifying only the values. More...
 
Values values () const
 return the source values More...
 
const GlobalPositionposition () 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...
 

Member Typedef Documentation

◆ GlobalPosition

using Dumux::PointSource< GlobalPosition , SourceValues >::GlobalPosition = GlobalPosition
inherited

Export the position type.

◆ IdType

using Dumux::IdPointSource< GlobalPosition, SourceValues, std::size_t >::IdType = std::size_t
inherited

export the id type

◆ Values

using Dumux::PointSource< GlobalPosition , SourceValues >::Values = SourceValues
inherited

Export the value type.

Constructor & Destructor Documentation

◆ IntegrationPointSource() [1/2]

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::IntegrationPointSource ( GlobalPosition  pos,
SourceValues  values,
IdType  id,
Scalar  qpweight,
Scalar  integrationElement,
const std::vector< std::size_t > &  elementIndices 
)
inline

Constructor for integration point sources.

◆ IntegrationPointSource() [2/2]

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::IntegrationPointSource ( GlobalPosition  pos,
IdType  id,
Scalar  qpweight,
Scalar  integrationElement,
const std::vector< std::size_t > &  elementIndices 
)
inline

Constructor for integration point sources, when there is no.

Member Function Documentation

◆ elementIndices()

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
const std::vector< std::size_t > & Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::elementIndices ( ) const
inline

◆ embeddings()

std::size_t Dumux::PointSource< GlobalPosition , SourceValues >::embeddings ( ) const
inlineinherited

get the number of embeddings for this point source

Note
A point source might be located on the intersection between several scvs. If so, there are point sources for every neighboring scv with the same position. 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.
This division is done in the problem.scvPointSources() if this behaviour is not explicitly changed by e.g. overloading this function in the problem implementation.

◆ id()

IdType Dumux::IdPointSource< GlobalPosition, SourceValues, std::size_t >::id ( ) const
inlineinherited

return the sources identifier

◆ integrationElement()

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
Scalar Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::integrationElement ( ) const
inline

◆ operator*=()

PointSource & Dumux::PointSource< GlobalPosition , SourceValues >::operator*= ( Scalar  s)
inlineinherited

Convenience *= operator overload modifying only the values.

◆ operator+=()

PointSource & Dumux::PointSource< GlobalPosition , SourceValues >::operator+= ( Scalar  s)
inlineinherited

Convenience += operator overload modifying only the values.

◆ operator-=()

PointSource & Dumux::PointSource< GlobalPosition , SourceValues >::operator-= ( Scalar  s)
inlineinherited

Convenience -= operator overload modifying only the values.

◆ operator/=()

PointSource & Dumux::PointSource< GlobalPosition , SourceValues >::operator/= ( Scalar  s)
inlineinherited

Convenience /= operator overload modifying only the values.

◆ operator=() [1/2]

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
IntegrationPointSource & Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::operator= ( const SourceValues &  values)
inline

Convenience = operator overload modifying only the values.

◆ operator=() [2/2]

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
IntegrationPointSource & Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::operator= ( Scalar  s)
inline

Convenience = operator overload modifying only the values.

◆ position()

const GlobalPosition & Dumux::PointSource< GlobalPosition , SourceValues >::position ( ) const
inlineinherited

return the source position

◆ quadratureWeight()

template<class GlobalPosition , class SourceValues , typename IdType = std::size_t>
Scalar Dumux::IntegrationPointSource< GlobalPosition, SourceValues, IdType >::quadratureWeight ( ) const
inline

◆ setEmbeddings()

void Dumux::PointSource< GlobalPosition , SourceValues >::setEmbeddings ( std::size_t  embeddings)
inlineinherited

set the number of embeddings for this point source

◆ update()

void Dumux::PointSource< GlobalPosition , SourceValues >::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 
)
inlineinherited

an update function called before adding the value

◆ values()

Values Dumux::PointSource< GlobalPosition , SourceValues >::values ( ) const
inlineinherited

return the source values

Member Data Documentation

◆ values_

Values Dumux::PointSource< GlobalPosition , SourceValues >::values_
protectedinherited

value of the point source for each equation


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