# Uncertainty Modelling

## Introduction

In this section we describe the content and functionality available in Oliasoft’s Uncertainty modelling module. We begin with a description of the error modelling framework we use, based on the standard developed by The Industry Steering Committee on Wellbore Survey Accuracy (ISCWSA). Then we discuss minimum distance calculations between wellbores, both 3D closest approach, and the earlier horizontal- and perpendicular- scan methods. Finally, we present separation factor calculations based on framework developed by ISCWSA and associates.

{% hint style="info" %}
Oliasoft’s implementation is based on the ISCWSA standard, and a detailed description can be found here \[[1](http://www.iscwsa.net/download/c08e3426-35b3-11e9-8b25-c90aec30a2c4/)] \[[2](https://www.onepetro.org/journal-paper/SPE-67616-PA?sort=\&start=0\&q=Accuracy+prediction+for+directional+measurement+while+drilling.+SPE+Drilling+and+Completion%2C+15%2804%29%2C+2000.\&from_year=\&peer_reviewed=\&published_between=\&fromSearchResults=true\&to_year=\&rows=25#)].&#x20;
{% endhint %}

### Printable Version

{% file src="/files/-LnHr3b2CSK04F-MJHHG" %}
Oliasoft Technical Docs - Uncertainty Modelling
{% endfile %}

## Uncertainty Modelling

In the following, a simple description is given. The framework is as follows. A single wellbore is under consideration, and a set of sensors are used to measure the position along the wellbore in NEV-coordinates. All sensors are assumed to be statistically independent, i.e. a measurement by one does not affect any of the others.&#x20;

This makes the model linear as a function of sensors, and one can add/subtract sensors as needed.&#x20;

Furthermore, the wellbore is assumed to consist of a set of survey legs, and each survey leg consists of a set of survey stations. To make it formal, denote the wellbore by W, the survey legs by $${l}*{l\in L}$$ and the survey stations by $${k}*{k\in K}$$. Then,

$$
W = \bigcup\_{l = 1}^{|L|}l = \bigcup\_{k = 1}^{|K|} k ;;;;;;;;;;;;;;;;;;;;;;  (1)
$$

where $$|L|$$ and $$|K|$$ are the cardinality of $$L$$ and $$K$$ , respectively. Also, given a survey station, $$k\in K$$ , there exists a unique survey leg $$l\in L$$ , such that $$k\in l$$ , i.e. $$l \cap l' = \emptyset$$ if $$l\neq l'$$ . The wellbore as a continuous curve is described by a parametrisation between the survey stations, usually using the minimum curvature method.

For every sensor $$i$$ , at a given survey station $$k$$ , in survey leg $$l$$ , there is an associated *so-called* error vector, $$\mathbf e\_{i,l,k}$$ . This error vector is given by

$$
\mathbf e\_{i,l,k}  = \sigma\_{i,l} \left(\frac{\text d\Delta\mathbf r\_k}{\text d\mathbf p\_k} +  \frac{\text d\Delta\mathbf r\_{k+1}}{\text d\mathbf p\_k}\right)\frac{\partial\mathbf p\_k}{\partial \epsilon\_i}, ;;;;;;;;;;;;;;;;;;;;;;  (2)
$$

where $$\Delta\mathbf r$$ is given by the parametrization used of the wellbore between survey stations, $$\mathbf p$$ is the measurement vector, $$\sigma\_{i,l}$$ is the magnitude of the error source over the survey leg, usually quoted at 1 $$\sigma$$ , and finally $$\frac{\partial\mathbf p\_k}{\partial \epsilon\_i}$$ is the weighting function for the error source. The error summation terminates at the station of interest, and the vector error at this station is given by

$$
\mathbf e\_{i,l,k}^\*  = \sigma\_{i,l} \frac{\text d\Delta\mathbf r\_K}{\text d\mathbf p\_K} \frac{\partial\mathbf p\_K}{\partial \epsilon\_i}, ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  (3)
$$

Usually, the wellbore is parametrized by the minimum curvature method between survey stations. However, there is no significant loss of accuracy in using the balanced tangential method \[[ref Williamson](https://www.onepetro.org/journal-paper/SPE-67616-PA?sort=\&start=0\&q=Accuracy+prediction+for+directional+measurement+while+drilling.+SPE+Drilling+and+Completion%2C+15%2804%29%2C+2000.\&from_year=\&peer_reviewed=\&published_between=\&fromSearchResults=true\&to_year=\&rows=25#)], and this is the preferred parametrisation in uncertainty modelling. From these error vectors, a covariance matrix, $$C$$ , is constructed, effectively the outer product of such. This covariance matrix can furthermore be used to calculate uncertainty in position of the wellbore in any direction.

Sensors come in four flavors, depending on how the associated error/uncertainty propagate down the wellbore. Assume we have $$L$$ survey legs, and the survey station of interest is $$K$$ in leg $$L$$ . A short description of the different types of sensors/errors follows.

### Random Errors

These are randomly propagating errors, and the contribution to survey station uncertainty from such a source $$i$$ over leg $$l \neq L$$ , is

$$
C\_{i,l}^R = \sum\_{k=1}^{K\_l} (\mathbf e\_{i,l,k})(\mathbf e\_{i,l,k})^T, ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  (4)
$$

where $$K\_l$$ is the number of survey stations in leg $$l$$ . The total contribution is

$$
C\_{i,K}^R = \sum\_{l=1}^{L-1}C\_{i,l}^R +  \sum\_{k=1}^{K - 1} (\mathbf e\_{i,L,k})(\mathbf e\_{i,L,k})^T + (\mathbf e\_{i,L,k}^*)(\mathbf e\_{i,L,k}^*)^T. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  (5)
$$

### Systematic Errors

These are systematically propagating errors, and the contribution to survey station uncertainty from such a source $$i$$ over leg $$l \neq L$$ , is

$$
C\_{i,l}^S = \left(\sum\_{k=1}^{K\_l} \mathbf e\_{i,l,k}\right) \left(\sum\_{k=1}^{K\_l} \mathbf e\_{i,l,k}\right)^T,
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;   (6)
$$

where $$K\_l$$ is the number of survey stations in leg $$l$$ . The total contribution is

$$
C\_{i,K}^S = \sum\_{l=1}^{L-1}C\_{i,l}^S + \left( \sum\_{k=1}^{K - 1} \mathbf e\_{i,L,k} + \mathbf e\_{i, L,k}^\* \right) \left( \sum\_{k=1}^{K - 1} \mathbf e\_{i,L,k} + \mathbf e\_{i, L,k}^\* \right)^T
;;;;;;;;;;;;;;\  (7)
$$

### Well by Well and Global Errors

These are error types systematic among all the stations in the well. Hence, we can construct a total vector error from beginning to station $$K$$ , i.e.

$$
\mathbf E\_{i, K} = \sum\_{l = 1}^{L-1} \left(\sum\_{k = 1}^{K\_l} \mathbf e\_{i,l,k} \right) + \sum\_{k = 1}^{K-1} \mathbf e\_{i,l,k} + \mathbf e\_{i,L,K}^\*,
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  (8)
$$

where $$K\_l$$ is the number of survey stations in leg $$l$$ . The total contribution to the uncertainty at station $$K$$ is

$$
C\_{i, K}^{W/G} = \mathbf E\_{i, K} \mathbf E\_{i, K} ^T.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (9)
$$

{% hint style="info" %}
***Well-by-Well*** errors are (perfectly) correlated within a *well*, while ***Global*** errors are (perfectly) correlated between all *wellbores*.
{% endhint %}

### The Position Covariance

The total position covariance at survey station $$K$$ is the sum over all error sources, i.e.

$$
C\_K = \sum\_{i\in R} C\_{i,K}^R + \sum\_{i\in S} C\_{i,K}^S + \sum\_{i\in W/G} C\_{i,K}^{W/G}.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (10)
$$

### Remarks

{% hint style="warning" %}
**A.** We observe that for *Random* , *Well-by-Well* and *Global* error sources, the contribution to the covariance matrix is independent of survey legs, and only dependent on the survey stations. This is not the case for *Systematic* error sources, which is seen from equation 6 and 7 and the fact that the contribution is not 'linear' in survey stations. &#x20;

**B.** When comparing the positional uncertainty between wellbores, the contribution from global error sources should be excluded. If in addition, the wellbores are in the same well, also the well-by-well sources should be omitted.

**C.** Details about uploading of error/uncertainty- models to the app can be found here (**link to decription of IPM/manually defined error models**).
{% endhint %}

## Minimum Distance

An important quantity in its own right, and also in separation factor calculations is the distance between two wellbores. Precisely, given two wellbores $$W\_1$$ and $$W\_2$$ , and denote $$W\_1$$ as the reference wellbore, and $$W\_2$$ as the offset wellbore. Then, given a survey station $$k\in W\_1$$ , calculate the minimum distance between $$k$$ and $$W\_2$$ . Oliasoft offers three different methods for calculating/approximating this distance

1. 3D Closest Approach
2. Horizontal Scan
3. Perpendicular Scan

The methods are implemented under the assumptions that the wellbore trajectories are described by the minimum curvature method between survey stations. The last two are included for completeness, and are approximations to the true minimum distance, found by 3D closest approach.

### 3D Closest Approach

The 3D closest approach method gives the true minimum distance between a survey station $$k\in W\_1$$ and the wellbore $$W\_2$$ , under the assumption that the wellbore trajectory is described by the minimum curvature method between survey stations. The algorithm is conceptually simple, although computationally relatively heavy

1. &#x20;Given a survey station $$k\in W\_1$$.
2. &#x20;Parametrize the offset wellbore trajectory, $$W\_2$$ , using the minimum curvature method between survey stations.
3. &#x20;Minimize the distance function $$d(k, W\_2)$$.

### Horizontal Scan

The horizontal scan method is an approximation to the true minimum distance between a survey station $$k\in W\_1$$ and the wellbore $$W\_2$$ . It is a good approximation between vertical/near vertical well, and is useless between horizontal wells. The algorithm goes as follows

1. &#x20;Given a survey station $$k\in W\_1$$ , at a vertical depth $$V\_1$$.
2. &#x20;Find the point(s), $$\mathbf x\in W\_2$$ on the offset wellbore trajectory at the same vertical depth, $$V\_1$$ (such point(s) does not necessarily exist).
3. &#x20;Calculate the distance between $$k$$ and $$x$$ (and minimize if more than one).

### Perpendicular Scan

The perpendicular scan method is an approximation to the true minimum distance between a survey station $$k \in W\_1$$ and the wellbore $$W\_2$$ . It works good between vertical/horizontal wells, but has limitations between deviated wells. The algorithm goes as follows

1. &#x20;Given a survey station $$k\in W\_1$$.
2. &#x20;Calculate the normal vector to the wellbore at $$k$$ , and prolong it to it hits the offset well at $$\mathbf x \in W\_2$$ (this point does not necessarily exist).
3. &#x20;Calculate the distance between $$k$$ and $$\mathbf x$$.

## Seperation Factor

The separation factor, calculated for every survey station in a reference well against an offset well, is essentially the ratio between the minimum centre-to-centre distance between the two wellbores and the relative positional uncertainty between the two. Currently, Oliasoft offers the *Pedal Curve Method* as separation factor model which is described in details [here](https://www.onepetro.org/conference-paper/SPE-187073-MS?sort=\&start=0\&q=187073\&from_year=\&peer_reviewed=\&published_between=\&fromSearchResults=true\&to_year=\&rows=25#). Below we describe the essentials.

Separation factor calculations involve two wellbores, $$W\_1$$ and $$W\_2$$ , referred to as reference well and offset well respectively. For both the wellbores, NEV-covariance matrices, at every survey station have been calculated based on uncertainty models, not necessarily the same model applied to both the wellbores. In addition, for every survey station in the reference well, $$K\in W\_1$$ , the minimum centre-to-centre distance to the offset well is calculated. Then, the separation factor, at survey station $$K\in W\_1$$ is defined as

$$
SF\_K = \frac{D\_K - R\_r - R\_o - S\_m}{k\sqrt{\sigma\_{s, K}^2 + \sigma\_{pa}^2}},
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (11)
$$

where $$D\_K$$ *is the minimum distance between the survey station* $$K$$ *and the offset wellbore,* $$W\_2$$ *, and* $$\sigma{s, K}$$ is the relative uncertainty at one standard deviation between the survey station $$K$$ and the point on the offset well, giving the minimum distance. The other quantities involved are

1. $$R\_r$$ and $$R\_o$$ are the open hole radius, at the point of interest, of the reference and offset wellbore respectively.
2. $$S\_m$$ is a surface margin, which effectively increases the radius of the offset well. It is introduced to accommodate small, unidentified errors. Recommended value is $$S\_m = 0.3$$ m.
3. &#x20;$$k$$ is a dimensional scaling factor that determines the probability of well crossing. Recommended value is $$k=3.5$$ .
4. &#x20;$$\sigma\_{pa}$$ *is introduced to quantify, at one standard deviation, the uncertainty in the projection ahead of the current survey station. Recommended value is* $$\sigma\_{pa}= 0.5$$ m.

### Algorithm

1. &#x20;Calculate the NEV-covariance matrices for the reference and offset wellbore. Remember to exclude any common global error source, and also common well error sources if the wellbores originate from the same well.
2. &#x20;Calculate the minimum distance between the survey stations in the reference well and the offset well.
3. &#x20;Project the NEV-covariance matrices along the direction defined by the minimum distance, to get the relative uncertainty.
4. &#x20;Assemble the separation factor $$SF\_K$$.

### Remarks

{% hint style="warning" %}
The minimum distance calculation depends on which scan method is used, hence, also the separation factor calculations depend on this. Not only through the minimum distance, $$D\_K$$ *, but also thorough the relative uncertainty* $$\sigma{s, K}$$ . Best policy is to use the 3D closest approach which gives the true minimum distance.
{% endhint %}

## References

\[**1**] ISCWSA. [Definition of the ISCWSA error model. ISCWSA, 4.3, September 2017](http://www.iscwsa.net/download/c08e3426-35b3-11e9-8b25-c90aec30a2c4/).

\[**2**] H. S. Williamson. [Accuracy prediction for directional measurement while drilling. SPE Drilling and Completion, 15(04), 2000.](https://www.onepetro.org/journal-paper/SPE-67616-PA?sort=\&start=0\&q=Accuracy+prediction+for+directional+measurement+while+drilling.+SPE+Drilling+and+Completion%2C+15%2804%29%2C+2000\&from_year=\&peer_reviewed=\&published_between=\&fromSearchResults=true\&to_year=\&rows=25#)

\[**3**] S.J.Sawaryn et.al. [Well collision avoidance - separation rule. SPE Annual Technical Conference and Exhibition, 9-11 October, San Antonio, Texas, USA, 2017](https://www.onepetro.org/conference-paper/SPE-187073-MS).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oliasoft.gitbook.io/oliasoft-welldesigntm-public-docs/technical-documentation/uncertainty-modelling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
