Open Access Open Access  Restricted Access Subscription or Fee Access

The Application of Python Programming Language in the Automation of a Mathematical Model for Well Trajectory Selection Optimisation for a Given Field

Richard Amorin, Alexander Ofori Mensah, Samuel Kojo Annan Abakah


Directional drilling plays a major role in the exploration and recovery of hydrocarbons. There are three basic trajectories that a well may follow. They include; Build-and-Hold, Build-Hold-andDrop and Continuous-Build Trajectories. The selection of a trajectory is usually based on experience/trial and error approach and may be associated with errors. This work has therefore developed a mathematical model that optimised the automatic selection of a well trajectory type for a given field using Python programming language. Kick of point selection was optimised with the use of formation aggressiveness and a 60o maximum inclination angle and a maximum 3o /100 ft build-up rate/drop rate to avoid dogleg severity. The model validated well with existing data. For the three models, there was no deviation in the radius of curvature outputs compared to the literature data. The Continuous-Build profile recorded a deviation of 0.05% in measured distance to target with inclination, and buildup rate outputs being the same as the literature data. The Buildand-Hold profile on the other hand recorded deviations of 0.18% maximum inclination, 0.21% horizontal displacement, and 0.05% measured distance to target. The Build-Hold-and-Drop profile recorded deviations of 0.001% in true vertical depth and 0.00003% measured distance to target. The inclination angle output was the same as the literature data. Technically, these deviations are insignificant considering the lateral displacement of reservoirs.


Directional Well, Trajectory, Build Up Rate, Drop Off Rate, Kick of Point, Radius.

Full Text:



  • There are currently no refbacks.

Copyright (c) 2022 Journal of Petroleum Engineering & Technology