This is a fluid state which translates global arrays and translates them to a subset of the fluid state API. More...
#include <ExplicitArraysFluidState.hpp>
Public Types | |
enum | { numPhases = BlackoilPhases::MaxNumPhases } |
typedef double | Scalar |
Public Member Functions | |
ExplicitArraysFluidState (const PhaseUsage &phaseUsage) | |
void | setIndex (unsigned arrayIdx) |
Sets the currently used array index. More... | |
void | setSaturationArray (const double *saturations) |
Set the array containing the phase saturations. More... | |
Scalar | saturation (int phaseIdx) const |
Returns the saturation of a phase for the current cell index. | |
This is a fluid state which translates global arrays and translates them to a subset of the fluid state API.
This class is similar to Opm::BlackoilStateToFluidState.
|
inline |
Sets the currently used array index.
After calling this, the values returned by the other methods are specific for this index.
|
inline |
Set the array containing the phase saturations.
This array is supposed to be of size numPhases*size and is not allowed to be deleted while the ExplicitArraysFluidState object is alive. This class assumes that the saturations of all phase saturations for a point are consequtive, i.e., in the array the saturations cycle fastest.