DynamicWorkflowConfig

petrophys.workflow.DynamicWorkflowConfig

Also available as petrophys.DynamicWorkflowConfig

class DynamicWorkflowConfig(
standardize_input=None,
rename_input_curves=False,
allow_default_rw=True,
surface_temp=None,
bht=None,
td=None,
temperature_gradient=None,
mud_type='WBM',
mud_has_clay_or_kcl=False,
rmf_at_meas_temp=None,
rmf_meas_temp=None,
rmf_salinity_ppm=None,
rmf_chlorides_mg_l=None,
rm=None,
rm_meas_temp=None,
mud_water='fresh',
rw=None,
rw_meas_temp=None,
salinity_ppm=None,
matrix_type=None,
rho_ma=None,
nphi_ma=None,
rho_fl=None,
rho_cl=None,
dt_ma=None,
dt_fl=189.0,
lithology_domain=None,
lithology=None,
lithology_csv=None,
lithology_intervals=None,
lithology_source='auto',
lithology_curve=None,
lithology_codes=None,
carbonate_calibration=None,
mineral_endpoints=None,
raise_on_error=False,
a=None,
m=None,
n=None,
cec=None,
b_coeff=None,
m_star=2.0,
rwb=None,
phi_cl=None,
depth_check=False,
apply_hc_correction=False,
hc_type='oil',
rho_hc=None,
hc_hydrogen_index=None,
vcl_cutoff=None,
sw_cutoff=None,
phie_cutoff=None,
gr_min=None,
gr_max=None,
gr_method='linear',
sp_min=None,
sp_max=None,
nd_clay=None,
bad_hole=None,
perm_method='auto',
perm_fallback_method='coates',
perm_coefficients=None,
swirr=None,
swirr_flag_phi_cl='workflow',
calculation_profile='current',
reuse_input_resflag=False,
peer_wells=None,
formation_tops=None,
use_peer_core=False,
sw_model='auto',
sw_routing_vcl_cutoff=None,
rtsh=None,
vsh_exp=1.6,
shale_exp=1.6,
zones=None,
skip_steps=<factory>,
_explicit_settings=None,
)[source]

Settings for petrophys.interpret() and the dynamic workflow.

Every setting is optional. The workflow inspects the available curves and runs each step it can; settings supply values that logs cannot (formation water resistivity, temperatures, mud properties) or override automatic choices. Values are validated when the config is created: an invalid choice raises ValueError listing the accepted values.

Temperatures are in degrees Fahrenheit, resistivities in ohm.m, densities in g/cm3 and slownesses in us/ft, whatever the depth unit of the well. Fields left as None are read from the LAS header where available or derived from the data, and the trace records where each value came from.

Examples

>>> from petrophys import DynamicWorkflowConfig
>>> config = DynamicWorkflowConfig(rw=0.05, bht="220 degF", sw_model="indonesia")
>>> config.matrix_type
'sandstone'

Attributes

a

Tortuosity factor a.

allow_default_rw

Use a 0.05 ohm.m default Rw when no Rw source is found (the warnings say so).

apply_hc_correction

Apply the neutron-density hydrocarbon correction (opt-in).

b_coeff

at 25 degC 4.6 * (1 - 0.6 * exp(-0.77 / Rw)) (Waxman and Smits, 1968), and higher at reservoir temperature.

bad_hole

Thresholds of the BAD_HOLE flag, any of cali (washout where CALI - BS exceeds it, in; default 1.5), drho (washout where absolute DRHO exceeds it, g/cm3; default 0.15) and large_hole (bit sizes above it, in; default 17.5), e.g. {"cali": 2.0}.

bht

Bottom-hole temperature, e.g. "230 degF" or "110 degC".

bht_f

calculation_profile

Interpretation configuration.

carbonate_calibration

Calibration of the carbonate-domain mineral solve, which takes calcite and dolomite from bulk density and closure.

cec

Cation exchange capacity, meq/100 g (0 to 150; pure smectite is 80-150).

depth_check

Match density, neutron and sonic to each other with depth_match before the porosity step and warn when one of them lines up with the others only after a depth shift (opt-in).

dt_fl

Pore-fluid sonic slowness, us/ft.

dt_ma

the value for matrix_type, or per depth that of each lithology-log group.

formation_tops

Formation intervals (FormationTops) for per-formation core calibration.

gr_max

Shale gamma-ray endpoint, API, used as given.

gr_method

"linear", "larionov_tertiary", "larionov_older", "stieber" (stored as "steiber") or "clavier".

gr_min

Clean-rock gamma-ray endpoint, API, used as given.

gradient_f_per_100ft

hc_hydrogen_index

Hydrogen index of the hydrocarbon for the neutron hydrocarbon correction.

hc_type

the fluid of the neutron-density hydrocarbon correction and, under "current", the PHIT rule in neutron-density crossover (PHID > PHIN + 0.05): the root-mean-square of PHID and PHIN (Gaymard and Poupon, 1968) for gas, density porosity for oil.

lithology

Alias for lithology_domain, the unambiguous name.

lithology_codes

The codebook of the lithology code curve, when its codes are not those of the built-in lithology code table: a mapping of code to rock name, or a table (path or DataFrame) that petrophys.io.read_lithology_codes() reads.

lithology_csv

Lithology intervals CSV (top,bottom,lithology); the file must exist.

lithology_curve

Mnemonic of the per-sample lithology code curve, e.g. "FACIES".

lithology_domain

"clastic" (the default when unset), "carbonate", "evaporite" or "auto".

lithology_intervals

Lithology intervals as a table (DataFrame or list of rows) or the path of an existing CSV/Excel file.

lithology_source

Lithology source.

m

Cementation exponent m; one value, or one per lithology as for a.

m_star

Waxman-Smits cementation exponent m*.

matrix_type

"auto" (resolved from lithology evidence) or a mineral name such as "sandstone", "limestone" or "dolomite"; see petrophys.model.constants.MatrixProperties.names().

mineral_endpoints

Endpoints of the clastic mineral solve that replace the built-in table, by mineral (quartz, calcite, dolomite, anhydrite, clay) or pore fluid (water), each a mapping of any of rhob (g/cm3), nphi (v/v), pef (b/e), u (b/cm3) and dt (us/ft): e.g. {"quartz": {"rhob": 2.65, "nphi": -0.04}, "water": {"nphi": 1.0}}.

mud_has_clay_or_kcl

Rw is not estimated from the SP, and no VCL_SP is computed.

mud_type

"WBM" (water-based) or "OBM" (oil-based) mud.

mud_water

"fresh" or "salt" mud, which sets the Rm-to-Rmf factor.

n

Saturation exponent n; one value, or one per lithology as for a.

nd_clay

Clay point of VCL_ND, (RHOB g/cm3, NPHI v/v).

nphi_ma

the value for matrix_type, or per depth that of each lithology-log group.

peer_wells

a list of interpreted Well objects (petrophys.interpret(peer).well, which has the PHIE or PHIT its core is fitted to).

perm_coefficients

Coefficients of the empirical permeability equation, any of a (the coefficient), b (the porosity exponent) and c (the Swirr exponent): Timur k = a (100 PHIE)^b / (100 Swirr)^c (defaults 0.136, 4.4, 2), Coates-Denoo k = a PHIE^b ((1 - Swirr) / Swirr)^c (10000, 4, 2), Wyllie-Rose k = a PHIE^b / Swirr^c (62500, 6, 2).

perm_fallback_method

"coates" (default), "timur", "wyllie_rose" or "lith_vcl".

perm_method

Permeability method.

phi_cl

Clay (shale) porosity, v/v.

phie_cutoff

0.08 clastic, 0.045 carbonate.

raise_on_error

Raise on the first failed step instead of recording it and continuing.

rename_input_curves

Rename vendor mnemonics to canonical names instead of adding aliases.

reuse_input_resflag

Reuse a RESFLAG or NET_RES curve already on the well as the reservoir flag that picks the SWIRR_APP samples before permeability.

rho_cl

Clay density, g/cm3, used by the carbonate mineral solve and the neutron-density hydrocarbon correction.

rho_fl

Pore-fluid density, g/cm3, used by the porosity, hydrocarbon-correction and mineral steps alike.

rho_hc

Hydrocarbon density in the flushed zone, g/cm3, for the hydrocarbon correction and the core matrix-density check of auto lithology.

rho_ma

the value for matrix_type, or per depth that of each lithology-log group.

rm

Mud resistivity Rm at rm_meas_temp, ohm.m (Rmf is derived from it).

rm_meas_temp

Temperature at which rm was measured, e.g. "75 degF" or "24 degC".

rm_meas_temp_f

rmf_at_meas_temp

Mud-filtrate resistivity Rmf at rmf_meas_temp, ohm.m.

rmf_chlorides_mg_l

Mud-filtrate chlorides (Cl-), mg/l, as on the mud report and the LAS header CLFL.

rmf_meas_temp

Temperature at which rmf_at_meas_temp was measured, e.g. "75 degF" or "24 degC".

rmf_meas_temp_f

rmf_salinity_ppm

Mud-filtrate salinity, ppm NaCl equivalent (alternative to Rmf).

rtsh

Shale resistivity Rsh, ohm.m, of the shaly-sand equations (Simandoux, modified Simandoux, Indonesia, North Sea, Nigeria).

rw

Formation water resistivity Rw, ohm.m, at rw_meas_temp.

rw_meas_temp

Temperature of rw, e.g. "230 degF" or "110 degC".

rw_meas_temp_f

rwb

Bound-water resistivity, ohm.m, from lab data or the LAS header.

salinity_ppm

another way to give the formation water.

shale_exp

Shale exponent of the Nigeria-Schlumberger model.

sp_max

the line of greatest deflection.

sp_min

the line of least SP deflection.

standardize_input

vendor mnemonics get canonical aliases, units such as kg/m3 or percent porosity are converted and implausible values are screened, with a warning.

surface_temp

Surface (mean annual) temperature at depth 0 of the linear temperature profile (offshore, the sea surface rather than the seabed); default 68 degF.

surface_temp_f

sw_cutoff

0.60 clastic, 0.70 carbonate; 0.7 under the "geolink" profile.

sw_model

"auto" (routed per sample by clay content) or one of "archie", "simandoux" (Sw in the clay term, Bardon-Pied), "modified_simandoux" (sand term over 1 - Vcl), "indonesia", "dual_water", "waxman_smits", "north_sea", "nigeria_schlumberger".

sw_routing_vcl_cutoff

Clay volume, v/v, from which sw_model="auto" uses a shaly-sand equation rather than Archie.

swirr

Irreducible water saturation, v/v, for the permeability equations.

swirr_flag_phi_cl

Clay porosity behind the PHIE that picks the SWIRR_APP samples, i.e. the reservoir flag built before permeability when the well has no RESFLAG or NET_RES curve.

td

Total depth of the BHT, e.g. "2650 m" or "8700 ft"; a bare number is in the well's depth unit.

td_ft

temperature_gradient

Geothermal gradient from surface_temp at depth 0, e.g. "30 degC/km", "3 degC/100m" or "1.65 degF/100ft"; a bare number is read as degF/100 ft, with a warning.

use_peer_core

Calibrate permeability with core data from peer_wells, under the conditions given there; without peer_wells it has no effect.

vcl_cutoff

Maximum clay volume for net rock, v/v.

vsh_exp

Shale exponent of the North Sea model.

zones

a list of zones, each a mapping with top, bottom and the settings for that interval (any setting but the whole-run ones, such as calculation_profile or skip_steps), e.g. [{"top": 176, "bottom": 1908, "rw": 0.5, "rw_meas_temp": "60 degF"}]; or a table or CSV/Excel file with those columns (an empty cell sets nothing).

skip_steps

Workflow steps to skip, e.g. ["permeability"]; see WorkflowStep for the names.

Parameters:
  • standardize_input (bool | None)

  • rename_input_curves (bool)

  • allow_default_rw (bool)

  • surface_temp (Any | None)

  • bht (Any | None)

  • td (Any | None)

  • temperature_gradient (Any | None)

  • mud_type (str)

  • mud_has_clay_or_kcl (bool)

  • rmf_at_meas_temp (float | None)

  • rmf_meas_temp (Any | None)

  • rmf_salinity_ppm (float | None)

  • rmf_chlorides_mg_l (float | None)

  • rm (float | None)

  • rm_meas_temp (Any | None)

  • mud_water (str)

  • rw (float | None)

  • rw_meas_temp (Any | None)

  • salinity_ppm (float | None)

  • matrix_type (str | None)

  • rho_ma (float | None)

  • nphi_ma (float | None)

  • rho_fl (float | None)

  • rho_cl (float | None)

  • dt_ma (float | None)

  • dt_fl (float)

  • lithology_domain (str | None)

  • lithology (str | None)

  • lithology_csv (str | None)

  • lithology_intervals (Any | None)

  • lithology_source (str)

  • lithology_curve (str | None)

  • lithology_codes (Any | None)

  • carbonate_calibration (str | None)

  • mineral_endpoints (Dict[str, Dict[str, float]] | None)

  • raise_on_error (bool)

  • a (Any | None)

  • m (Any | None)

  • n (Any | None)

  • cec (float | None)

  • b_coeff (float | None)

  • m_star (float)

  • rwb (float | None)

  • phi_cl (float | None)

  • depth_check (bool)

  • apply_hc_correction (bool)

  • hc_type (str)

  • rho_hc (float | None)

  • hc_hydrogen_index (float | None)

  • vcl_cutoff (Any | None)

  • sw_cutoff (Any | None)

  • phie_cutoff (Any | None)

  • gr_min (float | None)

  • gr_max (float | None)

  • gr_method (str)

  • sp_min (float | None)

  • sp_max (float | None)

  • nd_clay (Tuple[float, float] | None)

  • bad_hole (Dict[str, float] | None)

  • perm_method (str)

  • perm_fallback_method (str)

  • perm_coefficients (Dict[str, float] | None)

  • swirr (Any | None)

  • swirr_flag_phi_cl (str)

  • calculation_profile (str)

  • reuse_input_resflag (bool)

  • peer_wells (List[Any] | None)

  • formation_tops (Any | None)

  • use_peer_core (bool)

  • sw_model (str)

  • sw_routing_vcl_cutoff (Any | None)

  • rtsh (float | None)

  • vsh_exp (float)

  • shale_exp (float)

  • zones (Any | None)

  • skip_steps (List[str])

  • _explicit_settings (frozenset | None)

standardize_input: bool | None = None

vendor mnemonics get canonical aliases, units such as kg/m3 or percent porosity are converted and implausible values are screened, with a warning. None (default) means True under the "current" calculation profile and False under the “geolink” profile.

Type:

Standardize curve aliases and units before interpretation

rename_input_curves: bool = False

Rename vendor mnemonics to canonical names instead of adding aliases.

allow_default_rw: bool = True

Use a 0.05 ohm.m default Rw when no Rw source is found (the warnings say so). When False, saturation is not computed without an Rw source.

surface_temp: Any | None = None

Surface (mean annual) temperature at depth 0 of the linear temperature profile (offshore, the sea surface rather than the seabed); default 68 degF. Set explicitly, it (like bht) puts the profile ahead of an input TEMP log, which is kept as TEMP_LOG.

bht: Any | None = None

Bottom-hole temperature, e.g. “230 degF” or “110 degC”. Defaults to the LAS header BHT. It is taken as the static formation temperature at TD, with no correction for mud circulation (such as a Horner plot). Set, the temperature profile follows it rather than an input TEMP log (kept as TEMP_LOG).

td: Any | None = None

Total depth of the BHT, e.g. “2650 m” or “8700 ft”; a bare number is in the well’s depth unit. Defaults to the LAS header TD, else the deepest sample. Under "current" a total depth above the deepest log sample is not used, with a warning: the BHT is placed at the header TD, else at the deepest sample.

temperature_gradient: Any | None = None

Geothermal gradient from surface_temp at depth 0, e.g. “30 degC/km”, “3 degC/100m” or “1.65 degF/100ft”; a bare number is read as degF/100 ft, with a warning. Defaults to the LAS header TGRAD, used only when there is no BHT: a BHT anchors the profile at TD. Set explicitly, it is used instead of the header BHT; set it or bht, not both. On a well with a TEMP log (half or more of its samples finite) the log stays the temperature source and the gradient only fills the log’s gaps, whereas bht and surface_temp set explicitly replace the log.

mud_type: str = 'WBM'

"WBM" (water-based) or "OBM" (oil-based) mud. With oil-based mud no SXO or MHI is computed, and Rw is not estimated from the SP or Rxo/Rt: they need a conductive water-based filtrate (the “geolink” profile computes them).

mud_has_clay_or_kcl: bool = False

Rw is not estimated from the SP, and no VCL_SP is computed.

Type:

The mud contains clay or KCl, so the SP log is not used

rmf_at_meas_temp: float | None = None

Mud-filtrate resistivity Rmf at rmf_meas_temp, ohm.m. Rmf comes from the first of: this setting; rmf_salinity_ppm, rmf_chlorides_mg_l or rm set by you; the LAS header RMF; then the header’s filtrate salinity (FLSAL), chlorides (CLFL) or RM. The “geolink” profile takes the header RMF before rmf_salinity_ppm, rmf_chlorides_mg_l and rm.

rmf_meas_temp: Any | None = None

Temperature at which rmf_at_meas_temp was measured, e.g. “75 degF” or “24 degC”. Unset (None), the LAS header RMFT is used, or else MFST (mud filtrate sample temperature), which the “geolink” profile does not read, and otherwise 75 degF. An explicit value, 75 degF included, is used as it stands.

rmf_salinity_ppm: float | None = None

Mud-filtrate salinity, ppm NaCl equivalent (alternative to Rmf).

rmf_chlorides_mg_l: float | None = None

Mud-filtrate chlorides (Cl-), mg/l, as on the mud report and the LAS header CLFL. Without Rmf or rmf_salinity_ppm, Rmf comes from its NaCl equivalent: Cl x 58.44/35.45, divided by the brine density to give ppm by weight. The “geolink” profile reads CLFL as rmf_salinity_ppm.

rm: float | None = None

Mud resistivity Rm at rm_meas_temp, ohm.m (Rmf is derived from it).

rm_meas_temp: Any | None = None

Temperature at which rm was measured, e.g. “75 degF” or “24 degC”. Unset (None), the LAS header RMT is used, or else MST (mud sample temperature), which the “geolink” profile does not read, and otherwise 75 degF. An explicit value, 75 degF included, is used as it stands.

mud_water: str = 'fresh'

"fresh" or "salt" mud, which sets the Rm-to-Rmf factor.

rw: float | None = None

Formation water resistivity Rw, ohm.m, at rw_meas_temp.

rw_meas_temp: Any | None = None

Temperature of rw, e.g. “230 degF” or “110 degC”. When omitted, rw is taken at the median formation temperature, as recorded in the trace; either way the RW curve follows the temperature profile from that point. Set without rw under "current", it is the measurement temperature of the LAS header RW, in place of the header RWT; with neither rw nor a header RW it is not used, with a warning.

salinity_ppm: float | None = None

another way to give the formation water. Without rw, Rw follows this salinity across the temperature profile, ahead of a header RW. With rw set, rw gives the RW curve and this salinity is not used: where saturation chooses its equation by salinity (Simandoux at 20000 ppm or more), it takes the salinity of the Rw the run uses. Above 350,000 ppm a warning notes that a NaCl brine holds less; above 400,000 ppm the value is refused.

Type:

Formation water salinity, ppm NaCl equivalent

matrix_type: str | None = None

"auto" (resolved from lithology evidence) or a mineral name such as "sandstone", "limestone" or "dolomite"; see petrophys.model.constants.MatrixProperties.names(). Default: "sandstone" in the clastic domain, otherwise "auto" within lithology_domain. It gives the matrix endpoints of the porosity logs where no lithology group is known, and the clean line of VCL_ND. On a well with a lithology log or lithology intervals the group of each depth sets the matrix there, so matrix_type changes the porosity of few samples; rho_ma, nphi_ma and dt_ma hold at every depth.

rho_ma: float | None = None

the value for matrix_type, or per depth that of each lithology-log group. Set, it holds at every depth.

Type:

Matrix density, g/cm3. Unset

nphi_ma: float | None = None

the value for matrix_type, or per depth that of each lithology-log group. Set, it holds at every depth.

Type:

Matrix neutron porosity, v/v. Unset

rho_fl: float | None = None

Pore-fluid density, g/cm3, used by the porosity, hydrocarbon-correction and mineral steps alike. Default (None): 1.0, or the COSTA calibration’s 1.1 brine when carbonate_calibration="costa" is set; a value set here is used everywhere, the COSTA solve included.

rho_cl: float | None = None

Clay density, g/cm3, used by the carbonate mineral solve and the neutron-density hydrocarbon correction. Default (None): 2.45, or the COSTA calibration’s 2.52 illite when carbonate_calibration="costa" is set. The clastic porosity equations do not read it, and the clastic mineral solve keeps its clay endpoint (density, neutron, PEF and sonic of one clay point), which a density alone would not move consistently.

dt_ma: float | None = None

the value for matrix_type, or per depth that of each lithology-log group. Set, it holds at every depth.

Type:

Matrix sonic slowness, us/ft. Unset

dt_fl: float = 189.0

Pore-fluid sonic slowness, us/ft.

lithology_domain: str | None = None

"clastic" (the default when unset), "carbonate", "evaporite" or "auto". This selects the mineral-solving family and cutoff defaults; it is distinct from per-depth lithology. "evaporite" runs the clastic mineral solve (anhydrite among its minerals) with an automatic matrix that no family limits, and clastic cutoffs; evaporite samples are left out of net pay. A matrix left unset follows the domain, also when the domain is changed on a copy of the config. A rock name ("dolomite", "chalk", "anhydrite" …) sets its family as the domain and, when matrix_type is unset, the rock as the matrix where it has matrix properties.

Type:

Broad interpretation domain

lithology: str | None = None

Alias for lithology_domain, the unambiguous name. It fills lithology_domain only when that is unset; when both are set, lithology_domain is used (petrophys.interpret() refuses both together).

lithology_csv: str | None = None

Lithology intervals CSV (top,bottom,lithology); the file must exist.

lithology_intervals: Any | None = None

Lithology intervals as a table (DataFrame or list of rows) or the path of an existing CSV/Excel file.

lithology_source: str = 'auto'

Lithology source. "auto" (default) takes the lithology intervals when there are any, else the lithology code curve, else "computed". "external" requires intervals and "vendor" a lithology code curve. "computed" and "config" both ignore the lithology log and the intervals: every depth takes lithology_domain and matrix_type. With "computed" an "auto" domain or matrix is resolved from the well’s core and logs; "config" refuses "auto" for either.

lithology_curve: str | None = None

Mnemonic of the per-sample lithology code curve, e.g. "FACIES". The same curve is the vendor lithology that lithology_source selects, resolves an "auto" matrix and gives the per-depth lithology groups, and its codes are decoded with the built-in lithology code table (Kingdom nomenclature). None (default) reads LITHOLOGY_GEOLINK. Under "current", with lithology_source "auto" or "vendor", a well without it is read from the first lithology-code mnemonic (LITHOLOGY, LITHOFACIES, FACIES, LITH_CODE, ROCK_TYPE, …) whose curve holds lithology codes: 20 or more finite whole numbers from 0 to 99, at most 50 distinct, half or more of them codes of that table. A warning names a curve other than LITHOLOGY_GEOLINK, and a curve set here that has no finite samples. Under "current" a curve set here is held to the same checks (with lithology_codes, against its codes and without the 0-99 range), and one that fails them, such as a GR log, raises ValueError. Unless this is set, the “geolink” profile takes its per-depth lithology groups from LITHOLOGY_GEOLINK alone (see calculation_profile).

lithology_codes: Any | None = None

The codebook of the lithology code curve, when its codes are not those of the built-in lithology code table: a mapping of code to rock name, or a table (path or DataFrame) that petrophys.io.read_lithology_codes() reads. Each rock name is read as a lithology group by petrophys.interpretation.lithology.labels.lithology_group_for_label() (“Sst”, “shaly sandstone”, “LST”, “Dolostone”, …); codes whose name is no recognized rock are left without a group, with a warning. Not used by the benchmark profiles.

carbonate_calibration: str | None = None

Calibration of the carbonate-domain mineral solve, which takes calcite and dolomite from bulk density and closure. "generic": clay volume from VCL with density rho_cl, effective porosity, pore fluid rho_fl, calcite 2.71 and dolomite 2.87 g/cm3. "costa": the COSTA field calibration, illite from GR (-0.0424035 + 0.00562239 * GR), total porosity, a 1.1 g/cm3 brine (unless rho_fl is set) and a 2.847 g/cm3 dolomite. Default: "generic"; "costa" under the “geolink” profile. Both read the porosity step’s PHIE or PHIT, computed with the matrix_type density, so the calcite-dolomite split largely follows matrix_type where that porosity is density-derived.

mineral_endpoints: Dict[str, Dict[str, float]] | None = None

Endpoints of the clastic mineral solve that replace the built-in table, by mineral (quartz, calcite, dolomite, anhydrite, clay) or pore fluid (water), each a mapping of any of rhob (g/cm3), nphi (v/v), pef (b/e), u (b/cm3) and dt (us/ft): e.g. {"quartz": {"rhob": 2.65, "nphi": -0.04}, "water": {"nphi": 1.0}}. The solve’s water takes rho_fl and dt_fl unless set here; porosity always uses rho_fl and dt_fl. Not available under the “geolink” profile.

raise_on_error: bool = False

Raise on the first failed step instead of recording it and continuing.

a: Any | None = None

Tortuosity factor a. One value for every sample, or one per lithology, e.g. {"sandstone": 0.81, "carbonate": 1.0}: a lithology of the Archie table, a family (clastic, carbonate), or "*" for every other lithology. A lithology not given takes the LAS header’s value (A, or A_Z1 inside its zone), else its default.

m: Any | None = None

Cementation exponent m; one value, or one per lithology as for a.

n: Any | None = None

Saturation exponent n; one value, or one per lithology as for a.

cec: float | None = None

Cation exchange capacity, meq/100 g (0 to 150; pure smectite is 80-150). Waxman-Smits runs only with cec and b_coeff, from lab data or the LAS header, where a CEC in MEQ/G is converted; neither is estimated. A value under 1 gets a warning, as meq/g values look like that. The “geolink” profile passes cec to the solver as meq/g.

b_coeff: float | None = None

at 25 degC 4.6 * (1 - 0.6 * exp(-0.77 / Rw)) (Waxman and Smits, 1968), and higher at reservoir temperature.

Type:

Equivalent counter-ion conductance B, (S/m)/(meq/cm3)

m_star: float = 2.0

Waxman-Smits cementation exponent m*.

rwb: float | None = None

Bound-water resistivity, ohm.m, from lab data or the LAS header. Dual Water runs only with it: sw_model="auto" gives shaly carbonate samples without it the clastic routing (Waxman-Smits with cec and b_coeff, Simandoux at a salinity_ppm of 20000 or more, otherwise Indonesia), and sw_model="dual_water" stops with an error. Rwb is not estimated (the “geolink” profile takes 0.3 Rw).

phi_cl: float | None = None

Clay (shale) porosity, v/v. A value set is used as it stands, 0.15 included. Unset (None), it is derived from the well’s shale samples where they support it, and 0.15 is the last resort. Under "current" a LAS header shale point, PNSH (the neutron log’s reading in shale) with RBSH (shale density), comes before the shale samples; PNSH alone is not a clay porosity and is not used. The derived value is one number for the whole well: it does not follow the compaction of shale with depth, and samples without a neutron reading get the neutron-density value.

depth_check: bool = False

Match density, neutron and sonic to each other with depth_match before the porosity step and warn when one of them lines up with the others only after a depth shift (opt-in). The curves are not moved: shift_curves does that when you choose to.

apply_hc_correction: bool = False

Apply the neutron-density hydrocarbon correction (opt-in). It writes the corrected curves NPHI_HC and RHOB_HC, and the porosity step (so SW and net pay) reads them instead of NPHI and RHOB. It runs before the saturation step, so it needs an input flushed-zone saturation (SXO); without one the step is skipped with a warning. The “geolink” profile writes them for inspection only.

hc_type: str = 'oil'

the fluid of the neutron-density hydrocarbon correction and, under "current", the PHIT rule in neutron-density crossover (PHID > PHIN + 0.05): the root-mean-square of PHID and PHIN (Gaymard and Poupon, 1968) for gas, density porosity for oil.

Type:

Hydrocarbon type, "oil" or "gas"

rho_hc: float | None = None

Hydrocarbon density in the flushed zone, g/cm3, for the hydrocarbon correction and the core matrix-density check of auto lithology. Unset: 0.8 for oil and 0.2 for gas in the correction (0.25 for gas in the matrix check).

hc_hydrogen_index: float | None = None

Hydrogen index of the hydrocarbon for the neutron hydrocarbon correction. Unset: 1.0 for oil, 0.3 for gas.

vcl_cutoff: Any | None = None

Maximum clay volume for net rock, v/v. Unset, each sample takes the standard of its lithology family (STANDARD_CUTOFFS: 0.40 clastic, 0.30 carbonate); the “geolink” profile uses 0.3. Each cutoff takes one value, or one per family, e.g. {"clastic": 0.35, "carbonate": 0.2} (a lithology name stands for its family; "*" for the others); a family left out takes the LAS header’s value, else its standard. Unless sw_routing_vcl_cutoff is set, saturation switches to a shaly-sand model above this clay volume, or above 0.3 when it is unset. The same clay volume bounds the reservoir flag that picks the SWIRR_APP samples (built when swirr is unset and the well has no SWIRR curve or NMR Swirr), so vcl_cutoff also changes SW, PERM, RQI and FZI, not only net pay.

sw_cutoff: Any | None = None

0.60 clastic, 0.70 carbonate; 0.7 under the “geolink” profile.

Type:

Maximum water saturation for net pay, v/v. Unset

phie_cutoff: Any | None = None

0.08 clastic, 0.045 carbonate. It is also the least porosity of the reservoir flag that picks the SWIRR_APP samples (unset: 0.08 in every lithology under "current"), built when swirr is unset and the well has no SWIRR curve or NMR Swirr, so it changes PERM, RQI and FZI, not only net pay.

Type:

Minimum effective porosity for net reservoir, v/v. Unset

gr_min: float | None = None

Clean-rock gamma-ray endpoint, API, used as given. None picks P5 of the log, lowered to 20 API when higher (a guard against a nearly flat GR, reported in the trace as gr_min_used, with a warning when the pick is above 30 API).

gr_max: float | None = None

Shale gamma-ray endpoint, API, used as given. None picks P95 of the log, raised to 100 API when lower.

gr_method: str = 'linear'

"linear", "larionov_tertiary", "larionov_older", "stieber" (stored as "steiber") or "clavier".

Type:

Transform

sp_min: float | None = None

the line of least SP deflection. None picks P95 of the SP log. With a normal SP, where sands deflect negative, it is the higher of the two baselines.

Type:

Shale SP baseline, mV

sp_max: float | None = None

the line of greatest deflection. None picks P5 of the SP log. The two lines are also those of the SP-derived Rw. VCL_SP joins the minimum-of-indicators VCL only when both sp_min and sp_max are set. Both are constant lines applied over the whole log, so set them only for an SP without baseline drift (e.g. a drift-corrected SP): lines picked in one interval of a drifting SP misread every other interval, and the minimum takes that reading. Without them VCL_SP is reported and only fills depths with no GR or neutron-density value. A warning flags user baselines whose order contradicts the SP polarity; the automatic P5/P95 picks assume a normal SP and are not checked. The “geolink” profile always puts VCL_SP in the minimum.

Type:

Clean-sand SP line (static SP), mV

nd_clay: Tuple[float, float] | None = None

Clay point of VCL_ND, (RHOB g/cm3, NPHI v/v). None (default) picks it under "current" in the well’s good-hole shales: the median of 20 or more shale-lithology samples, else of the VCL_GR > 0.9 samples, else (2.62, 0.38). The pick is one median over the whole log, so where shallow, undercompacted shale dominates it the point is lighter than the shales of a deeper reservoir; set the point from a crossplot of the interval you evaluate. A point less than 0.10 v/v of neutron above the clean line leaves VCL_ND out of VCL, with a warning. VCL_ND is measured from the clean line of the run’s matrix at every depth, carbonate beds of a clastic well included. Zoned runs give every zone the whole-well point. The “geolink” profile uses (2.62, 0.38) and ignores this setting.

bad_hole: Dict[str, float] | None = None

Thresholds of the BAD_HOLE flag, any of cali (washout where CALI - BS exceeds it, in; default 1.5), drho (washout where absolute DRHO exceeds it, g/cm3; default 0.15) and large_hole (bit sizes above it, in; default 17.5), e.g. {"cali": 2.0}. Not available under the “geolink” profile.

perm_method: str = 'auto'

Permeability method. "auto" (default) writes PERM from the empirical equation perm_fallback_method at every depth and, where the well’s core (or peer-well core) gives a core model, the core-calibrated PERM_CC beside it. Naming an equation writes PERM from it and no PERM_CC: "timur", "coates" (Coates-Denoo) and "wyllie_rose" from porosity and Swirr (perm_coefficients gives the equations), "lith_vcl" from total porosity, clay volume and lithology, without Swirr.

perm_fallback_method: str = 'coates'

"coates" (default), "timur", "wyllie_rose" or "lith_vcl". It sets PERM at every depth, also where a core model is fitted: the core-calibrated permeability is PERM_CC.

Type:

Empirical equation of PERM under perm_method="auto"

perm_coefficients: Dict[str, float] | None = None

Coefficients of the empirical permeability equation, any of a (the coefficient), b (the porosity exponent) and c (the Swirr exponent): Timur k = a (100 PHIE)^b / (100 Swirr)^c (defaults 0.136, 4.4, 2), Coates-Denoo k = a PHIE^b ((1 - Swirr) / Swirr)^c (10000, 4, 2), Wyllie-Rose k = a PHIE^b / Swirr^c (62500, 6, 2). They apply to the equation the run uses (perm_method, or perm_fallback_method where no core model is fitted); lith_vcl takes none. Not available under the “geolink” profile.

swirr: Any | None = None

Irreducible water saturation, v/v, for the permeability equations. One value for every sample, or one per lithology as for a, e.g. {"sandstone": 0.12, "limestone": 0.20} (SCAL or NMR values by rock type); a lithology not given takes the automatic estimate. Defaults to a SWIRR curve or NMR data, else the Buckles bulk-volume-water estimate. Under "current" it must be above 0.

swirr_flag_phi_cl: str = 'workflow'

Clay porosity behind the PHIE that picks the SWIRR_APP samples, i.e. the reservoir flag built before permeability when the well has no RESFLAG or NET_RES curve. "workflow" uses the reported PHIE. "all_shale_phit" recomputes PHIE for that flag only, as clip(PHIT - VCL * phi_cl, 0, PHIT) with phi_cl the mean PHIT of all shale-lithology samples, the rule used to select SWIRR_APP samples for the GeoLink benchmark context. This flag calculation does not alter the reported PHIE or SW.

calculation_profile: str = 'current'

Interpretation configuration. "current" is the default; "geolink" supplies the GeoLink evaluation configuration, including dataset-specific calculation and classification rules. Explicit settings take precedence over profile defaults. Resolved parameters and selected methods are recorded in the workflow trace.

For GeoLink, COSTA or Danish benchmark context, use context_profile in petrophys.export_context to select the collection’s preparation, calibration, interpretation and grouping rules. See the benchmark context guide for required inputs and commands.

Library calls read this setting from the supplied configuration. The MCP server can also select it through --calculation-profile or PETROPHYS_CALCULATION_PROFILE.

reuse_input_resflag: bool = False

Reuse a RESFLAG or NET_RES curve already on the well as the reservoir flag that picks the SWIRR_APP samples before permeability. False (default) recomputes the flag from this run’s cutoffs and warns that the input flag was set aside, so an interpreted LAS fed back in cannot carry another run’s cutoffs into Swirr and permeability. True keeps a supplied flag, e.g. a vendor reservoir flag you mean to honour.

peer_wells: List[Any] | None = None

a list of interpreted Well objects (petrophys.interpret(peer).well, which has the PHIE or PHIT its core is fitted to). A peer is used only when use_peer_core=True, it has the same header.field as this well, both wells have formation tops with a formation name in common, and it is interpreted. Under "current" a warning names the condition a peer fails.

Type:

Offset wells whose core data calibrate permeability

formation_tops: Any | None = None

Formation intervals (FormationTops) for per-formation core calibration. Defaults to formations attached by petrophys.read.

use_peer_core: bool = False

Calibrate permeability with core data from peer_wells, under the conditions given there; without peer_wells it has no effect.

sw_model: str = 'auto'

"auto" (routed per sample by clay content) or one of "archie", "simandoux" (Sw in the clay term, Bardon-Pied), "modified_simandoux" (sand term over 1 - Vcl), "indonesia", "dual_water", "waxman_smits", "north_sea", "nigeria_schlumberger".

sw_routing_vcl_cutoff: Any | None = None

Clay volume, v/v, from which sw_model="auto" uses a shaly-sand equation rather than Archie. None (default) uses vcl_cutoff, or 0.3 when that is unset. Unset net-pay cutoffs resolve per lithology family under "current" (clastic VCL < 0.40), so net rock with 0.3-0.4 clay gets the shaly-sand equations; under the “geolink” profile (VCL < 0.3) every net-rock sample is evaluated with Archie. A lower value, e.g. 0.15, also applies the shaly-sand equations to moderately shaly reservoir rock. Under "current" the SWIRR_APP samples are picked below the same clay volume. One value, or one per lithology family as for vcl_cutoff, e.g. {"clastic": 0.2, "carbonate": 0.3}.

rtsh: float | None = None

Shale resistivity Rsh, ohm.m, of the shaly-sand equations (Simandoux, modified Simandoux, Indonesia, North Sea, Nigeria). Unset, it is the clay resistivity Rcl the workflow computes from the well’s shale.

vsh_exp: float = 1.6

Shale exponent of the North Sea model.

shale_exp: float = 1.6

Shale exponent of the Nigeria-Schlumberger model.

zones: Any | None = None

a list of zones, each a mapping with top, bottom and the settings for that interval (any setting but the whole-run ones, such as calculation_profile or skip_steps), e.g. [{"top": 176, "bottom": 1908, "rw": 0.5, "rw_meas_temp": "60 degF"}]; or a table or CSV/Excel file with those columns (an empty cell sets nothing). Depths are in the well’s depth unit unless a depth_unit is given; zones may not overlap. Each zone is interpreted with its settings over the rest and merged into the well. Inside a zone its values win over everything; outside, the whole-well settings apply. LAS header zones (RW_Z1 with TOP_Z1/BOT_Z1) rank below the settings you pass. A zone may also give only a name (or zone) and its depths: it then changes nothing and names the interval for DynamicWorkflowResult.zone_summary() and context exports. A well column lets one table hold the zones of several wells; a well takes the rows with its name and the rows without one. Not available under the “geolink” profile.

Type:

Settings that differ by depth

skip_steps: List[str]

Workflow steps to skip, e.g. ["permeability"]; see WorkflowStep for the names. A skipped step writes none of its curves, and the steps that read them are not skipped with it: one that finds its inputs missing is skipped with the reason, and one that runs without them fails. Skipping "rw" leaves saturation without an Rw: the saturation step fails and the run’s status is "failed", so skip the steps that depend on a skipped step as well.

surface_temp_f
bht_f
td_ft
gradient_f_per_100ft
rmf_meas_temp_f
rm_meas_temp_f
rw_meas_temp_f