API Reference¶
This page contains the automatically generated API reference for the relperm package.
The docstrings are extracted directly from the source code and rendered with full equation support.
Core Functions¶
s_eff
¶
Calculate the effective wetting phase saturation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sw
|
NDArray[float64]
|
Wetting phase saturation array. |
required |
swr
|
float64
|
Residual wetting phase saturation. |
required |
snwr
|
float64
|
Residual non-wetting phase saturation. |
required |
Returns:
| Type | Description |
|---|---|
NDArray[float64]
|
Effective wetting phase saturation array. |
Notes
The effective saturation (\(S_{eff}\)) is calculated using the formula:
where:
- \(S_w\): Wetting phase saturation.
- \(S_{wr}\): Residual wetting phase saturation.
- \(S_{nwr}\): Residual non-wetting phase saturation.
Source code in src/relperm/relperm.py
krw
¶
Calculate the relative permeability of the wetting phase.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s_eff
|
NDArray[float64]
|
Effective wetting phase saturation array. |
required |
krw0
|
float64
|
Endpoint relative permeability for the wetting phase. |
required |
nw
|
float64
|
Corey exponent for the wetting phase. |
required |
Returns:
| Type | Description |
|---|---|
NDArray[float64]
|
Relative permeability of the wetting phase array. |
Notes
The relative permeability of the wetting phase (\(k_{rw}\)) is calculated using the Corey model:
where:
- \(k_{rw0}\) is the endpoint relative permeability for the wetting phase.
- \(S_{eff}\) is the effective wetting phase saturation.
- \(n_w\) is the Corey exponent for the wetting phase.