Well Test Calibration
well test calibration is a three stage workflow that reconciles well test measurements with physics based well models the result is a set of validated, calibrated parameters that feed into production analysis, optimization, and downstream allocation why it matters when a well test is performed, the measured surface rates and pressures need to be reconciled with the well's physics model to derive accurate bottomhole conditions, productivity indices, and performance curves without this calibration, daily production estimates use unvalidated model parameters that may drift from actual well behavior over time well test calibration ensures that daily production calculations use calibrated vlp factors and reservoir pressure matched to recent well tests gas lift optimization has accurate performance curves at multiple tubing header pressures productivity indices are tracked over time with calibrated values tied to actual well tests allocations can be validated against model derived rates the three stage pipeline well test → \[1 well test validation] → \[2 nodal calibration] → \[3 rate table validation] each stage produces a result that can be valid , needs review , rejected , or unreviewed only a valid result in each stage triggers the next stage the pipeline is designed to be largely automatic, with engineer review required only when the physics or data quality warrants it stage 1 well test validation takes a well test from the source system and creates a standardized record that the calibration pipeline can work with what it processes only tests of type welltest that are marked valid by the source system, within the last 60 days tests outside this window or marked invalid by the source are not processed automatically what it captures oil, water, and gas rates; tubing and casing pressures and temperatures; downhole gauge pressure; gas lift injection rate; and test duration from these, it computes total gas rate (formation gas + lift gas), total gas oil ratio, and water cut missing well test data well test fields are all optional in the source system if a critical field such as tubing pressure is missing from the well test record, the system will attempt to substitute the value from the nearest daily production data (allocated rates or averaged sensor values for that day) this fallback is rare but ensures the pipeline can continue when source data is incomplete auto validation the usesourcevalidation setting controls whether the system trusts the source validity flag enabled (default) the source system's validity flag is taken at face value any test the source marks valid is immediately stamped valid and flows to nodal calibration without engineer review disabled every well test enters as needs review regardless of what the source says engineers must manually promote each result to valid to trigger downstream processing use this when your source system's validity flag is unreliable or when a stricter review workflow is required when a well test changes after initial processing source systems occasionally correct well test data after it has already been processed — a revised rate, a corrected pressure, or an updated test date the system detects these changes on every scheduled calculation and re processes accordingly the validation result is updated with the new measurements and a note is appended "source well test changed after initial processing" the status is re set per the usesourcevalidation setting (immediately valid , or back to needs review ) nodal calibration re computes using the updated data the rate table re generates daily production calculations update note if a well test was previously user set to rejected and the source data subsequently changes, the updated source data takes precedence and the status will be re set the intent is that a data correction from the source represents genuinely new information when a well test becomes invalid if the source system marks a previously valid test as invalid, all three downstream results — well test validation, nodal calibration, and rate table — are immediately marked rejected on the next scheduled calculation a note is appended to each "well test became invalid after creation" stage 2 nodal calibration reconciles the well test measurements with the physics model by calibrating vlp (vertical lift performance) parameters so that the model's calculated bottomhole pressure matches actual measured conditions at the well test date the output parameters are then applied to daily production calculations going forward what it calibrates vlp correlation the flow correlation used for the wellbore traverse friction factor (ff) a multiplier on the friction component of the pressure traverse values above 1 0 indicate more friction than the base model (scale, deposits, rough tubing); below 1 0 less friction gravity factor (gf) a multiplier on the hydrostatic/gravity component of the pressure traverse adjusts for fluid density effects not captured by the base pvt reservoir pressure used to derive the ipr and compute productivity index at the well test conditions parameter inheritance when creating or updating a nodal calibration, parameters follow a defined inheritance chain so there is always a physically reasonable starting point parameter priority 1 priority 2 priority 3 correlation existing result last valid calibration default from bhp settings reservoir pressure existing result last valid calibration initial formation pressure ff / gf (no gauge, or auto cal disabled) existing result last valid calibration 1 0 if the existing result is already valid , none of its tuning parameters are changed — only the computed outputs (pi, bhp error) are recalculated against the new well test data this preserves the engineer's previously accepted calibration auto calibration ff and gf tuning when enableautocalibrationandvalidation is on and the well test has a valid downhole gauge reading, the system automatically tunes ff and gf to minimize the difference between the calculated and measured bottomhole pressure at gauge depth a gauge reading is considered valid if it is between atmospheric pressure ( 14 7 psia) and 10,000 psia readings outside this range are treated as absent the tuning is sequential — ff first, then gf step 1 — solve friction factor gf is held at 1 0 binary search within the configured ff bounds (default 0 7 to 1 5) each trial ff value runs a full vlp traverse to gauge depth and compares calculated vs measured pressure converges over up to 30 iterations if no exact root exists within the bounds (i e , both endpoints produce error of the same sign), the bound with the smaller absolute error is selected step 2 — fine tune gravity factor ff is now fixed at its solved value binary search within the configured gf bounds (default 0 9 to 1 1) same convergence approach, up to 30 iterations why sequential friction is typically the dominant error source in gas lift vlp tubing calculations solving ff first establishes the baseline flow behavior, then gf fine tunes the hydrostatic component this is more numerically stable than solving both simultaneously no valid gauge ff and gf are not tuned they are inherited from the prior calibration or default to 1 0 the nodal calibration is still created and pi is still computed — it just can't report a gauge pressure error auto validation gates when auto calibration is enabled, the system checks two conditions after tuning both must pass for the result to be automatically marked valid pi change threshold the liquid productivity index must not change by more than the configured threshold compared to the most recent prior valid calibration can be configured as an absolute change (stb/d/psia for oil wells, mscf/d/psia for gas wells) or as a percentage vlp error threshold if a valid gauge exists, the difference between the calculated and measured bhp at gauge depth must be within the configured threshold (default 10%) if no gauge is present, this condition is skipped and only the pi threshold applies the result note will state exactly which thresholds were evaluated and whether they passed or failed, including the measured pi change and gauge error values cases that always go to needs review, regardless of settings first time calibration no prior valid calibration exists to compute a pi change against last valid calibration is more than 60 days old the prior parameters are considered stale an engineer should review the first calibration back on a well that has been shut in or untested for an extended period pi could not be computed if the combination of rates and pressures does not yield a valid pi (e g , near zero drawdown), the result cannot be auto validated how calibrated parameters apply to daily production once a nodal calibration result is marked valid , its ff, gf, correlation, and reservoir pressure are applied to every day of daily production from that well test date forward — until a newer valid calibration supersedes them days before the first ever valid calibration use the configured model defaults (ff = 1 0, gf = 1 0, configured correlation, initial formation pressure) this means a single valid calibration from a well test last month is actively shaping today's bottomhole pressure calculations keeping calibrations current is important for production accuracy manual calibration workflows on demand scenarios (exploration) allows engineers to test "what if" parameter combinations before committing to an official calibration useful when the automatic calibration result needs adjustment or when investigating a suspected change in well condition how it works select a reference well test as the base and comparison well tests to plot define one or more scenarios, each with a specific combination of correlation, ff, gf, and/or reservoir pressure any unspecified parameters are tuned automatically if a gauge is available, or inherited from the prior calibration submit — each scenario calculates independently and in parallel what you get per scenario wellbore pressure/temperature traverse ipr and vlp curves gas lift performance curve calculated pi and gauge pressure error (if gauge exists) well test diagnostics bhp calculations for the reference test plus any selected historical comparison tests, all using the same scenario parameters this reveals whether the parameter set produces physically reasonable results across multiple tests, not just the one being calibrated committing a scenario after exploring scenarios, commit the best performing set of parameters as the official nodal calibration the system marks it valid , generates rate tables, and recalculates the well this bridges the exploration workflow into the production pipeline non well test calibrations these calibration types set reservoir pressure and pressure datum directly from measured data, without requiring a full well test they are immediately marked valid and applied to daily production calculations they do not generate rate tables gauge based uses a measured downhole gauge pressure along with a specified reservoir pressure, pressure datum depth, and shut in duration applicable when a static or flowing gauge measurement is available outside of a formal well test fluid level uses a measured liquid level depth along with reservoir pressure, pressure datum depth, and a liquid level gradient typically applicable to rod pump or plunger lift wells where fluid level is monitored stage 3 rate table validation generates well performance curves at three wellhead pressures using the accepted nodal calibration parameters these curves are used for optimization and allocation — they define the relationship between the control variable (gas lift injection rate, esp frequency, esp intake, etc ) and well's production rate at different backpressure conditions three rate tables, 20 data points each current wellhead pressure at the well test's actual measured tubing pressure this is always generated lower wellhead pressure at a reduced backpressure, representing higher production potential upper wellhead pressure at an increased backpressure, representing lower production potential the lower and upper thp values are controlled by the wellheadpressurerangetype setting percentage (default) lower and upper are calculated as a percentage above and below the current whp default is 50%, so a well testing at 200 psia whp would generate curves at 100 and 300 psia fixed lower and upper are set to specific absolute psia values, applied to all wells regardless of their actual operating whp each rate table point includes liquid, oil, and water rates; formation and total gas rates; gas lift injection rate; and incremental gor (or other parameters for other lift types) current vs optimum operating point (current whp only) current the actual operating conditions from the well test — active valve depth, injection rate, and if present, the measured gauge pressure optimum the point on the current whp performance curve that maximizes liquid rate this is the theoretically optimal injection rate given the well's current condition additional data included full wellbore pressure/temperature traverse, ipr curve, vlp curve, and gas lift valve status (depth, state, gas flow rate through valve, valve type, opening/closing pressures) when a whp sensitivity fails to calculate if the lower or upper whp causes a physically invalid condition — most commonly, the higher backpressure drives bhp above reservoir pressure resulting in zero or negative drawdown — that curve is skipped the result is saved with however many tables successfully calculated, and the failed pressures are noted this is most likely to occur on the upper (higher backpressure) sensitivity for tight or low pressure wells auto validation if enableautovalidation is on (default) and all three whp curves compute successfully, the result is automatically marked valid if any curve fails, the result goes to needs review for engineer review, regardless of the auto validation setting result statuses status meaning used in daily calculations? needs review created or flagged, awaiting engineer review no valid accepted — actively applied yes rejected reviewed and rejected no only valid nodal calibrations update daily production parameters the most recent valid calibration applies to each day until superseded by a newer one note the status table above applies to all three result types (well test validation, nodal calibration, rate table validation) however, only nodal calibration status directly affects daily production calculations well test validation and rate table validation statuses control pipeline progression and external use model settings settings can be configured at the well level or the tenant level well level settings take precedence; if no well level setting exists, the tenant level setting applies if neither exists, the defaults below are used well test validation setting default description usesourcevalidation true when enabled, trusts the source system's validity flag and auto validates when disabled, all results enter as needs review nodal calibration setting default description enableautocalibrationandvalidation false when enabled, auto tunes ff/gf (if gauge present) and auto validates against pi change and vlp error thresholds minimumvlpfrictionfactor 0 7 lower bound for ff binary search solver maximumvlpfrictionfactor 1 5 upper bound for ff binary search solver minimumvlpgravityfactor 0 9 lower bound for gf binary search solver maximumvlpgravityfactor 1 1 upper bound for gf binary search solver pichangethresholdtype relativepercent whether pi change threshold is absolute (stb/d/psia or mscf/d/psia) or relative (%) pichangethreshold 10 0 maximum allowed pi change from the last valid calibration before requiring manual review vlperrorthreshold 10 0 maximum allowed bhp calc to gauge error (%) before requiring manual review only evaluated if a valid gauge exists rate table validation setting default description wellheadpressurerangetype percentage whether sensitivity whp values are a percentage offset from current whp, or fixed absolute values wellheadpressurepercentage 50 percentage above and below current whp for sensitivity curves (percentage mode only) lowerfixedwellheadpressure 100 psia lower whp for sensitivity curve (fixed mode only) upperfixedwellheadpressure 400 psia upper whp for sensitivity curve (fixed mode only) enableautovalidation true auto validate if all three whp curves calculate successfully
