Opm::BoundaryPressureCallback< TypeTag, FluidState > Class Template Reference

Callback class for a phase pressure. More...

#include <quantitycallbacks.hh>

Public Types

using ResultType = IQScalar
 

Public Member Functions

 BoundaryPressureCallback (const ElementContext &elemCtx, const FluidState &boundaryFs)
 
 BoundaryPressureCallback (const ElementContext &elemCtx, const FluidState &boundaryFs, 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 a phase given the index of a degree of freedom within an element context. More...
 
IQScalar boundaryValue () const
 

Detailed Description

template<class TypeTag, class FluidState>
class Opm::BoundaryPressureCallback< TypeTag, FluidState >

Callback class for a phase pressure.

Member Typedef Documentation

◆ ResultType

template<class TypeTag , class FluidState >
using Opm::BoundaryPressureCallback< TypeTag, FluidState >::ResultType = IQScalar

Constructor & Destructor Documentation

◆ BoundaryPressureCallback() [1/2]

template<class TypeTag , class FluidState >
Opm::BoundaryPressureCallback< TypeTag, FluidState >::BoundaryPressureCallback ( const ElementContext &  elemCtx,
const FluidState &  boundaryFs 
)
inline

◆ BoundaryPressureCallback() [2/2]

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

Member Function Documentation

◆ boundaryValue()

template<class TypeTag , class FluidState >
IQScalar Opm::BoundaryPressureCallback< TypeTag, FluidState >::boundaryValue ( ) const
inline

◆ operator()()

template<class TypeTag , class FluidState >
ResultType Opm::BoundaryPressureCallback< TypeTag, FluidState >::operator() ( unsigned  dofIdx) const
inline

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

◆ setPhaseIndex()

template<class TypeTag , class FluidState >
void Opm::BoundaryPressureCallback< TypeTag, FluidState >::setPhaseIndex ( unsigned  phaseIdx)
inline

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

Referenced by Opm::DarcyExtensiveQuantities< TypeTag >::calculateBoundaryGradients_().


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