---
cid: po.bp.eos.flash.calculation
hub: eos
tags: [EoS, flash, VLE, two-phase, equilibrium, phase-split, Rachford-Rice, K-value, fluid-type, Peng-Robinson]
facets: { discipline: reservoir, property: flash, model: pr, method-type: mechanistic }
title: EoS PT Flash
summary: "How a reservoir fluid splits into liquid and vapour at a given pressure and temperature, by a Peng-Robinson flash with K-values."
slug: po.eos.flash.calculation
type: worksheet
---

# EoS PT Flash

## Description

How does a reservoir fluid split into liquid and vapour at a given temperature and pressure? You enter the flash temperature and pressure, the C7+ molecular weight and gravity, and the tuning raise on the methane–C7+ interaction parameter. You read off the vapour fraction and the phase state, each phase's composition, K-values, molar mass and shifted density, the bubble point at the flash temperature, the K-values of four components against pressure, and the fluid's type by McCain's rules.

**Parameters:**
- **Conditions**: the flash temperature `EFL_T` (°F) and pressure `EFL_P` (psig), and the K-value curve's pressure step `EFL_dP`
- **Fluid**: the C7+ molecular weight `EFL_PlusMw` and specific gravity `EFL_PlusSG`, and the methane–C7+ kij raise `EFL_dKij` over the Nikos matrix (the EoS Tuning to PVT Data sheet's knob)

**How to use it:** Type the PVT report's composition and C7+ into the property table, the kij raise the EoS Tuning to PVT Data sheet matched to its bubble point, and the temperature and pressure to flash at. Read the phase-state check first: a vapour fraction inside 0 to 1 is two-phase, outside it the fluid is a single phase and the compositions are the feed's. The balance check confirms that every component balances and that the K-values agree with the two phases' fugacities. The log chart draws the K-values of methane, propane, n-hexane and the C7+ against pressure at the flash temperature; they close on 1 towards the bubble point.

**Method:** The property table is the fluid model's: database critical properties for the defined components, the C7+ characterised from its molecular weight and gravity, Peneloux shifts from the Peng-Robinson volume-shift correlation, and the C7+'s shift fitted to its gravity. The kij are the Nikos matrix at the flash temperature with the methane–C7+ pair raised. The inputs are converted to kelvin and pascals in named cells.
- **Flash:** the Peng-Robinson flash returns V, L, x, y and K, one element per cell. V is the Rachford-Rice root of Σ zi(Ki − 1)/(1 + V(Ki − 1)) = 0; the sheet evaluates that sum at V as its residual.
- **K from fugacities:** the ratio of each component's liquid and vapour fugacity coefficients, recomputed from the flash's x and y; at equilibrium it equals y/x.
- **Bubble point:** the Peng-Robinson bubble point of the feed at the flash temperature, with the tuned kij.
- **Phases:** each phase's molar mass from its composition; density Mw/(Vm − Σ xi·ci), with Vm the Peng-Robinson molar volume of that phase.
- **Fluid type:** a flash of the feed at 60 °F and 1 atm gives the stock-tank oil, whose shifted density gives the API gravity; the vapour at the ideal gas volume gives the GOR; McCain's classification from GOR, API and C7+ gives the type.

**Example:** The default fluid is the EoS family's reference fluid, the Big Butte crude of Ahmed's *Reservoir Engineering Handbook* (Table 3-1), flashed at its reservoir temperature of 247 °F and 1,000 psig, below its bubble point. The kij are Nikos's with the methane–C7+ pair raised by 0.10, which puts the bubble point on the lab's 1,936 psig.

At 247 °F and 1,000 psig, 945 psi below the bubble point, 21.8 mol % of the Big Butte crude is vapour. The Rachford-Rice residual at that root is 1E-11, every component balances to 1E-17, and the K-values from the fugacities equal y/x. Methane's K is 5.21 and the C7+'s 0.0026, so the vapour is 65 % methane and the liquid 52 % C7+. The liquid's molar mass is 122 lb/lb-mol and its shifted density 0.692 g/cm³; the vapour's are 24.3 and 0.058. On the chart methane's K falls from 23.6 at 200 psig to 3.5 at 1,600 psig, towards 1 at the bubble point. Flashed to stock-tank conditions in one stage the fluid gives 639 scf/STB and 39.8 °API with 40.66 mol % C7+: a black oil.

## Validity

Peng-Robinson with one lumped C7+ and the Nikos kij raised on one pair, tuned to the bubble point only; the phase compositions near the bubble point and the K-values of the intermediates are the parts the lab doesn't constrain. Split the C7+ with the C7+ Characterization and Lumping sheet for compositions to design on. The vapour density is volume-shifted too, a small correction for a gas. Above the bubble point (or below a gas's dew point) the flash returns a single phase, V = 0 or 1, and its compositions are the feed's; the phase-state check says which. The single-stage stock-tank GOR is a screening number for the fluid type; a separator test's two stages give a little more (the EoS Separator Test sheet).

Named alternatives: the SRK flash with the Elliot-Daubert kij; Wilson's K-values for a first guess; a tuned EoS in a dedicated PVT package.

## References

- Rachford, H.H. Jr. and Rice, J.D. (1952). "Procedure for Use of Electronic Digital Computers in Calculating Flash Vaporization Hydrocarbon Equilibrium." *Journal of Petroleum Technology* 4(10).
- Michelsen, M.L. (1982). "The Isothermal Flash Problem. Part II. Phase-Split Calculation." *Fluid Phase Equilibria* 9(1), 21–40.
- Whitson, C.H. and Brulé, M.R. (2000). *Phase Behavior*. SPE Monograph 20, ch. 3 (equilibrium ratios) and ch. 4 (cubic equations of state).
- Peng, D.-Y. and Robinson, D.B. (1976). "A New Two-Constant Equation of State." *Ind. Eng. Chem. Fundam.* 15(1), 59–64.
- Ahmed, T. (2006). *Reservoir Engineering Handbook*, 3rd ed. Gulf Professional Publishing, Table 3-1 (the Big Butte crude).
- McCain, W.D. Jr. (1994). "Heavy Components Control Reservoir Fluid Behavior." *Journal of Petroleum Technology* 46(9), 746–750.

## Functions used

`PO.EoS.Flash.PR`, `PO.EoS.Ki.PR`, `PO.EoS.Pb.PR`, `PO.EoS.Mixture.Mw`, `PO.EoS.Vm.PR`, `PO.EoS.Component.Props`, `PO.EoS.Pseudo.Props`, `PO.EoS.Char.Volshift`, `PO.EoS.Kij.Matrix`, `PO.PVT.API.FromSGoil`, `PO.FL.Type.Classify`

## Spreadsheet: EosFlashCalculation

|     | A                                                                                                                                                           | B                                                                                                                                                                                                                                                                                                        | C                                                                                                                                                                                                                                                                                                                                                                                                                | D                                                                                          | E                                                                                          | F                                                                      | G                                                                      | H                                                                  | I                                                                  | J                                                                  | K                                                                   | L                                                                           |
|-----|-------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------|------------------------------------------------------------------------|--------------------------------------------------------------------|--------------------------------------------------------------------|--------------------------------------------------------------------|---------------------------------------------------------------------|-----------------------------------------------------------------------------|
| 1   | EoS PT Flash                                                                                                                                                |                                                                                                                                                                                                                                                                                                          | Petroleum Office                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 2   | Blue cells on yellow are inputs. Type the temperature and pressure and the fluid; the flash splits it into liquid and vapour and checks the split.          |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 3   | Conditions and Fluid                                                                                                                                        |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 4   | Flash temperature                                                                                                                                           | 247                                                                                                                                                                                                                                                                                                      | °F                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 5   | Flash pressure                                                                                                                                              | 1000                                                                                                                                                                                                                                                                                                     | psig                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 6   | C7+ molecular weight                                                                                                                                        | 196                                                                                                                                                                                                                                                                                                      | lb/lb-mol                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 7   | C7+ specific gravity at 60 °F                                                                                                                               | 0.8494                                                                                                                                                                                                                                                                                                   | water = 1                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 8   | Methane–C7+ kij raise over Nikos (EoS Tuning)                                                                                                               | 0.1                                                                                                                                                                                                                                                                                                      | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 9   | K-value curve pressure step                                                                                                                                 | 200                                                                                                                                                                                                                                                                                                      | psi                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 11  | Property Table                                                                                                                                              |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 12  | How to use it: the PVT report's composition and C7+ molecular weight and gravity, and the kij raise the EoS Tuning sheet matched to the lab's bubble point. |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 13  | Component                                                                                                                                                   | Tc (K)                                                                                                                                                                                                                                                                                                   | Pc (Pa)                                                                                                                                                                                                                                                                                                                                                                                                          | ω (—)                                                                                      | Mw (kg/mol)                                                                                | zi (frac)                                                              | Shift c (m³/mol)                                                       |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 14  | carbon dioxide                                                                                                                                              | =INDEX(PO.EoS.Component.Props(A14),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A14),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A14),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A14),1,4)                                                    | 0.0025                                                                 | =PO.EoS.Char.Volshift(B14,C14,D14,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 15  | nitrogen                                                                                                                                                    | =INDEX(PO.EoS.Component.Props(A15),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A15),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A15),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A15),1,4)                                                    | 0.0088                                                                 | =PO.EoS.Char.Volshift(B15,C15,D15,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 16  | methane                                                                                                                                                     | =INDEX(PO.EoS.Component.Props(A16),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A16),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A16),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A16),1,4)                                                    | 0.2394                                                                 | =PO.EoS.Char.Volshift(B16,C16,D16,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 17  | ethane                                                                                                                                                      | =INDEX(PO.EoS.Component.Props(A17),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A17),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A17),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A17),1,4)                                                    | 0.1167                                                                 | =PO.EoS.Char.Volshift(B17,C17,D17,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 18  | propane                                                                                                                                                     | =INDEX(PO.EoS.Component.Props(A18),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A18),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A18),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A18),1,4)                                                    | 0.0936                                                                 | =PO.EoS.Char.Volshift(B18,C18,D18,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 19  | i-butane                                                                                                                                                    | =INDEX(PO.EoS.Component.Props(A19),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A19),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A19),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A19),1,4)                                                    | 0.0139                                                                 | =PO.EoS.Char.Volshift(B19,C19,D19,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 20  | n-butane                                                                                                                                                    | =INDEX(PO.EoS.Component.Props(A20),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A20),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A20),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A20),1,4)                                                    | 0.0461                                                                 | =PO.EoS.Char.Volshift(B20,C20,D20,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 21  | i-pentane                                                                                                                                                   | =INDEX(PO.EoS.Component.Props(A21),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A21),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A21),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A21),1,4)                                                    | 0.015                                                                  | =PO.EoS.Char.Volshift(B21,C21,D21,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 22  | n-pentane                                                                                                                                                   | =INDEX(PO.EoS.Component.Props(A22),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A22),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A22),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A22),1,4)                                                    | 0.0248                                                                 | =PO.EoS.Char.Volshift(B22,C22,D22,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 23  | n-hexane                                                                                                                                                    | =INDEX(PO.EoS.Component.Props(A23),1,1)                                                                                                                                                                                                                                                                  | =INDEX(PO.EoS.Component.Props(A23),1,2)                                                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Component.Props(A23),1,3)                                                    | =INDEX(PO.EoS.Component.Props(A23),1,4)                                                    | 0.0326                                                                 | =PO.EoS.Char.Volshift(B23,C23,D23,"PR")                                |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 24  | C7+                                                                                                                                                         | =INDEX(PO.EoS.Pseudo.Props(EFL_PlusMw,EFL_PlusSG),1,1)                                                                                                                                                                                                                                                   | =INDEX(PO.EoS.Pseudo.Props(EFL_PlusMw,EFL_PlusSG),1,2)                                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Pseudo.Props(EFL_PlusMw,EFL_PlusSG),1,3)                                     | =INDEX(PO.EoS.Pseudo.Props(EFL_PlusMw,EFL_PlusSG),1,4)                                     | 0.4066                                                                 | =PO.EoS.Vm.PR(EFL_Tsc,EFL_Psc,1,B24:E24,"L")-E24/(EFL_PlusSG*EFL_RhoW) |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 26  | Tuned kij: Nikos With the Methane–C7+ Pair Raised by the Knob                                                                                               |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 27  | kij (—)                                                                                                                                                     | =A14                                                                                                                                                                                                                                                                                                     | =A15                                                                                                                                                                                                                                                                                                                                                                                                             | =A16                                                                                       | =A17                                                                                       | =A18                                                                   | =A19                                                                   | =A20                                                               | =A21                                                               | =A22                                                               | =A23                                                                | =A24                                                                        |
| 28  | =A14                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),1,11)          |
| 29  | =A15                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),2,11)          |
| 30  | =A16                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),3,11)+EFL_dKij |
| 31  | =A17                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),4,11)          |
| 32  | =A18                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),5,11)          |
| 33  | =A19                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),6,11)          |
| 34  | =A20                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),7,11)          |
| 35  | =A21                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),8,11)          |
| 36  | =A22                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,1)                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,2)                                                                                                                                                                                                                                                                                                                                                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,3)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,4)                          | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,5)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,6)      | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,7)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,8)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,9)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,10)  | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),9,11)          |
| 37  | =A23                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,1)                                                                                                                                                                                                                                       | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,2)                                                                                                                                                                                                                                                                                                                                               | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,3)                         | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,4)                         | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,5)     | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,6)     | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,7) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,8) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,9) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,10) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),10,11)         |
| 38  | =A24                                                                                                                                                        | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,1)                                                                                                                                                                                                                                       | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,2)                                                                                                                                                                                                                                                                                                                                               | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,3)+EFL_dKij                | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,4)                         | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,5)     | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,6)     | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,7) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,8) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,9) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,10) | =INDEX(PO.EoS.Kij.Matrix(EFL_Names,EFL_Props,"Nikos",EFL_TK),11,11)         |
| 40  | The Flash                                                                                                                                                   |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 41  | Flash temperature, absolute                                                                                                                                 | =(EFL_T+EFL_R0)/EFL_RK                                                                                                                                                                                                                                                                                   | K                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 42  | Flash pressure, absolute                                                                                                                                    | =(EFL_P+EFL_Patm)*EFL_PaPsi                                                                                                                                                                                                                                                                              | Pa                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 43  | Vapour fraction V (Rachford-Rice root)                                                                                                                      | =PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"V",EFL_Kij)                                                                                                                                                                                                                                              | frac                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 44  | Liquid fraction L                                                                                                                                           | =PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"L",EFL_Kij)                                                                                                                                                                                                                                              | frac                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 45  | Phase state                                                                                                                                                 | =""&IF(EFL_V<=0,"Single-phase liquid",IF(EFL_V>=1,"Single-phase vapour","Two-phase"))                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 46  | Rachford-Rice residual at V                                                                                                                                 | =SUMPRODUCT(EFL_Z*(EFL_K-1)/(1+EFL_V*(EFL_K-1)))                                                                                                                                                                                                                                                         | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 47  | Bubble point at the flash temperature                                                                                                                       | =PO.EoS.Pb.PR(EFL_TK,EFL_Z,EFL_Props,EFL_Kij)/EFL_PaPsi-EFL_Patm                                                                                                                                                                                                                                         | psig                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 48  | Liquid molar mass                                                                                                                                           | =PO.EoS.Mixture.Mw(EFL_X,EFL_Props)*EFL_Gkg                                                                                                                                                                                                                                                              | lb/lb-mol                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 49  | Vapour molar mass                                                                                                                                           | =PO.EoS.Mixture.Mw(EFL_Y,EFL_Props)*EFL_Gkg                                                                                                                                                                                                                                                              | lb/lb-mol                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 50  | Liquid density, shifted                                                                                                                                     | =PO.EoS.Mixture.Mw(EFL_X,EFL_Props)/(PO.EoS.Vm.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Props,"L",EFL_Kij)-SUMPRODUCT(EFL_X,EFL_Shift))/EFL_Gkg                                                                                                                                                                        | g/cm³                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 51  | Vapour density, shifted                                                                                                                                     | =PO.EoS.Mixture.Mw(EFL_Y,EFL_Props)/(PO.EoS.Vm.PR(EFL_TK,EFL_Pa,EFL_Y,EFL_Props,"V",EFL_Kij)-SUMPRODUCT(EFL_Y,EFL_Shift))/EFL_Gkg                                                                                                                                                                        | g/cm³                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 52  | Largest mole-balance error                                                                                                                                  | =MAX(ABS(G67:G77))                                                                                                                                                                                                                                                                                       | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 53  | Largest K gap, flash against Ki.PR                                                                                                                          | =MAX(ABS(F67:F77/EFL_K-1))                                                                                                                                                                                                                                                                               | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 54  | Stock-tank flash vapour fraction, one stage                                                                                                                 | =PO.EoS.Flash.PR(EFL_Tsc,EFL_Psc,EFL_Z,EFL_Props,"V",EFL_Kij)                                                                                                                                                                                                                                            | frac                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 55  | Stock-tank oil density, one stage                                                                                                                           | =PO.EoS.Mixture.Mw(PO.EoS.Flash.PR(EFL_Tsc,EFL_Psc,EFL_Z,EFL_Props,"x",EFL_Kij),EFL_Props)/(PO.EoS.Vm.PR(EFL_Tsc,EFL_Psc,PO.EoS.Flash.PR(EFL_Tsc,EFL_Psc,EFL_Z,EFL_Props,"x",EFL_Kij),EFL_Props,"L",EFL_Kij)-SUMPRODUCT(PO.EoS.Flash.PR(EFL_Tsc,EFL_Psc,EFL_Z,EFL_Props,"x",EFL_Kij),EFL_Shift))/EFL_Gkg | g/cm³                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 56  | Stock-tank oil gravity, one stage                                                                                                                           | =PO.PVT.API.FromSGoil(EFL_RhoSt*EFL_Gkg/EFL_RhoW)                                                                                                                                                                                                                                                        | °API                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 57  | Gas-oil ratio, one stage                                                                                                                                    | =EFL_Vst/(1-EFL_Vst)*EFL_R*EFL_Tsc/EFL_Psc/(PO.EoS.Mixture.Mw(PO.EoS.Flash.PR(EFL_Tsc,EFL_Psc,EFL_Z,EFL_Props,"x",EFL_Kij),EFL_Props)/(EFL_RhoSt*EFL_Gkg))*EFL_FtBbl                                                                                                                                     | scf/STB                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 58  | C7+ mole fraction of the feed                                                                                                                               | =INDEX(EFL_Z,ROWS(EFL_Z))                                                                                                                                                                                                                                                                                | frac                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 59  | Fluid type class (1 black oil to 5 dry gas)                                                                                                                 | =PO.FL.Type.Classify(EFL_GORSt,EFL_APISt,EFL_PlusZ)                                                                                                                                                                                                                                                      | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 60  | Fluid type, McCain's rules                                                                                                                                  | =""&CHOOSE(EFL_Class,"Black oil","Volatile oil","Gas condensate","Wet gas","Dry gas")                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 61  | Phase-state check                                                                                                                                           | =IF(EFL_V<=0,"WARN",IF(EFL_V>=1,"WARN",IF(ABS(EFL_RR)>EFL_TolRR,"WARN","PASS")))                                                                                                                                                                                                                         | =IF(EFL_V<=0,"single-phase liquid; the Rachford-Rice root is below 0, so the pressure is above the bubble point",IF(EFL_V>=1,"single-phase vapour; the Rachford-Rice root is above 1, so the pressure is below the dew point",IF(ABS(EFL_RR)>EFL_TolRR,"the Rachford-Rice residual is not zero at V; the flash has not converged","two-phase, the Rachford-Rice root lies in (0, 1) and its residual is zero"))) |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 62  | Balance check                                                                                                                                               | =IF(EFL_MB>EFL_TolRR,"FAIL",IF(AND(EFL_V>0,EFL_V<1,EFL_KGap>EFL_TolK),"WARN","PASS"))                                                                                                                                                                                                                    | =IF(EFL_MB>EFL_TolRR,"a component's moles don't balance, z ≠ L·x + V·y",IF(AND(EFL_V>0,EFL_V<1,EFL_KGap>EFL_TolK),"the flash K-values and the fugacity K-values differ by "&TEXT(EFL_KGap,"0.0%"),"every component balances and the K-values agree with the phases' fugacities"))                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 64  | The Two Phases, Component by Component                                                                                                                      |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 65  | Nothing to edit: x and y are the flash's liquid and vapour, K = y/x the flash's ratio, and Ki.PR recomputes K from the two phases' fugacities.              |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 66  | Component                                                                                                                                                   | z (frac)                                                                                                                                                                                                                                                                                                 | x, liquid (frac)                                                                                                                                                                                                                                                                                                                                                                                                 | y, vapour (frac)                                                                           | K = y/x (—)                                                                                | K, Ki.PR (—)                                                           | z − (Lx + Vy) (—)                                                      |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 67  | =A14                                                                                                                                                        | =F14                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),1,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),1,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),1,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),1,1)  | =B67-(EFL_L*C67+EFL_V*D67)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 68  | =A15                                                                                                                                                        | =F15                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),2,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),2,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),2,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),2,1)  | =B68-(EFL_L*C68+EFL_V*D68)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 69  | =A16                                                                                                                                                        | =F16                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),3,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),3,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),3,1)  | =B69-(EFL_L*C69+EFL_V*D69)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 70  | =A17                                                                                                                                                        | =F17                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),4,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),4,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),4,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),4,1)  | =B70-(EFL_L*C70+EFL_V*D70)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 71  | =A18                                                                                                                                                        | =F18                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),5,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),5,1)  | =B71-(EFL_L*C71+EFL_V*D71)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 72  | =A19                                                                                                                                                        | =F19                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),6,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),6,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),6,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),6,1)  | =B72-(EFL_L*C72+EFL_V*D72)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 73  | =A20                                                                                                                                                        | =F20                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),7,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),7,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),7,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),7,1)  | =B73-(EFL_L*C73+EFL_V*D73)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 74  | =A21                                                                                                                                                        | =F21                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),8,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),8,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),8,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),8,1)  | =B74-(EFL_L*C74+EFL_V*D74)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 75  | =A22                                                                                                                                                        | =F22                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),9,1)                                                                                                                                                                                                                                                                                                                                           | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),9,1)                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),9,1)                     | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),9,1)  | =B75-(EFL_L*C75+EFL_V*D75)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 76  | =A23                                                                                                                                                        | =F23                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),10,1)                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),10,1)                    | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),10,1)                    | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),10,1) | =B76-(EFL_L*C76+EFL_V*D76)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 77  | =A24                                                                                                                                                        | =F24                                                                                                                                                                                                                                                                                                     | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"x",EFL_Kij),11,1)                                                                                                                                                                                                                                                                                                                                          | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"y",EFL_Kij),11,1)                    | =INDEX(PO.EoS.Flash.PR(EFL_TK,EFL_Pa,EFL_Z,EFL_Props,"K",EFL_Kij),11,1)                    | =INDEX(PO.EoS.Ki.PR(EFL_TK,EFL_Pa,EFL_X,EFL_Y,EFL_Props,EFL_Kij),11,1) | =B77-(EFL_L*C77+EFL_V*D77)                                             |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 79  | K-Values Against Pressure: 8 Steps of the Pressure Step, at the Flash Temperature                                                                           |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 80  | Nothing to edit: each row flashes the feed at its pressure; K stays near 1 for every component close to the bubble point.                                   |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 81  | Pressure (psig)                                                                                                                                             | K, methane (—)                                                                                                                                                                                                                                                                                           | K, propane (—)                                                                                                                                                                                                                                                                                                                                                                                                   | K, n-hexane (—)                                                                            | K, C7+ (—)                                                                                 |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 82  | =1*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A82+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A82+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A82+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A82+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 83  | =2*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A83+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A83+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A83+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A83+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 84  | =3*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A84+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A84+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A84+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A84+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 85  | =4*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A85+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A85+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A85+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A85+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 86  | =5*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A86+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A86+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A86+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A86+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 87  | =6*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A87+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A87+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A87+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A87+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 88  | =7*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A88+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A88+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A88+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A88+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 89  | =8*EFL_dP                                                                                                                                                   | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A89+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),3,1)                                                                                                                                                                                                                | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A89+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),5,1)                                                                                                                                                                                                                                                                                                                        | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A89+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),10,1) | =INDEX(PO.EoS.Flash.PR(EFL_TK,($A89+EFL_Patm)*EFL_PaPsi,EFL_Z,EFL_Props,"K",EFL_Kij),11,1) |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 91  | Calculation Constants                                                                                                                                       |                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 92  | Rankine at 0 °F                                                                                                                                             | 459.67                                                                                                                                                                                                                                                                                                   | °R                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 93  | Rankine in a kelvin                                                                                                                                         | 1.8                                                                                                                                                                                                                                                                                                      | °R/K                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 94  | Pascals in a psi                                                                                                                                            | 6894.757                                                                                                                                                                                                                                                                                                 | Pa/psi                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 95  | Atmospheric pressure, psig to psia                                                                                                                          | 14.7                                                                                                                                                                                                                                                                                                     | psi                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 96  | Temperature of a specific gravity, 60 °F                                                                                                                    | 288.705556                                                                                                                                                                                                                                                                                               | K                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 97  | Pressure of a specific gravity, 1 atm                                                                                                                       | 101325                                                                                                                                                                                                                                                                                                   | Pa                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 98  | Density of water at 60 °F                                                                                                                                   | 999.016                                                                                                                                                                                                                                                                                                  | kg/m³                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 99  | Grams in a kilogram, and kg/m³ in a g/cm³                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                     | g/kg                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 100 | Gas constant                                                                                                                                                | 8.314462618                                                                                                                                                                                                                                                                                              | J/(mol·K)                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 101 | Cubic feet in a barrel                                                                                                                                      | 5.614583                                                                                                                                                                                                                                                                                                 | ft³/bbl                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 102 | Largest residual or mole balance accepted                                                                                                                   | 0.000001                                                                                                                                                                                                                                                                                                 | —                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |
| 103 | Largest K-value gap accepted                                                                                                                                | 0.001                                                                                                                                                                                                                                                                                                    | %                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                            |                                                                                            |                                                                        |                                                                        |                                                                    |                                                                    |                                                                    |                                                                     |                                                                             |

## Lambdas

| Name | RefersTo | Comment |
|------|----------|---------|
| PO.EoS.Char.Volshift | =LAMBDA(tc, pc, omega, eos, IF(OR(tc<=0, pc<=0), NA(), IF(eos="SRK", (0.0115831168+0.411844152*omega)*tc*1.8/(pc/6894.757)*0.028316846592/453.59237, IF(eos="PR", 0.50033*(0.25969-(0.29056-0.08775*omega))*8.314462618*tc/pc, NA())))) | Peneloux volume shift c (m3/mol) of a component from Tc (K), Pc (Pa) and omega, for the EoS named: "SRK" (Peneloux, Ahmed Eq. 15-107) or "PR" (Pedersen's PR form). Subtract sum(z*c) from the EoS molar volume. |
| PO.FL.Type.Classify | =LAMBDA(gor, api, cplus, IF(OR(gor<0, api<0, cplus<0, cplus>1), NA(), IF(cplus>=0.125, IF(AND(gor<1750, api<45, cplus>0.2), 1, 2), IF(OR(gor<15000, cplus>=0.04), 3, IF(gor<100000, 4, 5))))) | McCain reservoir fluid type from GOR (scf/STB), stock-tank API and C7+ mole fraction: 1 black oil, 2 volatile oil, 3 gas condensate, 4 wet gas, 5 dry gas. C7+ of 0.125 or more is an oil. |

## Names

| Name | RefersTo | Comment |
|------|----------|---------|
| EFL_T | $B$4 | Flash temperature, °F |
| EFL_P | $B$5 | Flash pressure, psig |
| EFL_PlusMw | $B$6 | C7+ molecular weight, lb/lb-mol |
| EFL_PlusSG | $B$7 | C7+ specific gravity at 60 °F, water = 1 |
| EFL_dKij | $B$8 | Methane–C7+ kij raise over Nikos (EoS Tuning) |
| EFL_dP | $B$9 | K-value curve pressure step, psi |
| EFL_Inputs | $B$4:$B$9 | The flash temperature and pressure, the C7+ molecular weight and gravity, the methane–C7+ kij raise and the K-value curve's pressure step |
| EFL_Fluid | $A$14:$G$24 | Each component with its critical temperature, pressure and acentric factor, molar mass, mole fraction and Peneloux volume shift |
| EFL_Names | $A$14:$A$24 | Component names |
| EFL_Props | $B$14:$E$24 | Property table: Tc (K), Pc (Pa), omega, Mw (kg/mol) |
| EFL_Z | $F$14:$F$24 | Mole fractions |
| EFL_Shift | $G$14:$G$24 | Peneloux volume shift per component, m3/mol |
| EFL_Kij | $B$28:$L$38 | Nikos kij for Peng-Robinson with the methane-C7+ pair raised by the tuning knob |
| EFL_TK | $B$41 | Flash temperature, absolute, K |
| EFL_Pa | $B$42 | Flash pressure, absolute, Pa |
| EFL_V | $B$43 | Vapour fraction V (Rachford-Rice root), frac |
| EFL_L | $B$44 | Liquid fraction L, frac |
| EFL_State | $B$45 | Phase state |
| EFL_RR | $B$46 | Rachford-Rice residual at V |
| EFL_Pb | $B$47 | Bubble point at the flash temperature, psig |
| EFL_MwL | $B$48 | Liquid molar mass, lb/lb-mol |
| EFL_MwV | $B$49 | Vapour molar mass, lb/lb-mol |
| EFL_RhoL | $B$50 | Liquid density, shifted, g/cm³ |
| EFL_RhoV | $B$51 | Vapour density, shifted, g/cm³ |
| EFL_MB | $B$52 | Largest mole-balance error |
| EFL_KGap | $B$53 | Largest K gap, flash against Ki.PR |
| EFL_Vst | $B$54 | Stock-tank flash vapour fraction, one stage, frac |
| EFL_RhoSt | $B$55 | Stock-tank oil density, one stage, g/cm³ |
| EFL_APISt | $B$56 | Stock-tank oil gravity, one stage, °API |
| EFL_GORSt | $B$57 | Gas-oil ratio, one stage, scf/STB |
| EFL_PlusZ | $B$58 | C7+ mole fraction of the feed, frac |
| EFL_Class | $B$59 | Fluid type class (1 black oil to 5 dry gas) |
| EFL_Type | $B$60 | Fluid type, McCain's rules |
| EFL_Check | $B$61 | Phase-state check verdict |
| EFL_CheckNote | $C$61 | Phase-state check comment |
| EFL_BalanceCheck | $B$62 | Balance check verdict |
| EFL_BalanceCheckNote | $C$62 | Balance check comment |
| EFL_Results | $B$41:$B$62 | The absolute temperature and pressure, the vapour and liquid fractions, the phase state and Rachford-Rice residual, the bubble point, each phase's molar mass and density, the balance and K-value gaps, the fluid type and the two checks |
| EFL_Phases | $A$67:$G$77 | Each component's feed, liquid and vapour mole fractions, its K-value from the flash and from the fugacities, and its mole balance |
| EFL_X | $C$67:$C$77 | Liquid composition x |
| EFL_Y | $D$67:$D$77 | Vapour composition y |
| EFL_K | $E$67:$E$77 | K-values from the flash, y/x |
| EFL_Curve | $A$82:$E$89 | Pressure and the K-values of methane, propane, n-hexane and the C7+ at it, at the flash temperature |
| EFL_R0 | $B$92 | Rankine at 0 °F, °R |
| EFL_RK | $B$93 | Rankine in a kelvin, °R/K |
| EFL_PaPsi | $B$94 | Pascals in a psi, Pa/psi |
| EFL_Patm | $B$95 | Atmospheric pressure, psig to psia, psi |
| EFL_Tsc | $B$96 | Temperature of a specific gravity, 60 °F, K |
| EFL_Psc | $B$97 | Pressure of a specific gravity, 1 atm, Pa |
| EFL_RhoW | $B$98 | Density of water at 60 °F, kg/m³ |
| EFL_Gkg | $B$99 | Grams in a kilogram, and kg/m³ in a g/cm³, g/kg |
| EFL_R | $B$100 | Gas constant, J/(mol·K) |
| EFL_FtBbl | $B$101 | Cubic feet in a barrel, ft³/bbl |
| EFL_TolRR | $B$102 | Largest residual or mole balance accepted |
| EFL_TolK | $B$103 | Largest K-value gap accepted, % |

---

## Related Blueprints
- [Binary Interaction Parameters](/blueprint/po.eos.kij.estimation.md)
- [EoS Phase Envelope](/blueprint/po.eos.phase.envelope.md)
- [EoS Separator Test](/blueprint/po.eos.separator.test.md)
- [EoS Tuning to PVT Data](/blueprint/po.eos.tuning.setup.md)
- [EoS Fluid Model Setup](/blueprint/po.eos.fluid.model.setup.md)
- [C7+ Characterization and Lumping](/blueprint/po.eos.c7plus.characterization.md)

