You are on page 1of 16

SPE 84246

A Compendium of Directional Calculations Based on the Minimum Curvature Method


S.J. Sawaryn, SPE, J.L. Thorogood, SPE, BP plc.
Copyright 2003, Society of Petroleum Engineers Inc.
This paper was prepared for presentation at the SPE Annual Technical Conference and
Exhibition held in Denver, Colorado, U.S.A., 5 8 October 2003.
This paper was selected for presentation by an SPE Program Committee following review of
information contained in an abstract submitted by the author(s). Contents of the paper, as
presented, have not been reviewed by the Society of Petroleum Engineers and are subject to
correction by the author(s). The material, as presented, does not necessarily reflect any
position of the Society of Petroleum Engineers, its officers, or members. Papers presented at
SPE meetings are subject to publication review by Editorial Committees of the Society of
Petroleum Engineers. Electronic reproduction, distribution, or storage of any part of this paper
for commercial purposes without the written consent of the Society of Petroleum Engineers is
prohibited. Permission to reproduce in print is restricted to an abstract of not more than 300
words; illustrations may not be copied. The abstract must contain conspicuous
acknowledgment of where and by whom the paper was presented. Write Librarian, SPE, P.O.
Box 833836, Richardson, TX 75083-3836, U.S.A., fax 01-972-952-9435.

Abstract
The minimum curvature method has emerged as the accepted
industry standard for the calculation of 3D directional surveys.
Using this model, the wells trajectory is represented by a
series of circular arcs and straight lines. Collections of other
points, lines and planes can be used to represent features such
as adjacent wells, lease lines, geological targets and faults. The
relationships between these objects have simple geometrical
interpretations, making them amenable to mathematical
treatment. The calculations are now used extensively in 3D
imaging and directional collision scans, making them both
business and safety critical. However, references for the
calculations are incomplete, scattered in the literature and have
no systematic mathematical treatment. These features make
programming a consistent and reliable set of algorithms more
difficult. Increased standardisation is needed.
Investigation shows that iterative schemes have been used
where explicit solutions are possible. Explicit calculations are
preferred because they confer numerical predictability and
stability. Though vector methods were frequently adopted in
the early stages of the published derivations, opportunities for
simplification were missed because of premature translation to
Cartesian coordinates.
This paper contains a compendium of algorithms based on the
minimum curvature method (includes co-ordinate reference
frames, toolface, interpolation, intersection with a target plane,
minimum and maximum TVD in a horizontal section, point
closest to a circular arc, survey station to a target position with
and without the direction defined, nudges and steering runs).
Consistent, vector methods have been used throughout with
improvements in mathematical efficiency, stability and
predictability of behaviour. The resulting algorithms are also
simpler and more cost effective to code and test. This paper
describes the practical context in which each of the algorithms

is applied and enumerates some key tests that need to


be performed.
Introduction
The first reference to the minimum curvature directional
survey calculation method is credited to Mason and Taylor1 in
1971. In the same year, Zaremba2 submitted an identical
algorithm that he termed the circular arc method. In the
minimum curvature method, two adjacent survey points are
assumed to lie on a circular arc. The arc is located in a plane
which orientation is defined by the known inclination and
direction angles at the ends. By 1985 the minimum curvature
method was recognised by the industry as one of the most
accurate methods but it was regarded as cumbersome for hand
calculation3,4. The emergence of well trajectory planning
packages to help manage directional work in dense well
clusters increased its popularity. It was natural to use the same
model for both the surveys and the segments of the well plan
trajectories. Today, with the wide spread use of computers,
computational power is no longer an issue and the method has
emerged as the accepted industry standard.
Industry Requirements
Over the years, various algorithms based on the minimum
curvature method have been published for the construction of
increasingly complex trajectories and tasks such as
interpolation. Since these algorithms have emerged piecemeal,
they have tended to use different nomenclatures and
mathematical techniques for their solution. The result of this
piecemeal development is duplicated and inefficient computer
code and a poor understanding of the engineering integrity of
the systems.
Safety and Business Criticality
An undetected fault in the coding or use of directional
surveying and collision scanning software has been classified
as having the potential to cause property damage,
environmental damage, personal injury or loss of reputation5.
The integrity of these business and safety critical drilling
systems is therefore a concern. Modern 3D imaging and
directional scanning packages execute thousands of
calculations for each task. Increased automation of the
workflows associated with these tasks means that most
calculations must be taken for granted and will pass
unchecked. Sawaryn6 et. al., have described a process for
managing these systems and identified a number of
requirements related to the equations they use. Specifically,
equations must be traceable back to the source documentation

SPE 84246

that must clearly explain their purpose, limitations and use.


The general characteristics of the published algorithms can be
assessed against these requirements.
Angular Change Like other survey calculation methods,
the minimum curvature algorithm was originally developed to
calculate a wells position from directional surveys. The
spacing between the survey stations was normally 30 to 500ft.
At that time with typical build rates, the total angle change
over a 100ft course length would rarely be allowed to exceed 5
deg and the final inclination of most of these early wells was
below 90 deg. When creating directional well plans the total
angle change between adjacent stations in the plan may be
considerably larger. These days, in designer wells the angular
change between two adjacent points on a well plan may
exceed 90 deg and the final inclination often exceeds 90 deg.
One well7 is recorded as having reached 164.7 deg inclination.
Many of the published algorithms do not contain an explicit
definition of the maximum permitted angle change. The
multiple solutions arising from periodicity of the trigonometric
equations involved makes this a serious concern.
Mathematical Behaviour The possibility of multiple
solutions means the results of the calculations may not always
be as intended, unless great care has been paid to their
implementation. Some algorithms employ iterative schemes so
that even if the scheme coverges, there is no guarantee that it
converges to the correct solution. Ideally, iterative schemes
should be accompanied by proof of convergence. At the very
least they should be thoroughly tested over some specified
range of variables. Additionally, there are cases where no
solution exists and extra code is needed to trap this condition.
Explicit expressions are more predictable and usually confer
advantages in speed and maintainability of the computer code.
For certain values, for example in geometrically straight hole,
expressions may be indeterminate. One solution adopted by
Zaremba is to define a suitably small number at which the
expression jumps abruptly to the asymptotic value2. However,
this can give rise to random differences between software
packages6. A better method is to develop series expressions
that enable a smooth transition to be maintained.

geometric interpretations and several examples of its use are


highlighted in this paper.
Inconsistent nomenclature also leads to implemenational
difficulties. Review shows the nomenclatures used in the
literature are neither consistent with each other, nor consistent
with accepted mathematical practice. An example is the
definition of the normal vector that mathematical convention
has pointing towards the centre of curvature. This is opposite
to the convention used in the earlier drilling literature. Because
of the expansion in directional drilling applications, symbols
inevitably conflict. The Industry Steering Committee on
Wellbore Survey Accuracy (ISCWSA) has proposed some
standards8, but with limited scope. We conclude the SPE
documentation standards9 associated with this subject area are
no longer adequate and need revising.
Directional Calculations
A consistent vector notation is used throughout this paper. This
simplifies the development of the 3D equations and improves
the clarity and presentation of the results. For convenience, the
main vector operations are summarized in the appendix. In
some cases, series expansions have been used to ensure the
smooth transition of an expression to what would otherwise be
an indeterminate form. The thresholds at which the series
approximations should be used depend on the machine
precision. The constants used in this paper assume calculations
are good to at least 9 significant digits. The angle subtending
the arc may assume values such that 0 < . Throughout, it
is also assumed the start and end points of the arc are not
coincident. Until such time as the standards are officially
revised, we have chosen to maintain commonality with earlier
papers on this subject and use a vector b pointing away from
the centre of the arc. For comparison with mathematical texts,
the normal vector is therefore b.
Reference Frames
Co-ordinate Reference Frame The traditional reference
frame for directional work uses North, East and Vertical
coordinates that comprise a right handed set, Fig. 1. A point
N,E,V can be represented by the vector p, equation (2).

Common Constructs The absence of consistent


mathematical methods and nomenclature may hide common
constructs and potential simplifications in the coding of the
algorithms. For example, an equation of the form C = A sin()
+ B cos() appears in many of the geometric constructions
associated with the minimum curvature method. This equation
can be solved explicitly for and several mathematically
equivalent forms exist. Zaremba proposed the form (1) that is
used throughout this paper.

A A2 + B 2 C 2
= 2 tan
B+C

1
2

(1)

When presented in this way, it can be seen that no real


solutions exist if C2 > A2 + B2. This inequality has simple

V
Fig. 1

SPE 84246

N
p = E
V

(2)

A unit direction vector t can be represented in terms of the


local inclination and azimuth , equation (3). The inclination
and azimuth values can be calculated from the vectors
components using the expressions (4) and (5).

N
sin cos

= E = sin sin
V
cos

N 2 + E 2
= tan
V

1
2

(3)

(4)

= tan 1

(5)

By using this reference frame an implicit assumption is made


that the earth is flat. For moderate distances from the origin
this assumption holds. For larger distances, such as those
encountered in extended reach wells Earths curvature is
important and corrections to the coordinates must be made.
Williamson and Wilson discuss the matter in detail10.

cos cos
h = cos sin
sin

(6)

sin
r = cos
0

(7)

0
v = 0
1

(8)

Dogleg Severity
Dogleg severity is a measure of the change in inclination
and/or direction of a borehole, Fig. 3. The change is usually
expressed in degrees per 100 ft of course length in oilfield
units3 and degrees per 30m in metric units. Dogleg severity is
used to determine stress fatigue in drill pipe, casing wear and
casing design loads. It can also be a limiting factor in casing
running and directional drilling operations. For the minimum
curvature method, the expression for the dogleg severity takes
the form (18000* /)/(D2D1) in oilfield units. The
difference in measured depths D2 D1 between the points is
referred to as the course length S12.

Borehole Reference Frames Two reference frames are


associated with the borehole, Fig. 2. The first frame is formed
by the highside, rightside and tangent unit vectors h, r and t
respectively. These form a right-handed, mutually orthogonal
set. In curved hole, the second frame comprises the normal,
binormal and tangent unit vectors b, n and t respectively.
These also form a right-handed, mutually orthogonal set. The
angle between the highside vector h and normal vector b is
the toolface angle .

1
E

t1

t2

-b

Fig. 2

The highside, rightside and vertical unit vectors are


represented in equations (6), (7) and (8). Expressions for the
normal and binormal vectors b and n can be found in the
appendix (A-8 to A-12).

Fig. 3

Most expressions found in the literature involve the


calculation of an arc cosine. These have been used even
though it is recognised that cosines of small angles are more
difficult to handle accurately than sines of small angles3.
Equation (9) developed by Lubinski does not make any
assumption about the actual path of the wellbore, yet it is
mathematically equivalent to the expression traditionally used
in the minimum curvature method. An expression for tan(/2)
is readily developed from it.

1
1 2

= 2 sin sin 2 2
+ sin 1 sin 2 sin 2 2

2
2

(9)

SPE 84246

Since the trigonometrical identity and computational


advantages of (9) were recognised it is surprising it has not
been adopted earlier. The dogleg severity can be related to
both the radius of curvature and the curvature of the arc
using the relationships (10).

1 *
= =
=
R S12 S *

(10)

Survey Calculation
Accurate determination of wellbore position is critical to well
placement, collision avoidance, reservoir modeling and equity
determination. Though the accuracy of the minimum curvature
method is acknowledged, Stockhausen and Lesso11 showed
that modern drilling practices could introduce systematic
errors even with survey intervals as frequent as 100ft.

n12
b1

po

p1

b2
t1

situation is of no practical concern. This may not be the case


for adjacent points in a well plan trajectory, which may be
separated by considerable distances.

p1
Fig. 5

Interpolation
It is often required to identify the coordinates of a particular
point, say p* on a trajectory Fig. 6. In all cases, the problem
reduces to one of interpolation or extrapolation on an arc
defined by the positions p1 and p2 and directions t1 and t2 of its
end points. The algorithms presented here may be used for
both functions. The interpolation may be driven by one of
several parameters such as measured depth, subtended angle,
inclination, azimuth, northing, easting or vertical ordinate.

n12

S12
p2

Fig. 4

t2

p1

The position of the next survey point p2 is calculated from p1


using (11), Fig. 4. The shape factor f() equals tan(/2)/(/2).
Details are summarised in the appendix (A-6 to A-18).

t1

sin 1 cos 1 + sin 2 cos 2


S12 f ( )

p 2 = p1 +
sin 1 sin 1 + sin 2 sin 2
2

cos 1 + cos 2
(11)
Straight Hole Conditions When equals zero the shape
factor is mathematically indeterminate, so for < 0.02 radians
the series expansion (12) should used instead12. The series is
presented in Horner13 form to minimise both the number of
arithmetic operations and the propagation of errors.

f ( ) 1 +

p2

2
12

1+

2 31 2 (12)
1 +

1
+
10 168
18

There is a second possible solution of (9), equal to (2 ).


The measured depth between the survey stations must be the
same in both cases, implying the second solution has a greater
curvature, Fig. 5. When calculating directional surveys, the
density of survey stations, behaviour of the bottom hole
assemblies and knowledge of the toolface settings means this

p*
t* p2

t2

Fig. 6

Before discussing each of these cases it is worth reviewing the


properties of a circular arc. The subtended angle, inclination
and azimuth of a point on a circular arc can be determined
solely by the attitude of the circle in the coordinate reference
frame. Knowledge of the size of the circle enables course
lengths to be determined. Finally, it is only if a north, east or
vertical ordinate is needed that the absolute position of the
circle in the reference frame must be defined.
Interpolation on Measured Depth The association of
events or observations such as formation tops and overpulls
with points on the wellbore is a common requirement.
Interpolations on measured depth determined from the pipe
tally are therefore the most common interpolation mode. If S*
is the course length along the arc at which the properties are
required, the relationships * = (S*/S12) and ( - *) = (1 -

SPE 84246

S*/S12) can be used to reduce the interpolation on measured


depth to the interpolation on subtended angle (13).
Interpolation on Subtended Angle The expression (13)
enables the direction vector t* at a point p* on an arc to be
determined solely from the direction vectors of its start and
end points and the angle subtended from the first point p1 to
the point of interest. Refer to the appendix (A-19 to A-27).
*

t =

sin *
sin *
t1 +
t2
sin
sin

(13)

Many of the algorithms presented in this paper involve the


determination of the subtended angle * as a first step. The
relationship (13) provides a convenient means of determining
the other parameters at the point once the subtended angle has
been found. For example, once t* is known, the corresponding
point p* can be calculated using the minimum curvature
equation (11).
Straight Hole Conditions When the subtended angle
equals zero, both terms in (13) are indeterminate. For < 0.02
radians these terms which contain factors of the form
sin(c)/sin may be expanded14 in another Horner series (14).
1 c
sin (c )
c + 2 c
sin
6 6

c
2 1
+ 2 c

360 + c 36 + 120

31
7
1
c

+ 2 c
+ c 2
+ c 2

15120
720 5040
2160

2

127
31
7
1
c 2

+ c 2
+ c2
+ c 2
+ c 2
+

90720
604800
30240 362880
43200

(14)
It should be noted this interpolation mode is impossible when
the subtended angle is identically zero, unless the constant c
can be defined in some other way, such as by using the ratio of
the measured depths.
Interpolation on Azimuth Occasionally, it is necessary to
truncate a well plan trajectory at a depth so that it is lined up
with some specified direction. Firstly check the condition
sin 1 sin 2 sin ( 2 1 ) 0 to determine that the arc does
not lie in the vertical plane and that a solution exists. The
subtended angle is then determined using (15).

sin 1 * sin sin 1

*
*
sin 2 sin 2 + sin 1 sin 1 cos

* = tan 1

(15)
In the appendix it is shown that the expression (A-29) used to
calculate the inclination * from * and * is of the form C =
A sin(*)+ B cos(*). The solution for * is determined using
(1). In this case the constants A, B and C are given by (16),

(17) and (18). Choose the smallest root unless it is less than or
equal to both 1 and 2 when the largest root should be chosen.

A = sin 1 cos * 1

(16)

B = cos 1

(17)

C = cos *

(18)

As the subtended angle was originally determined from an


azimuth on the arc a solution must exist. Finally, the position
p* is determined using the minimum curvature equation (11).
Generally, if C2 > A2 + B2 the orientation of the arc is too
shallow for the inclination at any point on it to reach the
desired value. For details, see the appendix (A-28 to A-30).
Straight Hole Conditions Azimuth varies linearly with
measured depth in near straight hole conditions. For angles
< 10-4 radians, expression (19) should be used to determine the
corresponding measured depth. If the azimuth values in either
the numerator or denominator straddle north, the minimum
angular difference should be used. The remaining properties
can be determined by interpolating on this depth.

* 1

S * S12
2 1

(19)

Interpolation on Inclination The determination of


measured depths corresponding to some inclination range
appears in the automation of calculations for hole cleaning and
rock mechanics. Firstly check that both points 1 and 2 are
not equal to /2. In this condition the arc would lie in the
horizontal plane and no solutions are possible. In the appendix
(A-31) it is shown that the subtended angle * can be
calculated using (1). In this case the constants A, B and C are
given by the expressions (20), (21) and (22).

A = cos 2 cos cos 1

(20)

B = sin cos1

(21)

C = sin cos *

(22)

If C2 > A2 + B2 then the orientation of the plane containing the


arc is too close to the horizontal to enable the desired
inclination to be reached and no solutions exist. The
corresponding azimuth value can be determined from (23).

(
(

)
)

sin 1 sin 1 sin * + sin 2 sin 2 sin *


*
*
sin 1 cos 1 sin + sin 2 cos 2 sin

* = tan 1

(23)
Straight Hole Conditions Inclination varies linearly with
measured depth in near straight hole conditions. For the
subtended angle < 10-4 radians, expression (24) should be
used to determine the course length. The remaining properties
can be determined by interpolating on this depth.

SPE 84246

* 1

S S12
2 1
*

(24)

Interpolation at a Plane A plane can be used to represent


many geological features such as formation horizons and
faults. In 3D visualisation tools, collections of interlocking
planes are used to represent complex geological features.
Imaginary planes can be used to represent lease boundaries or
the north, east and vertical coordinate limits on directional
plots. The point p* at which the well meets or crosses these
features is of great practical interest, Fig. 7. The plane is
uniquely defined by its normal vector m and any point px on it.

t1

Straight Hole Conditions When the subtended angle


equals zero the above solution is indeterminate. For < 10-4
radians a series expansion (29) is used to determine the
measured depth. See the appendix (A-37 to A-44). No solution
is possible if the line is parallel to the plane, when (m t 1 )
equals zero.

p1

px
p2

t2 p*

If C2 > A2 + B2 the curvature of the arc is too large to intersect


the plane and no solutions exist. If C2 = A2 + B2 then the arc
just touches the plane and there is only one solution. For C2 <
A2 + B2 there are two intersections and in this case the
subtended angles to both of them may be less than . The two
solutions correspond to the plus and minus signs in (1). This
situation may be encountered when landing in a pay zone and
the assembly is not building at the desired rate. Using this
interpolation mode it is possible to determine if and where the
bottom of the zone will be breached and the point at which the
well is expected to re-enter. The lost production interval can
then be calculated directly.

S*
Fig. 7

There are five possible relationships between the arc and


the plane.
An infinite number of intersections, when the plane
containing the arc and the target plane are parallel. This
condition should be tested first by establishing if both
(m t 1 ) and (m t 2 ) are equal to zero.
Two intersections, when the arc completely cuts
the plane.
One intersection, when the arc just touches the plane.
No intersections, when the curvature of the arc is
too large.
Lastly, if the curvature is so small then for practical
purposes the problem is reduced to the intersection of a
straight line with a plane.
In the appendix (A-32 to A-36) it is shown that the subtended
angle * to the plane can be calculated using equation (1). In
this case the constants A, B and C are given by the expressions
(25), (26) and (27).

A = (m t 1 )sin

(25)

B = (m t 1 )cos (m t 2 )

(26)

C=

m p x p 1 sin
S12

(27)

) [(m t

S12 (m t 1 )

) (m t 1 )]
2

m p x p1

1 (1 )

(m t1 ) 2

(28)

(29)

Orientation of the Target Plane The normal vector m


defining the orientation of the target plane can be constructed
in terms of the dip angle and dip azimuth of the plane
(30).

sin cos
m = sin sin

cos

(30)

North, East and Vertical Interpolation The interpolation on


north, east or vertical ordinates are particular cases of the more
general expression. The values of the vectors px and m to use
in each of these are listed in Table 1. For example, if the well
is building and approaching an eastern lease line use the
vectors listed under the heading East, with E* set equal to the
numeric value of the eastern boundary limit.

px

m
+ (m t 1 ) cos (m t 2 )

m p x p1

North

East

Vertical

N *

0
0

1
0

0

0
E *

0

0
0

V *

0
1

0

0
0

1

Table 1. Choice of vectors px and m for interpolating on north,


east and vertical ordinates.

SPE 84246

Turning Point In horizontal wells, the trajectory is steered


to remain in the reservoir section, successively building and
dropping inclination to avoid breaching the bottom or top of
the pay zone. The calculation of the turning points at which
the well becomes horizontal is of interest from a reservoir
perspective Fig. 8. Since these points represent the maximum
and minimum vertical depths, they are also needed to
determine the numerical range of axes in well plots.

t2
p2
t*

Their algorithms were iterative and depended on the explicit


determination of the centre of curvature of the arc, which
causes problems for small angle changes. In the appendix (A48 to A-65) it is shown how the minimum curvature and
minimum distance can be determined explicitly, without
reference to the centre of curvature. For a fixed radius of
curvature there are two possible trajectories from p1 to p3
shown by the solid and dashed lines in Fig. 10. All the
trajectories lie in a plane. The solid line shows the minimum
distance to the target. The other trajectory shown by the
dashed line requires an angle change greater than . Note that
there are four mathematical solutions but that two of these are
physically unrealisable because they would require the well to
turn back on itself.

n12

p3

p1
p*
t1

p1
v

Fig. 8

This case is equivalent to interpolating on an inclination. In


this special case, direct determination of the azimuth * at the
turning point is possible (31).

cos 1 sin 2 sin 2 cos 2 sin 1 sin 1

cos 1 sin 2 cos 2 cos 2 sin 1 cos 1

* = tan 1

(31)
In deriving (31), it is assumed that 1 < 2 and so represents a
minimum inclination. Should 1 > 2 then the inclination is a
maximum. In this case the direction of t* will change by and
the azimuth becomes (* + ). The course length S* to the
turning point can then be calculated from the relationship S* =
S12*/ using (13). Finally, its position vector p* can be
calculated using the t1 and t* vectors with the minimum
curvature equation (11). See the appendix (A-45 to A-47).

Fig. 10

The changes in angle can be categorised according to the


position of the target point p3 relative to the starting point p1
and the direction t1. These categories are represented by the
regions A to F in Fig. 11. Targets falling in region A can be hit
with angle changes less than /2 (90 deg.), B with angle
changes less than (180 deg.), C with angle changes less than
3/2 (270 deg.) and D with angles changes less than 2 (360
deg.). Areas E and F cannot be hit at the prescribed build
up rate.

Position at Target Defined


Hogg and Thorogood15 described expressions for the
minimum curvature and minimum distance from a point p1 on
a wellbore with direction t1 to a target p3, Fig. 9.

p1
R

F
p1

p2

t1

t2

E
A

Fig. 11

p3
Fig. 9

t1

t3

The appropriate region is determined by calculating the


distance between the points p1 and p3, the perpendicular
distance from p1 in the direction t1 and the distance normal
to t1, equations (32), (33) and (34) respectively. Refer to
Fig. 12.

SPE 84246

critical radius of curvature Rc given by (38). The


corresponding angle change c is given by equation (39).

t1

Rc =

p3

(38)

2( 2 2 )2
1

2 2
c = 2 tan

p1

1
2

(39)

The course length can be calculated as S12 = Rcc. Finally, t2 is


calculated from (37) with the tangent section length equal
to zero.

Fig. 12
2

2 = p 3 p1

(32)

= p 3 p1 t 1

(33)

= ( 2 2 )

(34)

1
2

From Fig. 11 it can be seen that if 0 and 2 R then


which is outside the imposed limit on the angle
change. With the restriction 0 < only targets in areas
A, B and E apply.
Minimum Distance To Target If R < + then the
tangent section length is greater than zero. Because of the
imposed restriction 0 < , the target must be in areas A or
B, Fig. 11. The values of the tangent section length and angle
change corresponding to the minimum distance to the target
are calculated using (35) and (36).
2

2
= 2 2 R 2 2 2

(35)

1
2 R 2 2 2

= 2 tan 1

(36)

Position and Direction at Target Defined


Advances in surveying and geosteering techniques have
enabled multiple targets to be penetrated as a matter of course.
The targets may be at different geological horizons or different
fault blocks in the same horizon. In these cases, the wells
trajectory must be lined up and its direction on entry to or exit
from the target must be defined as well as its position. The
trajectory can no longer be achieved with a simple build and
hold profile. An additional curved section must be added and
in the general case the trajectory is three-dimensional, Fig. 13.
However, since the target can be specified so that the
trajectory lies completely in a plane this calculation can also
be used to design nudge profiles to increase well separation
directly beneath a well cluster. Liu and Shi16,17 described an
iterative scheme using coordinate transforms for the solution
of the equations. Different calculations were used for each of
the two arcs.
We offer an alternative iterative solution based on the
geometrical symmetry of the problem and the minimum
distance to target scheme described earlier in this paper. The
advantage of this scheme is that only the subtended angles 1
and 2 of the arcs need to be determined each iteration.
Inspection of Fig. 13 shows that in the general case, each of
the two sets of points p1, p2, p3 and p2, p3, p4 are geometrically
similar. This suggests applying the minimum distance to target
algorithm alternately for each of the sets of points.
p1

The course length is then calculated as S12 = R. In straight


hole equals and as long as R is finite (35) reduces to the
distance between the points p3 and p1. The straight-hole case
therefore degenerates to a straight line rather than an arc with
an infinitely large radius, conferring stability to the
calculation. Finally, t2 is calculated using (37).

t2 =

p 3 p1

S12 f ( )
t1
2

R1

t1
p2

t2

2
p3

(37)

S12 f ( )
+
2

t3

R2
p4

t4

Fig. 13

Minimum Curvature To Target If R + the


target must lie in region E and the build rate is insufficient to
hit it. To hit the target, the build rate must be increased to the
2

Let p1, j and p4, j be the targets and 1, j and 2, j be the


subtended angles at the jth iteration. To start the scheme, the

SPE 84246

subtended angle 1,0 is calculated using the minimum distance


to target algorithm between the points p1 and p4. This
corresponds to the trajectory 1 in Fig. 14.

p1,1
p1,2

t2
p2

p1

t*

px

2
3

p4,1

b*
p4,0

t 1

(40)

The subtended angle 2,0 is now calculated for the second arc
using the points p4 and p1,1. When performing the calculation,
the direction of the borehole at p4 must be set to t4 in order to
calculate the correct angle. This corresponds to the trajectory 2
in Fig. 14. A new target p4,1 is calculated using expression (41)
which completes the first iteration.

t 4

(41)

The next iteration is started by calculating the subtended angle


1,1 using the points p1 and p4,1 and so on. Iteration continues
until the desired precision is achieved. A suitable criterion for
convergence is given by (42).

> ( 1, j +1 1, j )2 + ( 2, j +1 2, j )2

p*
t1

b1

The closest approach is reached when the vector (px p*) is


normal to the curve. The subtended angle * to this point is
calculated using expressions (43), (44) and (45).

A new target p1,1 is calculated using expression (40).

2, j
p 4, j +1 = p 4 R2 tan
2

n12

Fig. 15

Fig. 14

1, j
p1, j +1 = p1 + R1 tan
2

p1

p4

po

1
2

(42)

Four iterations are usually sufficient to reduce the error


below 10-5 radians. Note that on completing the calculation,
the direction vectors of the second build and hold trajectory
must be reversed before use.
From a safety critical systems perspective, neither the above
scheme, nor that proposed by Liu and Shi are completely
satisfactory. In neither case is convergence proved and no
definitive statement is made regarding the conditions under
which no solutions exist, for example the radii of curvature are
too large to hit the target. Further work is required.
Closest Approach
The calculation of the closest distance of a point px to a
circular arc, Fig. 15 is the key to the construction of the
normal plane collision avoidance diagram described by
Thorogood and Sawaryn18.

(
= (p

)
p ) t

1 = p x p1 t 1

(43)

(44)

cos 2 S12
* = tan 1 1 1
+

sin

(45)

The corresponding position p* on the arc is determined by


interpolating on the subtended angle * and then using the
minimum curvature equation. Lastly, the distance is calculated
from the magnitude of the vector (px p*). Mathematical and
practical difficulties arise when the distance to the point is of
the same magnitude or exceeds the radius of curvature of the
arc. Restrictions on space preclude further discussion.
Straight Hole Conditions Expression (45) is indeterminate
in straight hole, when equals zero. For < 10-4 radians,
small angle approximations are used and expression (46) is
used to calculate the course length S* directly.

S*

S12 1
1 2 + S12

(46)

The point p* is calculated by interpolating on measured


depth assuming straight hole conditions. For these very small
subtended angles the value of the shape factor f(*) in the
minimum curvature equation equals unity. Again, the distance
is calculated from the magnitude of the vector (px p*).
Toolface Angle
Liu and Shi16 provided useful expressions for the toolface at
the start and end of the arc in terms of the inclination and
azimuth values at its ends. In the appendix (A-66 to A-79) it
is shown how the general vector equation provided by
Thorogood and Sawaryn18 may be expanded in terms of the
inclination and azimuth values at any intermediate point on the
arc as well as at its ends (47).

10

SPE 84246

tan * =

) (

sin * sin 2 cos * sin 2 * + sin 1 cos * sin * 1

)]

cos * cos 1 cos * cos 2

(47)
At the ends, this expression reduces to those presented by Liu
and Shi. The forms (48) and (49) have a small advantage
because they are not singular when the inclination at either of
the ends is zero. Dividing both numerator and denominator by
a factor that can be zero causes the singularity.

(48)
sin 2 sin ( 2 1 )
1 = tan 1

sin 2 cos1 cos( 2 1 ) sin 1 cos 2

(49)
sin 1 sin ( 2 1 )
2 = tan 1

sin 2 cos 1 sin 1 cos 2 cos( 2 1 )

Straight Hole Conditions For < 10-4 radians, small angle


approximation to (47) is used giving (50). The toolface is
constant over the arc and is undefined when equals zero. If
the azimuth values in (50) straddle north, the minimum
angular difference should be used.

tan sin 1 2
2 1
*

(50)

Curvature
The total curvature is a constant 1/R on a circular arc, Fig.
16. Liu and Shi presented expressions for the inclination and
azimuthal components of the curvature at any point on an arc
in terms of the toolface angle at its start.

p*
S
r* t*

b*

S sin
Fig. 16

Using vector methods the inclination and azimuthal curvatures


can be shown to be (51) and (52). For further details see the
appendix (A-80 to A-84). These two components satisfy
Wilsons19 expression (53) for the total curvature .

* = cos *

* =

(51)

sin *
sin *

= ( *2 + *2 sin 2 * )

(52)

1
2

* =

* =

cos * cos 1 cos * cos 2


sin sin *

(54)

) (

sin 2 cos * sin 2 * + sin 1 cos * sin * 1


sin sin *
(55)

Straight Hole Conditions Again, for < 10-4 radians,


small angle approximations to (54) and (55) are used and
expressions (56) and (57) are used to calculate the curvatures.
If the azimuth values in (57) straddle north, the minimum
angular difference should be used.

* 1
S

* 1
S

2 1
S12

2 1
S12

(56)

(57)

Implementation and Testing


The algorithms in this paper are presented in logical order with
the later, more complex cases using results of earlier ones. It is
recommended that the routines are coded and tested in
this order.
Once coded, a good test procedure is to calculate values in two
different ways. For example, a point can be interpolated using
each of measured depth, inclination and azimuth determined
from the previous calculation in cyclic order. The results
should be identical. The trajectory presented in Table 2 is
constructed with both the wellbore position and direction at
the target defined. This example can be used to test most of the
algorithms presented here. Station numbers with alphabetical
suffixes indicate interpolated points. Williamson8 presents
other trajectories that may be used as tests in both oilfield and
metric units.

h*

The expressions (51) and (52) can be used to derive the


equivalents (54) and (55) of Liu and Shis expressions. The
representation of the azimuthal component is simplified.

(53)

The simple representation afforded by the circular arc


construct allows for a consistent treatment of all the other
associated mathematical operations. Representation of the
wellbore path in a different form, for example a spline or
polynomial would necessitate rederivation of all the constructs
in this paper. This may not be a simple task.
Conclusions
1. Previously unpublished algorithms have been presented
for small angle approximations associated with a circular
arc, the determination of a turning point, a general
expression for toolface angle and minimum distance to a
target with and without the direction at the target defined.
2. Vector methods are a useful tool for 3D directional
calculations and often result in simpler expressions
compared with other means. Their use is recommended.

SPE 84246

3. Because of trigonometric identities, many forms exist for


any one expression. This can cause confusion. Some
forms are computationally more efficient and reliable
than others.
4. A standard nomenclature is required for all directional
work that is compatible with other, related subject areas.
Consistency with accepted mathematical conventions
should also be reviewed.
5. Further work is needed on the point to target algorithm
with both position and direction at the target defined. In
particular, the conditions under which no solutions are
possible should be identified.
6. Multiple solutions to the trigonometric equations exist.
The range of the variables must be carefully stated and
tested for.
7. Increasingly complex trajectory plans emerging from
work on designer wells means segments of the well plan
may exceed 180 deg and the alternative solutions may
need to be considered.
8. Care should be taken to design expressions so that both
the numerator and denominator are not divided by a term
that would make it indeterminate at some point.
9. Representation of the wellbore path in a form other than
a circular arc would necessitate rederivation of all the
constructs in this paper.
Nomenclature
b = Negative unit normal vector
c = Ratio of the course lengths S*/S12 on an arc
f = Geometrical shape factor
h = Unit highside vector
m = Unit vector normal to a plane
n = Unit binormal vector
p = Position vector in N,E,V coordinates, L, ft
r = Unit rightside vector
t = Unit direction vector
v = Unit vertical vector in N,E,V coordinates, L, ft
A = Constant
B = Constant
C = Constant
D = Measured depth, L, ft
E = Easting, L, ft
N = Northing, L, ft
R = Radius of curvature, L, ft
S = Course length, L, ft
V = Vertical, L, ft
Greek Symbols
= Subtended angle, radians
= Length of the tangent section, L, ft
= Angle between the binormal and vertical vectors,
radians
= Angular error tolerance, radians
= Substituted variable
= Substitution for a dot product, L, ft
= Inclination angle, radians
= Curvature, radians/L, radians/ft
= Substitution for a dot product, L, ft
= Toolface angle, radians

11

= Azimuth angle, radians


= Substitution for a dot product, L, ft

= A difference in a parameter
= Dip angle, radians
= Dip azimuth, radians

Subcripts and Superscripts


c = Critical value
j = Iteration counter
o = Centre of curvature of the arc
x = Position of a defining point
1,2,3,4 = First, second etc. point, arc or property
= Inclination component
= Azimuthal component
* = Component to be determined
Acknowledgments
The authors thank BP plc. for permission to publish this paper.
References
1.
2.
3.
4.
5.

6.

7.
8.
9.
10.
11.

12.
13.
14.
15.
16.

Mason, C.M., Taylor, H.L.: Systematic Approach to Well


Surveying Calculations, SPE3362, June 1971
Zaremba, W.A.: Directional Survey by the Circular Arc
Method, SPEJ February 1973;Trans., AIME, 255.
API Bull. D20, Directional Drilling Survey Calculation
Methods and Terminology, first edition, December 31, 1985
Walstrom, J.E., Harvey R.P., Eddy H.D.: A Comparison of
Various Directional Survey Models and an Approach To
Model Error Analysis, JPT August 1972
Sawaryn, S.J., Sanstrom, W., McColpin, G.: The
Management of Drilling Engineering and Well Services
Software as Safety Critical Systems, SPE 73893 presented
at the International Conference on Health, Safety and
Environment in Oil and Gas Exploration and Production,
Kuala Lumpur, Malaysia, 20-22 March 2002
Sawaryn, S.J. et. al.: Safety Critical Systems Principles
Applied to Drilling Engineering and Well Services
Software, SPE84152 presented at the Annual Technical
Conference and Exhibition, Denver, Colorado, 5-8
October 2003.
Delivery Update - Autotrack Milestones, Baker Hughes
INTEQ (2002) 18
Williamson, H.S.: Accuracy Prediction for Directional
Measurement While Drilling, SPEDC December 2000,
Vol 15 No. 4
SPE Letter and Computer Symbols Standard, 1993
Williamson, H.S., Wilson, H.F.: Directional Drilling and
Earth Curvature, SPEDC March 2000, Vol 15 No. 1
Stockhausen, E.J., Lesso, W.G.: Continuous Direction and
Inclination Measurements Lead to an Improvement in
Wellbore Positioning, SPE/IADC 79917, Amsterdam
February 2003.
Thorogood, J.L.: Well Surveying Data, World Oil, April
1986, 100
Knuth, D.E.: The Art of Computer Programming Volume 2:
Seminumerical Algorithm, Third Edition, Addison Wesley,
1997, 485-488
Wolfram Research, Mathematica 4 Standard Add-On
Packages, Wolfram Media Inc.,1999, 34
Hogg T.W., Thorogood J.L.: Performance Optimisation of
Steerable Systems, ASME Energy Resources Technology
Conference, New Orleans, January 1990
Liu, X., Shi, Z.: Improved Method Makes a Soft Landing of
Well Path, OGJ October 22nd 2001

12

SPE 84246

17. Xiushan, L., Jun, G., "Description and Calculation of the


Well Path with Spatial Arc Model," Natural Gas Industry,
Beijing, Vol. 20, No. 5, 2000, 44-47.
18. Thorogood J.L., Sawaryn S.J.: The Travelling Cylinder: A
Practical Tool for Collision Avoidance, SPE 19989
19. Wilson, G.J.: "An Improved Method for Computing
Directional Surveys," J. Pet. Tech., Vol. 20, Aug. 1968, 87176.
20. Weatherburn, C.E.: Elementary Vector Analysis, G. Bell and
Sons, London (1967)
21. Abramowitz and Stegun: Handbook of Mathematical
Functions, Dover, New York (1972), Chap. 4, page 75

SI Metric Conversion Factors


ft x 3.048*
E-01 = m
deg/100 ft x 0.984252
E-00 = deg/30 m
*Conversion factor is exact
Appendix
Summary of Vector Methods
Weatherburn20 presents details of all the vector methods used
in this paper. The key constructions are the dot (or scalar)
product and vector cross product . Let a1, a2, a3 and b1, b2,
b3 and c1, c2, c3 be the N,E,V components of the vectors a, b
and c respectively. Let be the angle between the a and b
vectors and n be a unit vector normal to both a and b. The dot
and cross products are then described by expressions A-1, A-2
and A-3.

a b = a1b1 + a2 b2 + a3b3

= a b cos

(A-1)
(A-2)

a b = a b sin n

(A-3)

a (b c ) = (a c ) b (a b ) c

(A-4)

a (b c ) = a1 (b2 c3 b3 c 2 ) + a 2 (b3 c1 b1c3 )


+ a3 (b1c 2 b2 c1 )

sin 2 cos 2
t 2 = sin 2 sin 2
cos 2

t1 t 2
sin

(A-5)

(A-6)

(A-9)

b 2 = t 2 n12

(A-10)

Substituting n12 from A-8 into A-9 and A-10 and using the
expression A-4 for the vector triple products gives A-11 and
A-12.

b1 =

t 1 cos t 2
sin

(A-11)

b2 =

t 1 t 2 cos
sin

(A-12)

The position p2 is calculated from p1 using A-13. Substituting


b1 and b2 from A-11 and A-12 into A-13 gives A-14.

p 2 = p1 + R(b 2 b1 )

p 2 = p1 + R

The binormal vector n12 and vectors b1 and b2 at the arcs ends
are given by the expressions A-8, A-9 and A-10.

(A-13)

(1 cos ) (t
sin

+t2)

(A-14)

Finally, recalling the trigonometric identity tan(/2) = (1cos)/sin and that S12 = R we obtain the now familiar
expression for the minimum curvature equation A-15.

p 2 = p1 +


tan (t 1 + t 2 )

S12

(A-15)

Straight Hole Conditions For small angles, tan(z) can be


expanded in a Taylor series21, A-16. Using the first five terms
of the expansion, the factor tan(/2)/(/2) can be put in
Horner12,13 form, A-17.

tan

z 3 2 z 5 17 z 7 62 z 9
+
+
+
+ ...
3
15
315 2835

2 1+

12
2
2

2
1 +

10

2 31 2
1 +

168 1 + 18

(A-16)

(A-17)

For small angles the shape factor can be treated as unity and
A-15 reduces to A-18, which is recognised as the balanced
tangential3 survey calculation method.

p 2 p1 +
(A-7)

(A-8)

b1 = t 1 n12

tan ( z ) = z +

Minimum Curvature
Zaremba2 presented the following derivation. Refering to Fig.
4, the direction vectors t1 and t2 at the arcs ends are given by
A-6 and A-7.

sin 1 cos 1
t 1 = sin 1 sin 1
cos 1

n12 =

S12
(t 1 + t 2 )
2

(A-18)

Interpolation
Refering to Fig. 6, interpolation involves determining the
position p* at some point on the arc given a criterion. The
corresponding direction vector at the point is t*, A-19.

sin * cos *

*
t = sin * sin *
cos *

(A-19)

SPE 84246

13

The binormal vector n12 can also be written in terms of the


direction vectors at the start point and point at which the
interpolation is to take place, A-20.
*

n12 =

t1 t
sin *

(A-20)

Equating A-8 and A-20 and taking the cross product of both
sides of the equality with t1 gives A-21.

t1 t1 t
sin *

)= t

(t 1 t 2 )
sin

(A-21)

Using A-4 to expand the triple cross products and rearranging


for t* gives A-22.

t = t 1 cos *
*

sin * (t 1 cos t 2 )
sin

(A-22)

Multiply the numerator and denominator of the first term in A22 by sin and collect terms in t1 and t2. After simplification,
this gives the important relationship A-23 that is the
foundation for all the interpolation formulae.
*

t =

sin *
sin *
t1 +
t2
sin
sin

(A-23)

Substituting A-6, A-7 and A-18 in A-23 gives A-24.

sin * cos *
sin *

*
*
=
sin

sin

sin
cos *

sin 1 cos 1

1 sin 1 +

cos 1

) sin

sin 2 cos 2
sin *
sin 2 sin 2
sin
cos 2

(A-24)

(A-25)

(A-28)
Next, expand the terms sin(-*) in both numerator and
denominator of A-26 using the trigonometric identity sin(*) = sin cos* - sin* cos. The terms involving sin* are
then collected on the left hand side of the equals sign and
terms involving cos* are collected on the right hand side.
The azimuth terms are then combined using the same
trigonometric identity to give the expression (15) for * used
to interpolate on azimuth in the body of the paper. The
traditional form of the dogleg severity equation3 A-29 can be
used to determine *. This is of the form C = A sin(*)+ B
cos(*).

cos * = sin 1 cos * 1 sin * + cos 1 cos *


(A-29)
If the arc lies in the vertical plane then (v n12) equals zero and
the solution is single valued. The vector n12 is given by A-8.
Expanding the scalar triple product using A-5 gives the
expression A-30.
(A-30)

Interpolation on Inclination Extracting and rearranging


the vertical component of A-24 gives A-31 which is of the
form C = A sin(*) + B cos(*). Once * has been found, the
azimuth component is determined from A-28.

sin cos 1 cos *

p = p1 +

(A-27)

)(

S12 1 cos *
*
t1 + t
sin *

(A-32)

Now use A-22 to substitute for t* in A-32 to give A-33.


*

(A-26)

(A-31)

Interpolation at a Plane Refering to Fig. 7, A-14 can be


used to calculate the point p* from p1. The radius R can be
expressed as S12/ to give A-32.
*

For small values of the expression A-26 can be expanded in


a Taylor series. Evaluation of the terms is tedious and
computer assistance14 was used to establish the expression (14)
presented in the body of the paper. For small angles, the
simple expression A-27 can be used.

S*
S*
*
t 2
t 1 +
t 1
S12
S12

)
)

sin * cos * = (cos 2 cos cos 1 )sin * +

Substituting * from A-25 into A-23 gives the expression A26 for t* in terms of the course lengths.

S *
S*

sin 1

sin

S12
S12
*

t =
t1 +
t2
sin
sin

(
(

sin * sin 1 sin 1 sin * + sin 2 sin 2 sin *


=
cos * sin 1 cos 1 sin * + sin 2 cos 2 sin *

sin 1 sin 2 sin ( 2 1 )


=0
sin

Interpolation on Measured Depth Since the radius of the


arc is fixed, the ratio of the subtended angles is identical to the
ratio of the course lengths to the same points, A-25.

* S*
=
S12

Interpolation on Azimuth Dividing the easting and


northing components of A-24 eliminates sin* giving the
expression A-28.

p = p1 +

) (

S12 1 cos *
1 + cos * t 1
sin *

sin * (t 1 cos t 2 ) (A-33)

sin

Now take the dot product of A-33 with the normal vector m of
the plane and rearrange slightly.

14

SPE 84246

m p p1 =

) (

S12 1 cos *
1 + cos * (m t 1 )
sin *

sin * ((m t 1 ) cos (m t 2 ))

sin

(A-34)

The equation of the plane20 is given by A-35, showing (m px)


equals (m p*).

m px p = 0

(A-35)

Equation A-35 can be used to eliminate p* from A-34. After


rearranging, the resulting expression A-36 is of the form C = A
sin(*) + B cos(*).

m p x p1 sin
S12

+ (m t 1 ) cos (m t 2 ) =

(m t 1 )sin sin * + [(m t 1 )cos (m t 2 )]cos *


(A-36)
Straight Hole Conditions For small angles, equation A-36
is badly behaved. Small angle approximations must be used
and the interpolation must be conducted with respect to
measured depth. The expression A-18 can be used to calculate
the position of p* from p1, A-37.
*

p = p1 +

S
*
t1 + t
2

(A-37)

(A-38)

Taking the dot product of A-38 with the normal vector m of


the plane and substituting (m px) for (m p*) as before, gives
a quadratic equation A-39 in the course length S*. A-39 has
the solution A-40.

(m t 2 ) (m t 1 ) S *2 + (m t )S * m ( p p ) = 0
1
x
1
2 S12

(A-39)

2m (t 2 t 1 ) m p x p1 2

2
(m t 1 ) (m t 1 ) +

S12

S* =
m (t 2 t 1 )

S12

(A-40)
To simplify the manipulation, define a variable according to
A-41. Expression A-40 can then be written as A-42.

S12 (m t 1 )

) (m t 1 )]
2

(A-41)

(A-42)

Since 2 is much smaller than unity, the square root may be


expanded in a series using the first four terms of the binomial
expansion21, A-43 to give the expression A-44.

(1 + z )

1
2

= 1+

z z2 z3 z4
+
+L
2 8 16 128

2 3
(m t 1 ) (m t 1 )1 +
+
2
2

*
S
(m t 2 ) (m t 1 )

S12

(A-43)

(A-44)

From A-44, it can be seen that the positive root must be


chosen so that the expression degenerates to the straight-line
case when equals zero. Factoring A-44 gives the expression
(29) in the body of the paper.
Turning Point From Fig. 8 the vector t* can be written as
A-45. The angle between the n12 and v vectors is .
*

(m t 1 ) (m t 1 )(1 + 2 ) 2
S =
(m t 2 ) (m t 1 )

S12

Sustituting A-27 into A-37 gives A-38.

) [(m t

t =

S *2
(t 2 t 1 ) + S * t 1 p * p1 = 0
2S12

m p x p1

n12 v
sin

(A-45)

Using A-8 for n12 and expanding the resulting vector triple
product gives A-46.
*

t =

(v t 2 ) t 1 + (v t 1 )t 2
sin sin

(A-46)

Note that (v t2) equals cos2 and (v t1) equals cos1 and that
* equals /2 at the turning point. Using these values and
expressions A-19, A-6 and A-7 for t*, t1 and t2 in A-46
gives A-47.

cos *
cos 1

*
sin = sin sin
0

sin 2 cos 2
sin sin
2
2

cos 2

sin 1 cos 1
cos 2
sin 1 sin 1 (A-47)
sin sin
cos 1
Dividing the easting by the northing components gives
expression (31) in the body of the paper for the azimuth * of
the turning point.

SPE 84246

15

Position at Target Defined


In the most general case, the target p3 can be hit with one
curved section of radius R and one straight section of length ,
Fig. 9. Using A-15 the position p3 of the target can be written
as A-48.


p 3 = p1 + R tan (t 1 + t 2 ) + t 2
2

(A-48)

2 =

2 2 R sin + R 2 sin 2
cos 2

The substitution of from A-53 and 2 from A-60 into A-54


results in A-61.

2 = 2 R 2 (1 cos ) +

Taking the dot product of A-48 with t1 and also with itself
gives A-49 and A-50 respectively.

(p

p1 t 1 = R sin + cos

(A-49)

p 3 p 1 = 2 R 2 (1 cos ) + 2 R sin + 2 (A-50)


2

Let
2

2 = p 3 p1

(A-52)

Making the substitution A-51 in A-50 and A-52 in A-49 gives


A-53 and A-54. The variable is determined using
Pythagorass theorem, Fig. 12.

= R sin + cos

(A-53)

2 = 2 R 2 (1 cos ) + 2 R sin + 2

(A-54)

Multiplying A-53 by 2R gives A-55. Rearranging A-54 gives


A-56.

2 R 2 sin + 2 R cos = 2 R

(A-55)

2 R sin 2 R cos = 2 R
2

(A-56)

Squaring both A-55 and A-56 and adding the results


eliminates and results in a quadratic in 2, A-57. Solving
the quadratic gives an explicit expression for , A-58

4 2 2 2 + ( 4 4 R 2 2 + 4 R 2 2 ) = 0
= 2 2 R ( 2 2 )
1
2

1
2

(A-57)
(A-58)

Inspecting A-58, the minimum curvature to target will occur


when equals zero and the radius equals Rc, A-59. Since the
radius cannot be negative, the negative root of A-58 must be
the correct one.

Rc =

2
2

1
2

(A-59)

To find the angle , rearrange A-53 for and square the result
to give A-60.

2 R sin
( R sin ) +
cos

2 2 R sin + R 2 sin 2
cos 2

(A-61)

Multiplying through by cos2 and rearranging terms gives A62. Completing the square on the right hand side of A-62
gives A-63.

2 cos 2 = 2 R sin (cos 1) + 2 +

R 2 1 + cos 2 2 R 2 cos

(A-51)

= p 3 p1 t 1

(A-60)

(A-62)

2 cos 2 = [ sin R(1 cos )]

(A-63)

Taking the square root of A-63 and rearranging for R results in


equation A-64 of the form C = A sin() + B cos(). The
solution of such an equation is given by (1).

R = sin + R 2 2 2 cos

(A-64)

After substituting the values of the constants A, B and C and


comparing the result with A-58 we obtain the important result
A2 + B2 C2 = 2. Setting equal to zero provides a useful
test to determine if the target can be hit at the specified radius
of curvature. Finally, the expression for /2 is given by A-65.


tan =
2
2 R 2 2

1
2

(A-65)

Setting equal to zero and R equal to Rc in A-65 gives the


expression (39) in the body of the paper for the subtended
angle c for the minimum curvature to target.
Toolface Angle
The toolface angle is determined by the dot products between
the -b, h and r vectors, Fig. 2.

( b
( b

)
r ) = sin

h = cos *
*

(A-66)
(A-67)

Expressions A-66 and A-67 lead directly to the vector


equation A-68 for toolface angle presented by Thorogood
and Sawaryn18.

b* r *
tan * = * *
b h

(A-68)

The rightside unit vector lies in the horizontal plane normal to


both the v and t* vectors, A-69. Evaluating the expression
gives (7) in the body of the paper.

16

SPE 84246

r =

vt
sin *

(A.69)

The highside unit vector lies in the vertical plane normal to


both the r* and t* vectors, A-70. Combining A-69 with A-70
and expanding the triple vector product gives A-71. Evaluating
the expression gives (6) in the body of the paper.
*

h = r t

(A-70)

t cos * v
h =
sin *
*

(A-71)

The negative normal unit vector b* is normal to both the t*


and n12 vectors. Combining A-8 and A-19 with A-72 gives A73.
*

b = t n12
*

(A-72)
(A-73)

Taking the dot product of A-73 and A-71 gives an expression


for (-b* h*), A-74. Taking the dot products gives A-75.

) (

t * t 2 t 1 t * t 1 t 2 t * cos * v
b h =

*
sin

sin

( b

h =

(A-74)

cos * cos 2 + cos * cos 1 (A-75)


sin sin *

Taking the dot product of A-73 and A-69 gives an expression


for (-b* r*), A-76.

( b

r =

[ (

cos * t 2 v t

)] cos( ) [t (v t )]
*

sin sin *

Using A-5, the scalar triple products become A-77 and A-78.

( )
(v t ) = sin

t 1 v t = sin1 sin sin 1


t2

) = sin

sin * sin 2 *

) (

(A-77)
(A-78)

(A-79)
The general expression (47) given in the body of the paper for
toolface angle * is obtained by substituting A-75 and A-79
into A-68. For straight hole conditions, small angle
approximations must be used.
Curvature
Refering to Fig. 16, Frenets20 formula for total curvature
gives A-80.
*

dt
*
= b
*
dS

(A-80)

* and * as the inclination and azimuthal

components of the curvature give expressions A-81 and A-82.


*

dt
*
= * h
dS *

(A-81)

1 dt
*
= * r
*
*
sin dS

(A-82)

Eliminating the differential between A-80 and A-81 and taking


the dot product of both sides with h* gives A-83 for * .

Using A-66 and the expression A-75 for (-b* h*) gives the
expression (54) in the body of the paper.

* = cos *

(A-83)

Eliminating the differential between A-80 and A-82 and taking

* .

Using A-67 and the expression A-79 for (-b* r*) gives
expression (55) in the body of the paper.

* =

sin *
sin *

(A-84)

The signed values of A-83 and A-84 are commonly referred to


as the build rate and walk rate respectively.

MD
Inc.
Azi.
N
E
V
DLS

(ft)
(deg)
(deg)
(ft)
(ft)
(ft)
(deg/100ft)
(deg)
(deg/100ft) (deg/100ft)
1
702.55
5.50
45.00
40.00
40.00
700.00
38.14
1.57
12.89
2
1964.57
29.75
77.05
154.78
393.64 1895.35
2.00
6.85
1.99
0.48
2a
4250.00
29.75
77.05
408.84 1498.82 3879.60
0.00
3
5086.35
29.75
77.05
501.82 1903.25 4605.73
0.00
-135.72
2.15
4.22
3a
8504.11
80.89 300.71 1967.04 1033.30 7050.00
3.00
-20.54
2.81
1.07
3b
8828.04
90.00 297.31 2123.40
751.22 7075.71
3.00
-20.27
2.81
1.04
3c
9151.97
99.11 293.92 2262.88
460.41 7050.00
3.00
-20.54
2.81
1.07
4
9901.68 120.00 285.00 2500.00
-200.00 6800.00
3.00
-23.58
2.75
1.39
Table 2. Test case based on a trajectory with both its position and direction defined at the target
No.

cos * sin 2 * + sin 1 cos * sin * 1


sin

the dot products of both sides with r* gives A-84 for


(A-76)

( b

The definitions for

cos * t 1 cos * t 2
*
b =
sin

Inserting the expressions for the scalar triple products A-77


and A-78 into A-76 gives the final form for (-b* r*), A-79.

(deg/100ft)
2.00
2.00
3.00
3.00
3.00
3.00
3.00

R
(ft)
2864.78
2864.78
1909.85
1909.85
1909.85
1909.85
1909.85

You might also like