---
id: po.wb.scal.relperm-pc-tables
title: SCAL Relative Permeability and Capillary Pressure Tables
summary: "Which relative permeability and capillary pressure curves to give the simulator, from core plugs through Corey fits and J scaling to SWOF and SGOF tables."
category: Reservoir
requires:
  - po-addin
tags:
  - SCAL
  - Corey
  - relative-permeability
  - capillary-pressure
  - j-function
  - SWOF
  - SGOF
  - simulation-input
---

## Description

Which relative permeability and capillary pressure curves should the simulator get for this rock? You enter the core plugs' endpoints and lab kr points, the drainage Pc parameters, and the plugs for J scaling. You read off fitted Corey exponents and endpoints with their misses, Corey, Honarpour and Ibrahim-Koederitz curves side by side, drainage Pc and a rock-type J curve, a three-phase Stone check, and copy-ready SWOF and SGOF tables. Pc in psi, k in mD, IFT in dyne/cm, angles in degrees; saturations and kr as fractions.

**How to use it:** Replace the blue cells with the lab report and resize the dependent ranges if you add rows. On the Endpoints sheet enter the plugs' endpoints and the lab points; on the Fits sheet paste positive kr inside the mobile saturation range, inspect the residuals, and choose Fitted or Measured endpoints from the list (choose Measured if the free fit is implausible). The Models, Stone and Export sheets follow the selected fit. For an LET fit, run a constrained Solver on the log residuals, starting L at the Corey exponent and E = T = 1, with L >= 1, E > 0 and T >= 0.5. Fit Pc to lab data. The JScaling plugs must share one facies and the lab fluids; never merge that rock with the relative permeability rock. On the Export sheet copy column E from the keyword through the slash, and replace the zero Pc in D41:D52 and D60:D72 with validated psi; Pc below 0.05 psi keeps a warning. The Summary is last and holds every check.

**Method:** Sw* = (Sw - Swi)/(1 - Swi - Sorw). A linear regression (LINEST) of ln(kr) against ln(Sw*) or ln(1 - Sw*) gives the Corey exponents and intercepts; the constrained fits honour the measured endpoints. RMS error, average absolute relative error (AARE) and endpoint mismatch qualify the fit. The free-fit log R² is shown separately; the selected model's log R² is 1 minus the log-residual sum of squares over the total log variance, and drives the fit check. Free-endpoint Corey curves are computed directly so a fitted endpoint above one is kept; no endpoint is clipped. The Pc parameters are independent drainage inputs (Brooks-Corey, van Genuchten and a reference J curve). J = 0.2166 Pc sqrt(k/phi)/(sigma cos(theta)); a log regression of J against (Sw - Swi)/(1 - Swi) gives the rock type's power curve J = a ((Sw - Swi)/(1 - Swi))^b. Both Stone models use normalized saturations; Stone II assumes a unit oil endpoint and is scaled back to the selected oil endpoint. Pc is exported as text to 0.1 psi, and the closing rows of each table hold the endpoint kr.

**Example:** The relative permeability rock is synthetic: Swi = 0.2, Sorw = 0.25, Sorg = 0.1, Sgc = 0.05, Krow = 1, Krw = 0.35, Krg = 0.4, No = Nog = 2.5, Nw = Ng = 2, k = 100 mD, phi = 0.2. Three plugs and eight lab points give No = 2.489902 and Nw = 2.008058. A separate nine-point example gives a free fit of Nw = 1.985856, No = 2.514665, Krw = 0.346125 and Krow = 1.007419; the slopes at measured endpoints are 1.993793 and 2.509396. Krow above one warns. The capillary defaults Pd = 5 psi, lambda = 2, alpha = 0.2/psi, n = 2.5, Ja = 0.3, Jb = -0.6, IFT = 72 and theta = 0 give Pc = 8.164966, 8.815883 and 8.033323 psi (Brooks-Corey, van Genuchten, reference J) at Sw = 0.5. J scaling uses a different rock type, Ahmed's Example 4-7: reference k = 80 mD, phi = 0.16, IFT = 50, theta = 0; target k = 120 mD, phi = 0.19, same fluids. Five Ahmed and eight synthetic points fit a = 0.049759, b = -0.676458, R² = 0.996133, with Swi = 0.05 assumed. The analytic scale sqrt(80*0.19/(120*0.16)) = 0.889757 gives Pc = 0.898105 psi at Sw = 0.4. Every value agrees with an independent calculation on the same inputs to 1e-9; the rounded book J is not an exact match. At Sw = 0.35 and Sg = 0.15 Stone gives So = 0.5, KroI = 0.229097 and KroII = 0.230540. The export has 12 SWOF and 13 SGOF rows, ending at Sg = 0.8 and Krg = 0.4.

## Validity

No JBN or end-effect correction. Corey can miss mixed-wet and carbonate curve shapes, and the log regression weighs low kr heavily. J scaling needs one facies. Drainage only: no hysteresis, SATNUM regions or endpoint scaling. Stone checks one point, not a grid or a calibration. Ibrahim-Koederitz Krow stays nonzero at 1 - Sorw (0.0071 on this example); the common-endpoint check covers Krow at Swi and Krw at 1 - Sorw only. A free-fit kr above one is a warning; an invalid typed gas kr fails. Zero Sorw, Sorg or Sgc and saturation steps below 0.0001 fail, because the fixed-size exported rows would duplicate after rounding; remove duplicate rows by hand outside the workbook. Alternatives: constrained LET, Thomeer Pc and family-II SWFN/SGFN/SOF3 tables; full Stone grids. The workbook does not fit a saturation-height model; the add-in has no function for it.

## References

- Leverett, M.C. (1941). Capillary Behavior in Porous Solids. *Trans. AIME* 142, 152-169.
- Corey, A.T. (1954). The Interrelation Between Gas and Oil Relative Permeabilities. *Producers Monthly* 19(1), 38-41.
- Brooks, R.H. and Corey, A.T. (1964). *Hydraulic Properties of Porous Media*. Hydrology Paper 3, Colorado State University.
- Stone, H.L. (1970). Probability Model for Estimating Three-Phase Relative Permeability. *JPT* 22(2), 214-218. SPE-2116-PA.
- Stone, H.L. (1973). Estimation of Three-Phase Relative Permeability and Residual Oil Data. *J. Can. Pet. Tech.* 12(4), 53-61.
- van Genuchten, M.Th. (1980). A Closed-form Equation for Predicting the Hydraulic Conductivity of Unsaturated Soils. *Soil Sci. Soc. Am. J.* 44(5), 892-898.
- Honarpour, M., Koederitz, L. and Harvey, A.H. (1986). *Relative Permeability of Petroleum Reservoirs*. CRC Press.
- Ahmed, T. *Reservoir Engineering Handbook*. Gulf Professional Publishing, Example 4-7 (J-function data).
- ECLIPSE and OPM Flow reference manuals: SWOF and SGOF keyword conventions.

## Inputs

| Input | Unit | Default | Name |
|---|---|---|---|
| Maximum kr miss (Endpoints) | fraction | 0.02 | `RWE_Tol` |
| Minimum exponent | — | 1 | `RWE_NMin` |
| Maximum exponent | — | 6 | `RWE_NMax` |
| Endpoints, Fitted or Measured (from a list) | — | Fitted | `RWF_EndpointMode` |
| Minimum R2 | — | 0.98 | `RWF_R2Min` |
| Maximum average miss | fraction | 0.10 | `RWF_AareMax` |
| Endpoint tolerance (Fits) | fraction | 0.05 | `RWF_EndTol` |
| Porosity, permeability (Models) | fraction, mD | 0.2, 100 | `RWM_Phi`, `RWM_K` |
| Reading saturation (Models) | fraction | 0.45 | `RWM_Sw` |
| Permeability, porosity (Capillary) | mD, fraction | 100, 0.2 | `RWC_K`, `RWC_Phi` |
| Surface tension | dyne/cm | 72 | `RWC_Ift` |
| Contact angle | degrees | 0 | `RWC_Theta` |
| Entry Pc | psi | 5 | `RWC_Pd` |
| Pore-size index | — | 2 | `RWC_Lambda` |
| Scale, alpha | 1/psi | 0.2 | `RWC_Alpha` |
| Shape n > 1 | — | 2.5 | `RWC_N` |
| Entry J, a | — | 0.3 | `RWC_Ja` |
| Exponent b < 0 | — | -0.6 | `RWC_Jb` |
| Reading Sw (Capillary) | fraction | 0.5 | `RWC_Sw` |
| Pc spread limit / mean | fraction | 0.25 | `RWC_SpreadMax` |
| Plug A k, Plug A porosity | mD, fraction | 80, 0.16 | `RWJ_KA`, `RWJ_PhiA` |
| Lab IFT, lab contact angle | dyne/cm, degrees | 50, 0 | `RWJ_IftA`, `RWJ_ThetaA` |
| Target B k, Target B porosity | mD, fraction | 120, 0.19 | `RWJ_KB`, `RWJ_PhiB` |
| Target IFT, target contact angle | dyne/cm, degrees | 50, 0 | `RWJ_IftB`, `RWJ_ThetaB` |
| Rock-type Swi | fraction | 0.05 | `RWJ_Swi` |
| Reading Sw (JScaling) | fraction | 0.4 | `RWJ_Sw` |
| Minimum R-squared (JScaling) | — | 0.95 | `RWJ_R2Min` |
| Residual oil to gas | fraction | 0.1 | `RWS_Sorg` |
| Critical gas, Sgc | fraction | 0.05 | `RWS_Sgc` |
| Stone I minimum oil, Som | fraction | 0.1 | `RWS_Som` |
| Krg at Sorg | fraction | 0.4 | `RWS_KrgEnd` |
| Gas-oil Nog, gas Ng | — | 2.5, 2 | `RWS_Nog`, `RWS_Ng` |
| Water saturation, gas saturation (Stone test point) | fraction | 0.35, 0.15 | `RWS_Sw`, `RWS_Sg` |
| Endpoint tolerance (Export) | fraction | 0.001 | `RWX_KrTol` |

## Sheets

- `Guide` — what the workbook answers, the order of its sheets, and the real-data notes and limits.
- `Endpoints` — three plugs' endpoints and their averages, eight lab points, the Corey fit at the measured endpoints with each point's miss, and the fit check; chart of the Corey fit over the lab points.
- `Fits` — a separate nine-point example: free and fixed-endpoint Corey regressions, the Fitted or Measured endpoint choice, log R², RMS, AARE and endpoint misses, and the selected curves; chart of the selected Corey fit over the lab points.
- `Models` — Corey, Honarpour and Ibrahim-Koederitz at the selected fit's common endpoints, read at one saturation and tabulated for oil and water; chart of the three models.
- `Capillary` — Brooks-Corey, van Genuchten and reference-J drainage Pc on the shared Swi, read at one saturation with their spread; chart of Pc against water saturation.
- `JScaling` — a separate rock type (Ahmed's Example 4-7 plus synthetic plugs): 13 lab points, the J power-law fit and the Pc scaled from plug A to target B; chart of the J fit over the plug points.
- `Stone` — Stone I and Stone II oil relative permeability at one three-phase test point, from the selected water-oil fit and the gas-oil endpoints.
- `Export` — the linked water-oil and gas-oil models, endpoint checks, and copy-ready SWOF (12 rows) and SGOF (13 rows) keywords.
- `Summary` — the selected water-oil model and every check under one export-readiness verdict.
- `Test Cases` — the worked example and other cases, with expected and computed results.

## Functions used

`PO.SCAL.Corey.Krow`, `PO.SCAL.Corey.Krw`, `PO.SCAL.Honarpour.Sand.WW.Krow`, `PO.SCAL.Honarpour.Sand.WW.Krw`, `PO.SCAL.IK.Sand.WW.Krow`, `PO.SCAL.IK.Sand.WW.Krw`, `PO.SCAL.BrooksCorey.Pc`, `PO.SCAL.VanGenuchten.Pc`, `PO.SCAL.Leverett.J`, `PO.SCAL.Leverett.Pc`.
