Ewoms::DensityCallback< TypeTag > Class Template Reference

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

#include <quantitycallbacks.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class TypeTag>
class Ewoms::DensityCallback< TypeTag >

Callback class for the density of a phase.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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

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

Member Data Documentation

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

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