STOIIP as a range, not a number
Volumetrics under uncertainty, with porosity and water saturation correlated, sampled 10,000 times.
STOIIP = 7,758 · A · h · φ · (1 − Sw) / Bo, in STB with the area in acres and the thickness in feet; 7,758 is barrels per acre-foot.
Porosity and water saturation are correlated negatively in most rocks: better rock holds less water. Sampling them independently widens the range, so WithCorrelation ties them. A fixed seed makes the run repeatable.
GetStatistics reports percentiles of the outcome: P10 is the low case, the volume with a 10 % chance of coming in below it, and P90 the high case. Reserves reports name them the other way round, where P90 is the low case, the volume exceeded with 90 % probability. So the P10 here is what a reserves report calls P90: swap the names before booking.
Source
using System;
using Team76.Engineering.MC;
using Team76.Engineering.MC.Distributions;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
var run = new MonteCarloBuilder()
.AddInput("area", new TriangularDistribution(800, 1200, 1900))
.AddInput("h", new PertDistribution(40, 65, 110))
.AddInput("phi", new PertDistribution(0.14, 0.21, 0.27))
.AddInput("sw", new PertDistribution(0.18, 0.28, 0.45))
.WithCorrelation("phi", "sw", -0.6)
.WithIterations(10_000).WithSeed(76)
.Run(x => 7758 * x[0] * x[1] * x[2] * (1 - x[3]) / 1.25, "stoiip");
// Percentiles of the outcome: s.P10 is the low case. Reserves reports name the same number P90.
var s = run.GetStatistics("stoiip");
return ctx.Result()
.Set("Low case, s.P10 (MMSTB)", Math.Round(s.P10 / 1e6, 1))
.Set("Middle, s.P50 (MMSTB)", Math.Round(s.P50 / 1e6, 1))
.Set("High case, s.P90 (MMSTB)", Math.Round(s.P90 / 1e6, 1));
}
}