How jonnymaserati/welleng works
welleng is a Python toolkit for well and drilling engineers, centered on constructing and analyzing well trajectories. A typical workflow creates or imports a survey, optionally computes positional uncertainty, then uses it for path planning, clearance analysis, or drilling calculations. The graph also preserves documented exchange, visualization, torque-and-drag, geomagnetic, and interpretation capabilities. Relationships are grounded in excerpts, SOURCE INDEX references, or README statements; links to unsampled subsystems rely on README documentation rather than inspected implementation.
Main entry points: survey.py Survey model · __init__.py Kick tolerance API · migration.py Gas migration · connector.py Path connector
Components 21
Survey and trajectory
- Survey model
welleng/survey.py - Curve geometry
welleng/utils.py - Path connector
welleng/connector.py - CLC solver
welleng/sawaryn_analytical.py
Well analysis
- Error models
welleng/error.py - Tool error engine
welleng/errors/tool_errors.py - Geomagnetic lookup
welleng/geomag.py - Well clearance
welleng/clearance.py - Collision meshes
welleng/mesh.py
Drilling calculations
- Kick tolerance API
welleng/kick_tolerance/__init__.py - Analytical kick solver
welleng/kick_tolerance/analytical.py - Gas migration
welleng/kick_tolerance/migration.py - Real-gas Z factor
welleng/kick_tolerance/gas_z.py - CoolProp EOS
welleng/kick_tolerance/gas_z_coolprop.py - Torque and drag
welleng/torque_drag.py
Data exchange
- Survey data exchange
welleng/exchange/edm_stream.py - Well plan files
welleng/exchange/wbp.py - WITSML logs
welleng/exchange/witsml.py
Interpretation and display
- Survey interpretation
welleng/interpretation/forward.py - 3D visualization
welleng/visual.py
Other components
- Engineer
Connections 22
- Engineer → Survey model: creates
- Survey model → Curve geometry: computes geometry
welleng/survey.py - Engineer → Path connector: designs path
- Path connector → CLC solver: solves CLC
welleng/connector.py - Survey model → Error models: computes uncertainty
welleng/survey.py - Error models → Tool error engine: dispatches models
welleng/error.py - Survey model → Geomagnetic lookup: looks up field
welleng/survey.py - Survey model → Well clearance: supplies trajectories
welleng/clearance.py - Well clearance → Collision meshes: uses mesh methods
welleng/clearance.py - Engineer → Kick tolerance API: calculates kick tolerance
- Kick tolerance API → Analytical kick solver: exposes solver
welleng/kick_tolerance/__init__.py - Kick tolerance API → Gas migration: exposes migration check
welleng/kick_tolerance/__init__.py - Analytical kick solver → Gas migration: uses migration
welleng/kick_tolerance/analytical.py - Gas migration → Real-gas Z factor: uses gas properties
welleng/kick_tolerance/migration.py - Real-gas Z factor → CoolProp EOS: offers optional backend
welleng/kick_tolerance/gas_z.py - Survey model → Torque and drag: provides trajectory
welleng/torque_drag.py - Engineer → Survey data exchange: imports EDM data
- Engineer → Well plan files: loads well plans
- Engineer → WITSML logs: reads log data
- Survey model → Survey interpretation: supports interpretation
- Engineer → 3D visualization: visualizes results
- Survey model → 3D visualization: renders trajectory
welleng/visual.py