Ewoms::PressureCallback< TypeTag > Class Template Reference

Callback class for a phase pressure. More...

#include <quantitycallbacks.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class TypeTag>
class Ewoms::PressureCallback< TypeTag >

Callback class for a phase pressure.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

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

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

Referenced by Ewoms::DarcyExtensiveQuantities< TypeTag >::calculateGradients_().

Member Data Documentation

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

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