# Gas Over Mud Ratio

Gas over mud is a **burst** load case, where the unknown is the internal pressure profile of the casing / tubing

{% hint style="info" %}
Note: In this documentation we denote any tubular as ***casing*** or ***tubing***. All calculations however encompass any tubular, such as tubings, casings, liners, tie-backs etc.
{% endhint %}

## Summary

The scenario is a gas kick somewhere below the shoe of the tubing, i.e. in the open hole of the next section, which moves upwards to the hanger and displace the mud. This load case can be viewed as the equilibrium of the load case **Displacement to gas**, although some of the inputs are different. This load case comes with two additional choices.

It is possible to enable *Limit to frac at shoe*, which effectively limits the maximum pressure at the shoe to the fracture pressure there, and also to enable MASP / MAWP (Maximum Anticipated Surface/Wellhead Pressure), which then gives the internal pressure as the interpolated pressure between MASP / MAWP and fracture pressure at shoe. If both are enabled, then MASP / MAWP takes precedence.

### Printable version

{% file src="<https://1901482827-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgbgDihqdYuxtPooIin%2F-Lp7P8o3ZNyBEZ9aTOMK%2F-Lp7PMyA4NY8c-7MnplH%2FOliasoft%20Technical%20Documentation%20-%20Load%20cases%20-%20Gas%20over%20mud%20ratio.pdf?alt=media&token=41df54e8-e384-404b-8bbe-b9dd69c37a8f>" %}

## Inputs

The following inputs define the gas over mud load case

1. The true vertical depth (TVD) along the wellbore as a function of measured depth. Alternatively, the wellbore described by a set of survey stations, with complete information about measured depth, inclination, and azimuth.&#x20;
2. The true vertical depth / TVD of
   1. The hanger of the tubing, $$\text{TVD}\_{\text{hanger}}$$ .
   2. The shoe of the tubing, $$\text{TVD}\_{\text{shoe}}$$ .
   3. The influx depth of the gas, $$\text{TVD}\_{\text{influx}}$$ .
3. The pore- and fracture- pressure profile from hanger to influx depth.
4. The gas over mud ratio, $$\text{q}\_{\text{gm}}$$ .
5. The mud weight/density, $$\rho\_{\text{mud}}$$ .
6. The gas density, $$\rho\_{\text{gas}}$$ .
7. Whether or not to limit the pressure at shoe by the fracture pressure there. If this is enabled, it is also possible to give a fracture margin of error, which is added to the fracture pressure.&#x20;
8. Whether or not to enable MASP/MAWP.

{% tabs %}
{% tab title="Scenario Illustration" %}
![](https://1901482827-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LgbgDihqdYuxtPooIin%2F-M6iZt0bBcUZxVtkcM0o%2F-M6ieMZHf5lyeHBmu68Q%2F10049-Burst-Gas-Over-Mud-Ratio.270p.256col.gif?alt=media\&token=c85f1361-9bab-44e2-aa8b-18c0d2a2059e)
{% endtab %}
{% endtabs %}

## Calculation

The internal pressure profile of the tubing is calculated as the hydrostatic pressure from hanger to shoe. The algorithm goes as follows

1\. Calculate the true vertical depth of the gas-mud interface, $$\text{TVD}\_{\text{interface}}$$ . This interface is then either above the tubing shoe, or below it.

2\. Calculate the pore pressure at influx depth, $$p\_{\text{p,influx}}$$ *,* and the fracture pressure at the sho&#x65;*,* $$p\_{\text{f, shoe}}$$ .

3\. Calculate the hydrostatic pressure at the shoe, from $$p\_{\text{influx}}$$ and up

$$
\begin{equation}
p\_\text{h,shoe} =
\begin{cases}
p\_{\text{p,influx}} - \rho\_\text{mud}, g (\text{TVD}*\text{influx} - \text{TVD}*\text{shoe}), \quad \text{if}\quad \text{TVD}*\text{shoe} \geq \text{TVD}*{\text{interface}} \\
p\_{\text{p,influx}} - \rho\_\text{mud}, g (\text{TVD}*\text{influx} - \text{TVD}*\text{interface}) - \rho\_\text{gas}, g (\text{TVD}*\text{interface} - \text{TVD}*\text{shoe}), \quad \text{otherwise},
\end{cases}
;;;;;;;;;;;;\ (1)
\end{equation}
$$

where $$g$$ is the gravitational constant

4\. Calculate the pressure at the shoe as

$$
p\_{\text{shoe}} =
\begin{cases}
\text{minimum}(p\_{\text{f, shoe}}, p\_{\text{h, shoe}}), \qquad \text{if} &\text{'Limit to frac at shoe' is true}, \\
p\_{\text{h, shoe}}, \qquad &\text{otherwise}.
\end{cases} ;;;;;;;;;;;;;;;\ (2)
$$

5\. Calculate the internal pressure of the tubing as the hydrostatic pressure from hanger to shoe.

6\. If MASP/MAWP is enabled, this take precedence, and then the internal pressure profile of the tubing is given by the interpolated pressure of the MASP/MAWP, i.e.

$$
\begin{equation}
p\_{\text{MASP/MAWP}} = p\_\text{p, influx} - \rho\_\text{gas}, g (\text{TVD}*\text{influx} - \text{TVD}*{\text{hanger}}), ;;;;;;;;;;;;;;;;;;;;\ (3)
\end{equation}
$$

and the fracture pressure at the shoe, $$p\_{\text{f, shoe}}$$ .


---

# 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/casing-design-triaxial-stress-analysis/load-cases/internal-profiles/gas-over-mud-ratio.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.
