Ewoms::ViscosityCallback< TypeTag > Class Template Reference

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

#include <quantitycallbacks.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class TypeTag>
class Ewoms::ViscosityCallback< TypeTag >

Callback class for the viscosity of a phase.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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

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

Member Data Documentation

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

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