Research Article

Predicting Fluid Properties in the MUFITS Reservoir Simulator with User-Supplied Modules

Table 4

API for PhaseEquilibrium.

Interface call PhaseEquilibrium(, , , np, , Id, , Mode)
VariableIntentDatatypeDescription

inreal(8)Average fluid pressure, Pa
inreal(8)Fluid temperature, degree K
inreal(8)Bulk mass composition (array of size nc)
npin/outinteger(4)Number of fluid phases
in/outreal(8)Parameters of the phases (2-D array of size (6 + nc) × npmax); only the first np columns of the array are relevant, i.e.
Idin/outinteger(1)Phase identifier (array of size x); only the first np elements of the array are relevant, i.e.
in/outreal(8)Auxiliary variables (array of size na)
Modeininteger(1)Calculation mode