Water saturation

Saturation models, saturation height and formation pressures, and sonic saturation.

Saturation models

petrophys.interpretation.saturation

Water saturation from Archie and shaly-sand models, and flushed-zone saturation.

Saturation of a well

calculate_sw

Calculate water saturation.

SaturationModule

Water saturation calculator with automatic model selection.

SaturationResult

Result container for saturation calculation.

SwModel

Water saturation model selection.

classify_sw

Classify water saturation.

Archie and shaly-sand equations

archie

Calculate water saturation using Archie equation.

simandoux

Calculate water saturation using the Simandoux equation.

modified_simandoux

Calculate water saturation using the modified Simandoux equation.

indonesia

Calculate water saturation using Indonesia equation.

north_sea_shaly_sand

Calculate water saturation using a North Sea shaly-sand equation.

nigeria_schlumberger

Calculate water saturation using the Nigeria/Schlumberger equation.

dual_water

Dual Water model water saturation.

waxman_smits

Waxman-Smits water saturation for shaly sands with CEC data.

Flushed zone

calculate_sxo

Calculate flushed zone water saturation (Sxo).

Saturation height

petrophys.interpretation.saturation.height

Capillary pressure, saturation-height models and formation-pressure free-water levels.

Capillary pressure and J-function

pc_from_height

Capillary pressure (psi) at a height above the free-water level (ft).

height_from_pc

Height above the free-water level (ft) for a capillary pressure (psi).

convert_pc_lab_to_reservoir

Convert a laboratory Pc to reservoir conditions via IFT and contact angle.

leverett_j

Leverett J-function (dimensionless) from Pc, permeability and porosity.

pc_from_j

Inverse of leverett_j(): capillary pressure (psi) from J.

Saturation-height models

fit_j_function

Fit Sw = a*J^b (log-linear).

fit_brooks_corey

Fit Brooks-Corey (Swir, Pd, lambda) to a drainage Pc curve.

saturation_height_from_logs

Predict Sw vs depth from a fitted J-function model and an FWL depth.

JFunctionModel

Sw = a * J^b (optionally above an irreducible floor Swir).

BrooksCoreyModel

Sw = Swir + (1-Swir)*(Pd/Pc)^lambda for Pc >= Pd (drainage).

Empirical functions from log Sw and a known FWL

fit_saturation_height

Fit an empirical saturation-height function to Sw versus height above the FWL.

fit_saturation_height_from_well

Fit a saturation-height function to a well's log Sw above a known FWL.

height_above_fwl

Vertical height above the free-water level, fwl - tvd (TVD increasing downward).

FittedSaturationHeight

An empirical saturation-height function and its fit statistics.

Formation pressure and free-water level

read_formation_pressure

Read a CSV, LAS path, lasio.LASFile, or pandas DataFrame of stations.

fit_pressure_fwl

Fit water/hydrocarbon pressure lines and return their intersection.

FormationPressureData

Stations with normalized columns and explicit TVD metadata.

PressureGradient

Linear pressure(depth), in the input pressure and depth units.

PressureFWLResult

Gradient intersection on the caller's positive-down TVD datum.

Unlabeled pressure contacts

infer_pressure_contacts

Infer candidate gradients, fluid types and contacts without fluid codes.

PressureBranch

Inferred depth segment; fluid candidates are hypotheses, not samples.

PressureContact

Pressure-line intersection and conditional +/-2-sigma sensitivity.

PressureContactResult

Unlabeled inference with explicit ambiguity and original-row alignment.

Raw MDT pretest pressure picking

read_mdt_pretest

Read one raw MDT pretest from LAS/CSV/DLIS, lasio.LASFile or DataFrame.

pick_mdt_pressure

Pick a stabilized buildup from one raw overbalanced probe setting.

formation_pressures_from_mdt

Bridge picks to unlabeled station data; review candidates stay excluded.

MDTPickingConfig

Analysis thresholds in the units in each name, not gauge specifications.

MDTPretest

One probe setting, potentially including repeated pretests.

MDTBuildup

One detected recovery; pressures retain input units, times are seconds.

MDTPressurePick

Auditable automatic pick.

More functions

fit_j_function_from_well

Fit a Leverett J-function to a well's log Sw above a free-water level.

find_fwl

The free-water level at which a saturation-height model best matches the logs.

fit_j_function_from_core

Fit one Leverett J-function to the plugs' capillary-pressure curves.

fit_thomeer

Fit the Thomeer (1960) hyperbola to one mercury-injection curve.

read_capillary_pressure

Read plug capillary-pressure curves from a CSV or Excel table (or a DataFrame).

water_contact_from_fwl

The depth of the water contact (where logs first read Sw = 1) above the FWL.

More classes

CapillaryPressureData

Plug capillary-pressure curves: a row per measured point.

FWLFromLogs

The free-water level that best explains the log water saturation.

Constants

SATURATION_HEIGHT_MODELS: tuple = ('power', 'cuddy', 'skelt_harrison')

Empirical saturation-height forms fit_saturation_height() fits.

FLUID_SYSTEMS: dict

Interfacial tension (dyn/cm) and contact angle (degrees) of laboratory and reservoir fluid systems.

WATER_GRADIENT_PSI_PER_FT: float = 0.433

Fresh-water pressure gradient (psi/ft).

J_CONST: float = 0.21645

Unit constant of the Leverett J-function for psi, mD and dyn/cm.

Sonic saturation

petrophys.interpretation.saturation.sonic

Sonic (acoustic) water saturation via Gassmann fluid substitution.

Sonic saturation of a well

sonic_water_saturation

Estimate water saturation from sonic + density via Gassmann.

SonicSaturationModule

Gassmann sonic-saturation calculator.

SonicSaturationResult

Velocities, moduli and Gassmann

slowness_to_velocity

Convert sonic slowness (us/ft) to velocity (m/s).

vs_from_vp_greenberg_castagna

Estimate shear velocity (m/s) from Vp (m/s) via Greenberg-Castagna.

velocity_to_moduli

Saturated bulk and shear moduli (GPa) from Vp, Vs (m/s) and density (g/cc).

dry_rock_modulus

Dry-frame bulk and shear moduli (GPa) vs porosity.

gassmann_ksat

Gassmann saturated bulk modulus (GPa) from dry frame, mineral, fluid, porosity.

gassmann_kfl

Invert Gassmann for the in-situ fluid modulus K_fl (GPa) given K_sat & K_dry.

wood_fluid_modulus

Effective fluid bulk modulus (GPa) for a brine/HC mix (Wood/Reuss average).

sw_from_fluid_modulus

Water saturation from the in-situ fluid modulus (inverse of Wood mixing).

fluid_substitution_dtc_swing

Compressional slowness swing (us/ft) between full brine and full HC.

Constants

MINERAL_ELASTIC: dict

Bulk and shear moduli (GPa) and density (g/cc) of common minerals.

FLUID_ELASTIC: dict

Bulk modulus (GPa) and density (g/cc) of brine, oil and gas.