Opm::PressureCallback< TypeTag > Class Template Reference

Callback class for a phase pressure. More...

#include <quantitycallbacks.hh>

Public Types

using ResultType = typename std::remove_const< typename std::remove_reference< ResultRawType >::type >::type
 
using ResultValueType = typename MathToolbox< ResultType >::ValueType
 

Public Member Functions

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

Detailed Description

template<class TypeTag>
class Opm::PressureCallback< TypeTag >

Callback class for a phase pressure.

Member Typedef Documentation

◆ ResultType

template<class TypeTag >
using Opm::PressureCallback< TypeTag >::ResultType = typename std::remove_const<typename std::remove_reference<ResultRawType>::type>::type

◆ ResultValueType

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

Constructor & Destructor Documentation

◆ PressureCallback() [1/2]

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

◆ PressureCallback() [2/2]

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

Member Function Documentation

◆ operator()()

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

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

◆ setPhaseIndex()

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

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