Callback class for a mole fraction of a component in a phase. More...
#include <quantitycallbacks.hh>
Public Types | |
typedef std::remove_const < typename std::remove_reference < ResultRawType >::type > ::type | ResultType |
typedef Opm::MathToolbox < ResultType >::ValueType | ResultValueType |
Public Member Functions | |
MoleFractionCallback (const ElementContext &elemCtx) | |
MoleFractionCallback (const ElementContext &elemCtx, unsigned phaseIdx, unsigned compIdx) | |
void | setPhaseIndex (unsigned phaseIdx) |
Set the index of the fluid phase for which a mole fraction should be returned. | |
void | setComponentIndex (unsigned compIdx) |
Set the index of the component for which the mole fraction should be returned. | |
ResultType | operator() (unsigned dofIdx) const |
Return the mole fraction of a component in a phase given the index of a degree of freedom within an element context. | |
Callback class for a mole fraction of a component in a phase.