Ewoms::MoleFractionCallback< TypeTag > Class Template Reference

Callback class for a mole fraction of a component in a phase. More...

#include <quantitycallbacks.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class TypeTag>
class Ewoms::MoleFractionCallback< TypeTag >

Callback class for a mole fraction of a component in a phase.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Return the mole fraction of a component in a phase given the index of a degree of freedom within an element context.

template<class TypeTag>
void Ewoms::MoleFractionCallback< TypeTag >::setComponentIndex ( short  compIdx)
inline

Set the index of the component for which the mole fraction should be returned.

Referenced by Ewoms::DiffusionExtensiveQuantities< TypeTag, true >::update_().

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

Set the index of the fluid phase for which a mole fraction should be returned.

Referenced by Ewoms::DiffusionExtensiveQuantities< TypeTag, true >::update_().

Member Data Documentation

template<class TypeTag>
decltype(Ewoms::declval<IQFluidState>().moleFraction(0, 0)) typedef Ewoms::MoleFractionCallback< TypeTag >::ResultType

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