Implements a "taylor-made" fluid state class for the black-oil model. More...
#include <blackoilfluidstate.hh>
Public Types | |
enum | { numPhases = FluidSystem::numPhases } |
enum | { numComponents = FluidSystem::numComponents } |
typedef Evaluation | Scalar |
Public Member Functions | |
void | checkDefined () const |
Make sure that all attributes are defined. More... | |
template<class FluidState > | |
void | assign (const FluidState &fs OPM_UNUSED) |
Retrieve all parameters from an arbitrary fluid state. | |
void | setPvtRegionIndex (unsigned newPvtRegionIdx) |
void | setPressure (unsigned phaseIdx, const Evaluation &p) |
void | setSaturation (unsigned phaseIdx, const Evaluation &S) |
void | setInvB (unsigned phaseIdx, const Evaluation &b) |
void | setDensity (unsigned phaseIdx, const Evaluation &rho) |
void | setRs (const Evaluation &newRs) |
void | setRv (const Evaluation &newRv) |
const Evaluation & | pressure (unsigned phaseIdx) const |
const Evaluation & | saturation (unsigned phaseIdx) const |
const Evaluation & | temperature (unsigned phaseIdx OPM_UNUSED) const |
const Evaluation & | invB (unsigned phaseIdx) const |
const Evaluation & | Rs () const |
const Evaluation & | Rv () const |
unsigned short | pvtRegionIndex () const |
bool | phaseIsPresent (unsigned phaseIdx) const |
Evaluation | density (unsigned phaseIdx) const |
Evaluation | molarDensity (unsigned phaseIdx) const |
Evaluation | molarVolume (unsigned phaseIdx) const |
Evaluation | viscosity (unsigned phaseIdx) const |
Evaluation | enthalpy (unsigned phaseIdx OPM_UNUSED) const |
Evaluation | internalEnergy (unsigned phaseIdx OPM_UNUSED) const |
Evaluation | massFraction (unsigned phaseIdx, unsigned compIdx) const |
Evaluation | moleFraction (unsigned phaseIdx, unsigned compIdx) const |
Evaluation | molarity (unsigned phaseIdx, unsigned compIdx) const |
Evaluation | averageMolarMass (unsigned phaseIdx) const |
Evaluation | fugacityCoefficient (unsigned phaseIdx, unsigned compIdx) const |
Evaluation | fugacity (unsigned phaseIdx, unsigned compIdx) const |
Implements a "taylor-made" fluid state class for the black-oil model.
I.e., it uses exactly the same quantities which are used by the ECL blackoil model. Further quantities are computed "on the fly" and are accessing them is thus relatively slow.
|
inline |
Make sure that all attributes are defined.
This method does not do anything if the program is not run under valgrind. If it is, then valgrind will print an error message if some attributes of the object have not been properly defined.