version 3.11-dev
Loading...
Searching...
No Matches
Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition > Class Template Reference

The context of a point source of the coupling in one element. More...

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

Inheritance diagram for Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >:

Description

template<class GlobalPosition>
class Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >

The context is located in an element and carries the identifier of the point source, with which the coupling manager gives access to the data of the coupling, and the weight of the source: the quadrature weight times the integration element of the integration point. A point shared by several elements is given as one context per element with the number of these elements as embeddings.

Public Types

using Scalar = typename GlobalPosition::value_type
using GlobalPosition

Public Member Functions

 PointSourceContext ()=default
 PointSourceContext (GlobalPosition position, std::size_t id, Scalar weight, std::size_t elementIndex, std::size_t embeddings)
std::size_t id () const
 The identifier of the point source.
Scalar weight () const
 The quadrature weight times the integration element.
std::size_t elementIndex () const
 The index of the element containing the point.
const GlobalPosition & position () const
std::size_t embeddings () const
void setEmbeddings (std::size_t embeddings)

Member Typedef Documentation

◆ GlobalPosition

using Dumux::Experimental::PointSourceContext< GlobalPosition >::GlobalPosition
inherited

◆ Scalar

template<class GlobalPosition>
using Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >::Scalar = typename GlobalPosition::value_type

Constructor & Destructor Documentation

◆ PointSourceContext() [1/2]

template<class GlobalPosition>
Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >::PointSourceContext ( )
default

◆ PointSourceContext() [2/2]

template<class GlobalPosition>
Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >::PointSourceContext ( GlobalPosition position,
std::size_t id,
Scalar weight,
std::size_t elementIndex,
std::size_t embeddings )
inline

Member Function Documentation

◆ elementIndex()

template<class GlobalPosition>
std::size_t Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >::elementIndex ( ) const
inline

◆ embeddings()

std::size_t Dumux::Experimental::PointSourceContext< GlobalPosition >::embeddings ( ) const
inlineinherited

◆ id()

template<class GlobalPosition>
std::size_t Dumux::EmbeddedCoupling::PointSourceContext< GlobalPosition >::id ( ) const
inline

◆ position()

const GlobalPosition & Dumux::Experimental::PointSourceContext< GlobalPosition >::position ( ) const
inlineinherited

◆ setEmbeddings()

void Dumux::Experimental::PointSourceContext< GlobalPosition >::setEmbeddings ( std::size_t embeddings)
inlineinherited

◆ weight()


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