PO.EoS.Char.Volshift

Returns a component's Peneloux volume shift c, the amount a cubic equation of state's molar volume is moved by so its liquid densities come right. A two-constant cubic, Peng-Robinson or SRK, puts the phase boundaries well but its liquid volumes are several per cent off: SRK's too large by up to 20 %, Peng-Robinson's by a few per cent. Péneloux, Rauzy and Fréze (1982) showed that subtracting a constant ci per component, Vm = Vm,EoS − Σ zi·ci, corrects the volumes and leaves the fugacities, and so every flash, bubble point and K-value, exactly as they were. The function gives ci from the component's critical temperature, critical pressure and acentric factor, the row `PO.EoS.Component.Props` returns, for the equation named.

PO.FL.Type.Classify

Returns which of McCain's five reservoir fluids a fluid is, from the three numbers a well test and a PVT report give: the initial producing gas-oil ratio, the stock-tank oil gravity and the C7+ mole fraction of the reservoir fluid. The type decides how the reservoir is studied: a black oil takes a black-oil table, a volatile oil and a gas condensate need an equation of state and compositional simulation, a wet gas a recombined well stream, and a dry gas a gas law alone. The class is returned as a number so a sheet can compare it: 1 black oil, 2 volatile oil, 3 gas condensate (retrograde gas), 4 wet gas, 5 dry gas. A sheet shows the name with `CHOOSE(class, "Black oil", "Volatile oil", "Gas condensate", "Wet gas", "Dry gas")`.

Need a custom LAMBDA? Request a Lambda