3.3.0
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::SolDependentPointSource< TypeTag > Class Template Reference

A point source class for time dependent point sources. More...

#include <dumux/common/pointsource.hh>

Inheritance diagram for Dumux::SolDependentPointSource< TypeTag >:

Description

template<class TypeTag>
class Dumux::SolDependentPointSource< TypeTag >

A point source class for time dependent point sources.

Public Types

using Values = GetPropType< TypeTag, Properties::NumEqVector >
 Export the value type. More...
 

Public Member Functions

 SolDependentPointSource (GlobalPosition pos, ValueFunction valueFunction)
 Constructor for sol dependent point sources, when there is no. More...
 
void update (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)
 an update function called before adding the value More...
 
SolDependentPointSourceoperator= (const SourceValues &values)
 Convenience = operator overload modifying only the values. More...
 
SolDependentPointSourceoperator= (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...
 
PointSourceoperator/= (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...
 

Member Typedef Documentation

◆ Values

using Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::Values = GetPropType< TypeTag, Properties::NumEqVector >
inherited

Export the value type.

Constructor & Destructor Documentation

◆ SolDependentPointSource()

template<class TypeTag >
Dumux::SolDependentPointSource< TypeTag >::SolDependentPointSource ( GlobalPosition  pos,
ValueFunction  valueFunction 
)
inline

Constructor for sol dependent point sources, when there is no.

Member Function Documentation

◆ embeddings()

std::size_t Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::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.

◆ operator*=()

PointSource & Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::operator*= ( Scalar  s)
inlineinherited

Convenience *= operator overload modifying only the values.

◆ operator+=()

PointSource & Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::operator+= ( Scalar  s)
inlineinherited

Convenience += operator overload modifying only the values.

◆ operator-=()

PointSource & Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::operator-= ( Scalar  s)
inlineinherited

Convenience -= operator overload modifying only the values.

◆ operator/=()

PointSource & Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::operator/= ( Scalar  s)
inlineinherited

Convenience /= operator overload modifying only the values.

◆ operator=() [1/2]

template<class TypeTag >
SolDependentPointSource & Dumux::SolDependentPointSource< TypeTag >::operator= ( const SourceValues &  values)
inline

Convenience = operator overload modifying only the values.

◆ operator=() [2/2]

template<class TypeTag >
SolDependentPointSource & Dumux::SolDependentPointSource< TypeTag >::operator= ( Scalar  s)
inline

Convenience = operator overload modifying only the values.

◆ position()

const GlobalPosition & Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::position ( ) const
inlineinherited

return the source position

◆ setEmbeddings()

void Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::setEmbeddings ( std::size_t  embeddings)
inlineinherited

set the number of embeddings for this point source

◆ update() [1/2]

template<class TypeTag >
void Dumux::SolDependentPointSource< TypeTag >::update ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolume &  scv 
)
inline

an update function called before adding the value

◆ update() [2/2]

void Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::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< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::values ( ) const
inlineinherited

return the source values

Member Data Documentation

◆ values_

Values Dumux::PointSource< Dune::FieldVector< GetPropType< TypeTag, Properties::GridGeometry >::GridView::ctype, GetPropType< TypeTag, Properties::GridGeometry >::GridView::dimensionworld > , GetPropType< TypeTag, Properties::NumEqVector > >::values_
protectedinherited

value of the point source for each equation


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