Ewoms::MolarDensityCallback< TypeTag > Class Template Reference

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

#include <quantitycallbacks.hh>

Public Member Functions

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

Public Attributes

decltype(Ewoms::declval
< IQFluidState >
().molarDensity(0)) typedef 
ResultType
 

Detailed Description

template<class TypeTag>
class Ewoms::MolarDensityCallback< TypeTag >

Callback class for the molar density of a phase.

Constructor & Destructor Documentation

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

Member Function Documentation

template<class TypeTag>
ResultType Ewoms::MolarDensityCallback< TypeTag >::operator() ( int  dofIdx) const
inline

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

template<class TypeTag>
void Ewoms::MolarDensityCallback< TypeTag >::setPhaseIndex ( short  phaseIdx)
inline

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

Member Data Documentation

template<class TypeTag>
decltype(Ewoms::declval<IQFluidState>().molarDensity(0)) typedef Ewoms::MolarDensityCallback< TypeTag >::ResultType

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