fit_j_function_from_well

petrophys.interpretation.saturation.height.fit_j_function_from_well

fit_j_function_from_well(
well,
fwl_depth,
sw_curve=('SW_INPUT', 'SW'),
perm_curve=('PERM_CC', 'PERM', 'PERM_CORE', 'PERM_TIMUR'),
phi_curve=('PHIE_CC', 'PHIE', 'PHIT'),
fluids='oil_brine',
sg_water=1.0,
sg_hc=0.8,
form='power',
swir=0.0,
top=None,
bottom=None,
tvd_curve=None,
)[source]

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

Each sample’s capillary pressure comes from its height above fwl_depth (in the well’s depth unit and datum) and the fluid densities, and its J from that pressure, permeability and porosity; the J-Sw power law is then fitted (fit_j_function()). fluids names the interfacial tension and contact angle ("oil_brine", "gas_brine", …). top and bottom bound the samples. The model keeps them, so model.plot() draws the fit; apply it with saturation_height_from_logs(). Takes a well or an interpretation result.

sw_curve, perm_curve and phi_curve each name a curve or several in order of preference; at each depth the first of them with a value is used. sg_water and sg_hc are the specific gravities of the water and the hydrocarbon, and form and swir are those of fit_j_function(). Height is measured along tvd_curve when one is named, with fwl_depth in that curve’s unit and on its datum; otherwise the depth index is taken as true vertical depth, which holds for a vertical well only, and a warning says so. Unknown fluids, a well with none of the named curves, or fewer than 3 usable samples above the free-water level raise ValueError.

>>> model = fit_j_function_from_well(hw3, fwl_depth=7991)
>>> model.plot()
Parameters:
Return type:

JFunctionModel