Anti-collision
AntiCollision.Scan(reference, offsets) follows the reference well in steps (antiCollision.scanStep, 10 m) and finds, for every
offset well, the closest point and the separation per the industry separation rule (ISCWSA / SPE-187073, Sawaryn et al. 2019; the
basis of API RP 78):
SF = (D - R_ref - R_off - S_m) / (k * sqrt(sigma_s^2 + sigma_pa^2)), MASD = k * sqrt(sigma_s^2 + sigma_pa^2) + R_ref + R_off + S_m, ADP = D - MASD
- D - centre-to-centre distance; R - hole radii (from the hole sections' bit sizes);
- sigma_s - the two wells' combined 1-sigma position uncertainty along the line between them (ISCWSA error models, each well's own survey program);
- k 3.5, S_m 0.3 m, sigma_pa 0.5 m - the rule's published values (
antiCollision.scalingFactor,surfaceMargin,projectAhead).
Levels are company policy; the defaults are the operator rules documented in the ISCWSA e-book: report below 4.0, adjust the plan
below 1.5 (for many operators the limit for shutting in adjacent wells), adjust below 1.25, and never plan below 1.0
(antiCollision.levels, each with its colour).
Shared geomagnetic errors. Adding the two wells' covariances assumes their errors are independent. Wells surveyed with magnetic
tools against the same geomagnetic reference share part of the reference error, and the ISCWSA technical supplement "Application of
Partial Correlations Between Geomagnetic Terms in ISCWSA Error Models" corrects for it: the declination, total field and dip terms are
split into parts that are fully correlated between wells (-CH, -CI, -OS, -OH, -OI) or not (-U), and the combined covariance is
C_A + C_B - sum(E_A E_B^T + E_B E_A^T) over the correlated terms both wells carry (SPE-67616 eq. A.24). For wells from one pad running the
same way the shared error largely cancels; for wells running towards each other it adds - the plain sum was over-optimistic there.
The built-in OWSG tool models already carry the split terms. antiCollision.geomagneticCorrelation (on by default) switches the
correction.
Wells are placed together from their wellhead latitude / longitude (WGS84), their depth-datum elevation (depths below sea level) and
their surveys referred to true north (declination / grid convergence from the header). An offset without a wellhead position is
left out with a warning; offsets beyond antiCollision.scanRadius are skipped.
Views: LadderPlotView (distance and MASD, and separation factor with the level lines, along the reference MD) and
TravellingCylinderView (offsets by direction from north and distance in the plane normal to the reference well). The scan exports
to CSV with AntiCollision.ToCsv.