---
cid: po.bp.scal.tables.export
hub: scal
tags: [SCAL, Corey, relative-permeability, SWOF, SGOF, Eclipse, OPM, simulation-input, saturation-functions]
facets: { discipline: reservoir, property: rel-perm, model: corey, method-type: empirical }
title: SCAL Tables Export for SWOF and SGOF
summary: "Generates SWOF and SGOF saturation tables from Corey models, ready to paste into an Eclipse or OPM Flow deck."
slug: po.scal.tables.export
type: worksheet
---

# SCAL Tables Export for SWOF and SGOF

## Description

What SWOF and SGOF tables do a rock's Corey water-oil and gas-oil models give for a simulator deck? You enter the two models' endpoints and exponents. You read off both tables, each with a keyword column to paste into an Eclipse or OPM Flow deck's PROPS section, and three checks of what a simulator demands: saturations that rise, monotonic kr, tables that start and end at their endpoints, and SGOF's Krog at Sg = 0 equal to SWOF's Krow at connate water. A chart beside each table draws its curves.

**Parameters:**
- **Water-oil model**: connate water `STX_Swi`, residual oil to water `STX_Sorw`, Krow at Swi `STX_KroEnd`, Krw at Sorw `STX_KrwEnd`, and the Corey exponents `STX_No` and `STX_Nw`
- **Gas-oil model**: critical gas saturation `STX_Sgc` (above 0), residual oil to gas at Swi `STX_Sorg`, Krog at Sg = 0 `STX_KrogEnd`, Krg at Sorg `STX_KrgEnd`, and the exponents `STX_Nog` and `STX_Ng`
- **Check limit**: the largest gap accepted between Krog at Sg = 0 and Krow at Swc, `STX_KrTol` (0.001)

**How to use it:** type the exponents and endpoints the Relative Permeability Fit sheet gives for your points, or a SCAL report's, and copy each keyword column from its keyword line to its closing slash. The capillary pressure columns are zero; for a transition zone, put the drainage Pc in psi at each saturation in the Pcow column (the Capillary Pressure Models Comparison sheet gives it), falling with Sw.

**Method:**

- **SWOF.** Sw = Swc + Sw*·(1 − Swc − Sorw) for Sw* = 0, 0.1, … 1, so from the connate water saturation to 1 − Sorw in tenths of the mobile range, then Sw = 1. Krw = Krw@Sorw·Sw*^Nw and Krow = Krow@Swi·(1 − Sw*)^No by the catalog's Corey functions. The functions take Sw from Swi to 1 − Sorw, so the Sw = 1 line reads them at 1 − Sorw: Krw held at its endpoint and Krow 0.
- **SGOF.** With the gas-oil system's connate liquid Slc = Swc + Sorg, Krg = Krg@Sorg·((Sg − Sgc)/(1 − Sgc − Slc))^Ng and Krog = Krog@0·((1 − Sg − Slc)/(1 − Slc))^Nog, Corey in the cells, each normalised saturation clamped to 0 to 1, as the Stone Three-Phase Relative Permeability sheet writes them. The lines are Sg = 0, then Sgc to 1 − Slc (1 − Swc − Sorg) in tenths, then 1 − Swc with Krg held.
- **Keyword text.** Each line joins the saturation to four places, the two kr to five and the Pc to one with `FIXED(x, n, TRUE)`; the keyword, a column comment, the lines and a closing slash fill the text column.
- **Checks.** SWOF: a FAIL for Swi + Sorw of 1 or more, a saturation that fails to rise, a Krw that falls or a Krow that rises down the table, or a table that doesn't start at Krw = 0 and end at Krow = 0. SGOF: the same for Sg, Krg and Krog, starting at Sg = 0 with Krg = 0 and ending at Krog = 0; a zero Sgc repeats Sg = 0 and fails. Consistency: Krog at Sg = 0 within the check limit of Krow at Swc, since a simulator takes both as the oil's kr at connate water (and SGOF ends at 1 − Swc by construction).

**Example:** The defaults are the rock the SCAL sheets share: a water-wet sandstone with Swi 20 %, Sorw 25 %, Sorg 10 %, Sgc 5 %, Krow@Swi 1, Krw@Sorw 0.35, Krg@Sorg 0.40, and Corey exponents No 2.5, Nw 2, Nog 2.5 and Ng 2. They are the model the Relative Permeability Fit sheet recovers from its points: 1.99 and 2.51 through the measured endpoints. SWOF runs from 0.2000 (Krw 0, Krow 1) to 0.7500 (Krw 0.35, Krow 0) and closes at 1.0000 with Krw 0.35. Halfway, at Sw = 0.4750, the line reads `0.4750  0.08750  0.17678  0.0`. SGOF runs from Sg = 0 (Krg 0, Krog 1) through 0.0500 (Krog 0.83088) to 0.7000 (Krg 0.40, Krog 0) and closes at 0.8000; halfway, at Sg = 0.3750, it reads `0.3750  0.10000  0.14688  0.0`.

## Validity

The tables are as good as the Corey models they come from: fit them to the SCAL data first (the Relative Permeability Fit sheet). Corey with one exponent per phase gives smooth, monotonic tables; measured curves that change shape need more lines or a LET model. Ten steps of the mobile range suit most decks; a sharp curvature near an endpoint can want finer steps there. SWOF and SGOF are two-phase tables: the simulator combines them for three-phase flow by Stone or Baker's model, which is why the oil's kr at connate water must agree. The export is drainage-only, with no hysteresis (no imbibition tables or SATNUM regions) and zero capillary pressure. SGOF needs Sgc above 0 so that its first two lines differ. Each table's last line is a closing endpoint, not a Corey point: SWOF's Sw = 1 line holds Krw at Krw@Sorw and Krow at 0, and SGOF's Sg = 1 − Swc line holds Krg at Krg@Sorg and Krog at 0, because the Corey functions stop at 1 − Sorw and 1 − Swc − Sorg; a deck that needs Krw = 1 at Sw = 1 should edit that line.

Named alternatives: the family-II keywords SWFN, SGFN and SOF3, which tabulate each phase against its own saturation; LET-based tables; and end-point scaling (SWL, SWCR, SOWCR, KRW and friends) of one normalised table per rock type.

## References

- Schlumberger, *ECLIPSE Reference Manual*: the SWOF and SGOF keywords, their consistency requirements and FIELD units.
- OPM, *Flow Reference Manual*: the same keywords in OPM Flow.
- Corey, A.T. (1954). "The Interrelation Between Gas and Oil Relative Permeabilities." *Producers Monthly* 19(1), 38–41.
- Stone, H.L. (1973). "Estimation of Three-Phase Relative Permeability and Residual Oil Data." *JCPT* 12(4), 53–61.
- Honarpour, M., Koederitz, L. and Harvey, A.H. (1986). *Relative Permeability of Petroleum Reservoirs*. CRC Press.

## Functions used

`PO.SCAL.Corey.Krow`, `PO.SCAL.Corey.Krw`

## Spreadsheet: ScalTablesExport

|    | A                                                                                                                                                                  | B                                                                                                                                                                                                 | C                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | D          | E                                                                                       |
|----|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|-----------------------------------------------------------------------------------------|
| 1  | SCAL Tables Export for SWOF and SGOF                                                                                                                               |                                                                                                                                                                                                   | Petroleum Office                                                                                                                                                                                                                                                                                                                                                                                                                                                                |            |                                                                                         |
| 2  | Blue cells on yellow are inputs. Type the water-oil and gas-oil Corey models; copy a keyword column from its keyword to its closing slash.                         |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 3  | Water-Oil Corey Model (the Shared Rock; the Fit Sheet's Results)                                                                                                   |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 4  | Connate water saturation, Swc = Swi                                                                                                                                | 0.2                                                                                                                                                                                               | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 5  | Residual oil saturation to water, Sorw                                                                                                                             | 0.25                                                                                                                                                                                              | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 6  | Krow at Swi                                                                                                                                                        | 1                                                                                                                                                                                                 | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 7  | Krw at Sorw                                                                                                                                                        | 0.35                                                                                                                                                                                              | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 8  | Oil exponent, No                                                                                                                                                   | 2.5                                                                                                                                                                                               | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 9  | Water exponent, Nw                                                                                                                                                 | 2                                                                                                                                                                                                 | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 10 | Gas-Oil Corey Model                                                                                                                                                |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 11 | Critical gas saturation, Sgc (above 0)                                                                                                                             | 0.05                                                                                                                                                                                              | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 12 | Residual oil saturation to gas at Swi, Sorg                                                                                                                        | 0.1                                                                                                                                                                                               | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 13 | Krog at Sg = 0 (Krow at Swi)                                                                                                                                       | 1                                                                                                                                                                                                 | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 14 | Krg at Sorg, at Sg = 1 − Swi − Sorg                                                                                                                                | 0.4                                                                                                                                                                                               | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 15 | Oil exponent in the gas-oil system, Nog                                                                                                                            | 2.5                                                                                                                                                                                               | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 16 | Gas exponent, Ng                                                                                                                                                   | 2                                                                                                                                                                                                 | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 17 | Check Limit                                                                                                                                                        |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 18 | Largest gap accepted between Krog at Sg = 0 and Krow at Swc                                                                                                        | 0.001                                                                                                                                                                                             | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 20 | The Tables' Endpoints and Checks                                                                                                                                   |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 21 | Mobile oil saturation to water, 1 − Swi − Sorw                                                                                                                     | =1-STX_Swi-STX_Sorw                                                                                                                                                                               | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 22 | Connate liquid of the gas-oil system, Slc = Swi + Sorg                                                                                                             | =STX_Swi+STX_Sorg                                                                                                                                                                                 | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 23 | Gas saturation where Krog reaches 0, 1 − Slc                                                                                                                       | =1-STX_Slc                                                                                                                                                                                        | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 24 | Last gas saturation of SGOF, 1 − Swc                                                                                                                               | =1-STX_Swi                                                                                                                                                                                        | %                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |                                                                                         |
| 25 | SWOF Krow at Swc, the first line                                                                                                                                   | =INDEX(STX_SwofKrow,1)                                                                                                                                                                            | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 26 | SWOF Krw at the last line                                                                                                                                          | =INDEX(STX_SwofKrw,ROWS(STX_SwofKrw))                                                                                                                                                             | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 27 | SGOF Krog at Sg = 0, the first line                                                                                                                                | =INDEX(STX_SgofKrog,1)                                                                                                                                                                            | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 28 | SGOF Krg at the last line                                                                                                                                          | =INDEX(STX_SgofKrg,ROWS(STX_SgofKrg))                                                                                                                                                             | frac                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |                                                                                         |
| 29 | SWOF check                                                                                                                                                         | =IF(STX_Mobile<=0,"FAIL",IF(OR(SUMPRODUCT((A42:A52<=A41:A51)*1)>0,SUMPRODUCT((B42:B52<B41:B51)*1)>0,SUMPRODUCT((C42:C52>C41:C51)*1)>0),"FAIL",IF(OR(B41<>0,C52<>0),"FAIL","PASS")))               | =IF(STX_Mobile<=0,"Swi + Sorw must be below 1",IF(OR(SUMPRODUCT((A42:A52<=A41:A51)*1)>0,SUMPRODUCT((B42:B52<B41:B51)*1)>0,SUMPRODUCT((C42:C52>C41:C51)*1)>0),"down the table Sw must rise, Krw never fall and Krow never rise",IF(OR(B41<>0,C52<>0),"Krw must start at 0 and Krow end at 0","Sw rises from Swc to 1, Krw from 0 to "&FIXED(STX_KrwMax,2)&" and Krow falls from "&FIXED(STX_KrowFirst,2)&" to 0")))                                                              |            |                                                                                         |
| 30 | SGOF check                                                                                                                                                         | =IF(1-STX_Slc-STX_Sgc<=0,"FAIL",IF(OR(SUMPRODUCT((A61:A72<=A60:A71)*1)>0,SUMPRODUCT((B61:B72<B60:B71)*1)>0,SUMPRODUCT((C61:C72>C60:C71)*1)>0),"FAIL",IF(OR(A60<>0,B60<>0,C72<>0),"FAIL","PASS"))) | =IF(1-STX_Slc-STX_Sgc<=0,"Sgc + Swi + Sorg must be below 1",IF(OR(SUMPRODUCT((A61:A72<=A60:A71)*1)>0,SUMPRODUCT((B61:B72<B60:B71)*1)>0,SUMPRODUCT((C61:C72>C60:C71)*1)>0),"down the table Sg must rise (Sgc above 0), Krg never fall and Krog never rise",IF(OR(A60<>0,B60<>0,C72<>0),"SGOF must start at Sg = 0 with Krg = 0 and end with Krog = 0","Sg rises from 0 to 1 − Swc, Krg from 0 to "&FIXED(STX_KrgMax,2)&" and Krog falls from "&FIXED(STX_KrogFirst,2)&" to 0"))) |            |                                                                                         |
| 31 | Endpoint consistency check                                                                                                                                         | =IF(ABS(STX_KrogFirst-STX_KrowFirst)>STX_KrTol,"FAIL","PASS")                                                                                                                                     | =IF(ABS(STX_KrogFirst-STX_KrowFirst)>STX_KrTol,"Krog at Sg = 0 is "&FIXED(STX_KrogFirst,2)&" but Krow at Swc is "&FIXED(STX_KrowFirst,2)&"; a simulator reads both as the oil's kr at connate water","Krog at Sg = 0 equals Krow at Swc, and SGOF ends at Sg = 1 − Swc")                                                                                                                                                                                                        |            |                                                                                         |
| 33 | How to use it: type the Relative Permeability Fit sheet's exponents and endpoints, or a SCAL report's, and copy each keyword column into the deck's PROPS section. |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 34 | Capillary pressure is exported as zero. For a transition zone, put the drainage Pc in psi at each Sw (the Capillary Pressure sheet) in the Pcow column.            |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 36 | SWOF, Copy-Ready (Water-Oil, Corey Functions)                                                                                                                      |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 37 | Sw from Swc to 1 − Sorw in tenths of the mobile range, then Sw = 1 with Krw held at its endpoint. FIELD units: Pcow in psi.                                        |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 38 | Sw (—)                                                                                                                                                             | Krw (—)                                                                                                                                                                                           | Krow (—)                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Pcow (psi) | Keyword text                                                                            |
| 39 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | SWOF                                                                                    |
| 40 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | -- Sw  Krw  Krow  Pcow psi                                                              |
| 41 | =STX_Swi+STX_Mobile*0/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A41,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A41,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A41,4,TRUE)&"  "&FIXED(B41,5,TRUE)&"  "&FIXED(C41,5,TRUE)&"  "&FIXED(D41,1,TRUE) |
| 42 | =STX_Swi+STX_Mobile*1/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A42,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A42,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A42,4,TRUE)&"  "&FIXED(B42,5,TRUE)&"  "&FIXED(C42,5,TRUE)&"  "&FIXED(D42,1,TRUE) |
| 43 | =STX_Swi+STX_Mobile*2/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A43,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A43,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A43,4,TRUE)&"  "&FIXED(B43,5,TRUE)&"  "&FIXED(C43,5,TRUE)&"  "&FIXED(D43,1,TRUE) |
| 44 | =STX_Swi+STX_Mobile*3/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A44,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A44,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A44,4,TRUE)&"  "&FIXED(B44,5,TRUE)&"  "&FIXED(C44,5,TRUE)&"  "&FIXED(D44,1,TRUE) |
| 45 | =STX_Swi+STX_Mobile*4/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A45,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A45,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A45,4,TRUE)&"  "&FIXED(B45,5,TRUE)&"  "&FIXED(C45,5,TRUE)&"  "&FIXED(D45,1,TRUE) |
| 46 | =STX_Swi+STX_Mobile*5/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A46,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A46,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A46,4,TRUE)&"  "&FIXED(B46,5,TRUE)&"  "&FIXED(C46,5,TRUE)&"  "&FIXED(D46,1,TRUE) |
| 47 | =STX_Swi+STX_Mobile*6/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A47,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A47,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A47,4,TRUE)&"  "&FIXED(B47,5,TRUE)&"  "&FIXED(C47,5,TRUE)&"  "&FIXED(D47,1,TRUE) |
| 48 | =STX_Swi+STX_Mobile*7/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A48,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A48,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A48,4,TRUE)&"  "&FIXED(B48,5,TRUE)&"  "&FIXED(C48,5,TRUE)&"  "&FIXED(D48,1,TRUE) |
| 49 | =STX_Swi+STX_Mobile*8/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A49,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A49,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A49,4,TRUE)&"  "&FIXED(B49,5,TRUE)&"  "&FIXED(C49,5,TRUE)&"  "&FIXED(D49,1,TRUE) |
| 50 | =STX_Swi+STX_Mobile*9/10                                                                                                                                           | =PO.SCAL.Corey.Krw(A50,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A50,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A50,4,TRUE)&"  "&FIXED(B50,5,TRUE)&"  "&FIXED(C50,5,TRUE)&"  "&FIXED(D50,1,TRUE) |
| 51 | =1-STX_Sorw                                                                                                                                                        | =PO.SCAL.Corey.Krw(A51,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                        | =PO.SCAL.Corey.Krow(A51,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                                     | 0          | =FIXED(A51,4,TRUE)&"  "&FIXED(B51,5,TRUE)&"  "&FIXED(C51,5,TRUE)&"  "&FIXED(D51,1,TRUE) |
| 52 | =1                                                                                                                                                                 | =PO.SCAL.Corey.Krw(1-STX_Sorw,STX_Swi,STX_Sorw,STX_KrwEnd,STX_Nw)                                                                                                                                 | =PO.SCAL.Corey.Krow(1-STX_Sorw,STX_Swi,STX_Sorw,STX_KroEnd,STX_No)                                                                                                                                                                                                                                                                                                                                                                                                              | 0          | =FIXED(A52,4,TRUE)&"  "&FIXED(B52,5,TRUE)&"  "&FIXED(C52,5,TRUE)&"  "&FIXED(D52,1,TRUE) |
| 53 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | /                                                                                       |
| 55 | SGOF, Copy-Ready (Gas-Oil, Corey in the Cells)                                                                                                                     |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 56 | Sg = 0, then Sgc to 1 − Swc − Sorg in tenths, then 1 − Swc with Krg held. Krog = Krog@0·(1 − Sg − Slc)/(1 − Slc) to the power Nog.                                 |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |                                                                                         |
| 57 | Sg (—)                                                                                                                                                             | Krg (—)                                                                                                                                                                                           | Krog (—)                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Pcog (psi) | Keyword text                                                                            |
| 58 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | SGOF                                                                                    |
| 59 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | -- Sg  Krg  Krog  Pcog psi                                                              |
| 60 | =0                                                                                                                                                                 | =STX_KrgEnd*MIN(1,MAX(0,(A60-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A60-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A60,4,TRUE)&"  "&FIXED(B60,5,TRUE)&"  "&FIXED(C60,5,TRUE)&"  "&FIXED(D60,1,TRUE) |
| 61 | =STX_Sgc+(STX_SgMax-STX_Sgc)*0/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A61-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A61-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A61,4,TRUE)&"  "&FIXED(B61,5,TRUE)&"  "&FIXED(C61,5,TRUE)&"  "&FIXED(D61,1,TRUE) |
| 62 | =STX_Sgc+(STX_SgMax-STX_Sgc)*1/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A62-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A62-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A62,4,TRUE)&"  "&FIXED(B62,5,TRUE)&"  "&FIXED(C62,5,TRUE)&"  "&FIXED(D62,1,TRUE) |
| 63 | =STX_Sgc+(STX_SgMax-STX_Sgc)*2/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A63-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A63-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A63,4,TRUE)&"  "&FIXED(B63,5,TRUE)&"  "&FIXED(C63,5,TRUE)&"  "&FIXED(D63,1,TRUE) |
| 64 | =STX_Sgc+(STX_SgMax-STX_Sgc)*3/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A64-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A64-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A64,4,TRUE)&"  "&FIXED(B64,5,TRUE)&"  "&FIXED(C64,5,TRUE)&"  "&FIXED(D64,1,TRUE) |
| 65 | =STX_Sgc+(STX_SgMax-STX_Sgc)*4/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A65-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A65-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A65,4,TRUE)&"  "&FIXED(B65,5,TRUE)&"  "&FIXED(C65,5,TRUE)&"  "&FIXED(D65,1,TRUE) |
| 66 | =STX_Sgc+(STX_SgMax-STX_Sgc)*5/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A66-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A66-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A66,4,TRUE)&"  "&FIXED(B66,5,TRUE)&"  "&FIXED(C66,5,TRUE)&"  "&FIXED(D66,1,TRUE) |
| 67 | =STX_Sgc+(STX_SgMax-STX_Sgc)*6/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A67-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A67-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A67,4,TRUE)&"  "&FIXED(B67,5,TRUE)&"  "&FIXED(C67,5,TRUE)&"  "&FIXED(D67,1,TRUE) |
| 68 | =STX_Sgc+(STX_SgMax-STX_Sgc)*7/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A68-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A68-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A68,4,TRUE)&"  "&FIXED(B68,5,TRUE)&"  "&FIXED(C68,5,TRUE)&"  "&FIXED(D68,1,TRUE) |
| 69 | =STX_Sgc+(STX_SgMax-STX_Sgc)*8/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A69-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A69-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A69,4,TRUE)&"  "&FIXED(B69,5,TRUE)&"  "&FIXED(C69,5,TRUE)&"  "&FIXED(D69,1,TRUE) |
| 70 | =STX_Sgc+(STX_SgMax-STX_Sgc)*9/10                                                                                                                                  | =STX_KrgEnd*MIN(1,MAX(0,(A70-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A70-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A70,4,TRUE)&"  "&FIXED(B70,5,TRUE)&"  "&FIXED(C70,5,TRUE)&"  "&FIXED(D70,1,TRUE) |
| 71 | =STX_SgMax                                                                                                                                                         | =STX_KrgEnd*MIN(1,MAX(0,(A71-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A71-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A71,4,TRUE)&"  "&FIXED(B71,5,TRUE)&"  "&FIXED(C71,5,TRUE)&"  "&FIXED(D71,1,TRUE) |
| 72 | =STX_SgLast                                                                                                                                                        | =STX_KrgEnd*MIN(1,MAX(0,(A72-STX_Sgc)/(1-STX_Sgc-STX_Slc)))^STX_Ng                                                                                                                                | =STX_KrogEnd*MIN(1,MAX(0,(1-A72-STX_Slc)/(1-STX_Slc)))^STX_Nog                                                                                                                                                                                                                                                                                                                                                                                                                  | 0          | =FIXED(A72,4,TRUE)&"  "&FIXED(B72,5,TRUE)&"  "&FIXED(C72,5,TRUE)&"  "&FIXED(D72,1,TRUE) |
| 73 |                                                                                                                                                                    |                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            | /                                                                                       |

## Names

| Name | RefersTo | Comment |
|------|----------|---------|
| STX_Swi | $B$4 | Connate water saturation, Swc = Swi, % |
| STX_Sorw | $B$5 | Residual oil saturation to water, Sorw, % |
| STX_KroEnd | $B$6 | Krow at Swi, frac |
| STX_KrwEnd | $B$7 | Krw at Sorw, frac |
| STX_No | $B$8 | Oil exponent, No |
| STX_Nw | $B$9 | Water exponent, Nw |
| STX_Sgc | $B$11 | Critical gas saturation, Sgc (above 0), % |
| STX_Sorg | $B$12 | Residual oil saturation to gas at Swi, Sorg, % |
| STX_KrogEnd | $B$13 | Krog at Sg = 0 (Krow at Swi), frac |
| STX_KrgEnd | $B$14 | Krg at Sorg, at Sg = 1 − Swi − Sorg, frac |
| STX_Nog | $B$15 | Oil exponent in the gas-oil system, Nog |
| STX_Ng | $B$16 | Gas exponent, Ng |
| STX_KrTol | $B$18 | Largest gap accepted between Krog at Sg = 0 and Krow at Swc, frac |
| STX_Inputs | $B$4:$B$18 | The water-oil endpoints and Corey exponents, the gas-oil endpoints and exponents, and the endpoint-consistency tolerance |
| STX_Mobile | $B$21 | Mobile oil saturation to water, 1 − Swi − Sorw, % |
| STX_Slc | $B$22 | Connate liquid of the gas-oil system, Slc = Swi + Sorg, % |
| STX_SgMax | $B$23 | Gas saturation where Krog reaches 0, 1 − Slc, % |
| STX_SgLast | $B$24 | Last gas saturation of SGOF, 1 − Swc, % |
| STX_KrowFirst | $B$25 | SWOF Krow at Swc, the first line, frac |
| STX_KrwMax | $B$26 | SWOF Krw at the last line, frac |
| STX_KrogFirst | $B$27 | SGOF Krog at Sg = 0, the first line, frac |
| STX_KrgMax | $B$28 | SGOF Krg at the last line, frac |
| STX_SwofCheck | $B$29 | SWOF check verdict |
| STX_SwofCheckNote | $C$29 | SWOF check comment |
| STX_SgofCheck | $B$30 | SGOF check verdict |
| STX_SgofCheckNote | $C$30 | SGOF check comment |
| STX_EndCheck | $B$31 | Endpoint consistency check verdict |
| STX_EndCheckNote | $C$31 | Endpoint consistency check comment |
| STX_Results | $B$21:$B$31 | The mobile oil saturation, the gas-oil system's connate liquid, the gas saturations where Krog reaches 0 and where SGOF ends, the tables' first Krow and Krog and last Krw and Krg, and three checks |
| STX_SwofSw | $A$41:$A$52 | SWOF saturations |
| STX_SwofKrw | $B$41:$B$52 | SWOF Krw |
| STX_SwofKrow | $C$41:$C$52 | SWOF Krow |
| STX_SwofText | $E$39:$E$53 | SWOF keyword text, copy-ready |
| STX_SwofMid | $E$46 | SWOF line at the middle of the mobile range, Sw* = 0.5 |
| STX_SgofSg | $A$60:$A$72 | SGOF saturations |
| STX_SgofKrg | $B$60:$B$72 | SGOF Krg |
| STX_SgofKrog | $C$60:$C$72 | SGOF Krog |
| STX_SgofText | $E$58:$E$73 | SGOF keyword text, copy-ready |
| STX_SgofMid | $E$66 | SGOF line at the middle of the mobile gas range |

---

## Related Blueprints
- [Corey Relative Permeability Curves](/blueprint/po.scal.corey.relperm.md)
- [SCAL Endpoint Analysis](/blueprint/po.scal.endpoint.analysis.md)
- [Waterflood Fractional Flow Analysis](/blueprint/po.scal.fractional.flow.md)
- [Stone Three-Phase Relative Permeability](/blueprint/po.scal.stone.threephase.md)
- [Relative Permeability Fit by LINEST](/blueprint/po.scal.relperm.fit.md)
- [Relative Permeability Model Comparison](/blueprint/po.scal.models.compare.md)

