Opm::MolarDensityCallback< TypeTag > Class Template Reference

Callback class for the molar density of a phase. More...

#include <quantitycallbacks.hh>

Public Types

using ResultType = decltype(std::declval< IQFluidState >().molarDensity(0))
 
using ResultValueType = typename MathToolbox< ResultType >::ValueType
 

Public Member Functions

 MolarDensityCallback (const ElementContext &elemCtx)
 
 MolarDensityCallback (const ElementContext &elemCtx, unsigned phaseIdx)
 
void setPhaseIndex (unsigned phaseIdx)
 Set the index of the fluid phase for which the molar density should be returned. More...
 
ResultType operator() (unsigned dofIdx) const
 Return the molar density of a phase given the index of a degree of freedom within an element context. More...
 

Detailed Description

template<class TypeTag>
class Opm::MolarDensityCallback< TypeTag >

Callback class for the molar density of a phase.

Member Typedef Documentation

◆ ResultType

template<class TypeTag >
using Opm::MolarDensityCallback< TypeTag >::ResultType = decltype(std::declval<IQFluidState>().molarDensity(0))

◆ ResultValueType

template<class TypeTag >
using Opm::MolarDensityCallback< TypeTag >::ResultValueType = typename MathToolbox<ResultType>::ValueType

Constructor & Destructor Documentation

◆ MolarDensityCallback() [1/2]

template<class TypeTag >
Opm::MolarDensityCallback< TypeTag >::MolarDensityCallback ( const ElementContext &  elemCtx)
inline

◆ MolarDensityCallback() [2/2]

template<class TypeTag >
Opm::MolarDensityCallback< TypeTag >::MolarDensityCallback ( const ElementContext &  elemCtx,
unsigned  phaseIdx 
)
inline

Member Function Documentation

◆ operator()()

template<class TypeTag >
ResultType Opm::MolarDensityCallback< TypeTag >::operator() ( unsigned  dofIdx) const
inline

Return the molar density of a phase given the index of a degree of freedom within an element context.

◆ setPhaseIndex()

template<class TypeTag >
void Opm::MolarDensityCallback< TypeTag >::setPhaseIndex ( unsigned  phaseIdx)
inline

Set the index of the fluid phase for which the molar density should be returned.


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