Drilling Dynamics
- Apr 6
- 3 min read
Updated: 6 days ago
Real-Time Directional Drilling Trajectory Monitoring & Steering Guidance Console
A Python-powered real-time drilling console was built to monitor and analyse the directional trajectory of the Magna-1-Z oil well during active drilling operations. The console ingests survey data station by station — simulating live MWD (Measurement While Drilling) data arriving from downhole — and compares the actual drilled path against the pre-designed well plan at every step. Developed entirely in Python using Dash, Plotly, pandas and NumPy within Visual Studio Code, the console delivers instant engineering insights including toolface steering direction, RSS deflection percentage, trajectory deviation analysis, and 3D wellbore visualisation. The system supports data-driven decisions for directional drillers, enabling real-time course correction to keep the wellbore on target and within the planned trajectory envelope.
GitHub Repository:
The Problem Being Solved:
Directional drilling is one of the most technically demanding real-time operations in the oil and gas industry. A well is designed with a precise planned trajectory — a 3D path from surface to the reservoir target. While drilling, the actual wellbore constantly deviates from this plan due to formation pressures, bit walk, and tool behaviour. The directional driller must continuously monitor this deviation and steer the Rotary Steerable System (RSS) to correct the trajectory.
The challenge: Survey data arrives one station at a time during drilling. For each new survey, the driller must instantly answer four critical questions:
• Where is the bit right now — and how far is it from the plan?
• Which direction must the tool steer to return to plan?
• How much steering force is required from the RSS tool?
• Is the current trend heading toward the target — or away from it?
This console answers all four questions simultaneously, in real time, with every new survey station.
Live Console Demo:
Upcoming update:
Autonomous Drilling Simulation with Adaptive Steering Intelligence
In the current version, survey data from the actually drilled well is used to demonstrate real-time monitoring and steering guidance. The next version introduces a fully autonomous drilling simulation with the following key additions:
Synthetic Drilling Simulation
Drills forward automatically from a defined kick-off depth, no pre-recorded survey data needed
Generates new survey stations every 28.5m using Minimum Curvature Method
Simulates realistic wellbore deviation using right-walk tendency of RSS tool and formation variability
Bit depth and hole depth update continuously in real time during drilling
Automated Mid-Stand Corrections
System pauses automatically at every 9.5m within each stand to evaluate estimated wellbore position
Auto-generates required Toolface direction and RSS Deflection percentage at each pause
Driller can Accept the auto command, enter Manual values, or Reject and continue with previous setting
At stand-down every 28.5m, a real survey is generated and a revised look-ahead plan is calculated
Adaptive Steering Intelligence
After each survey, system compares what was commanded versus what the wellbore actually delivered
Continuously refines its formation behaviour model — capturing tool response, right-walk tendency and formation variability
Each successive steering recommendation becomes more calibrated to actual downhole conditions
Mirrors how commercial directional drilling software learns and adjusts during live operations
Interactive Steering Controls
Accept auto-generated commands or override with manual Toolface and Deflection entry
Configurable look-ahead distance for revised plan calculation
Real-time zoomed trajectory view showing planned, actual and projected look-ahead path
Deviation traffic light — Green, Amber and Red — based on distance from original plan
Stay tuned...



Comments