Choke performance explorer
Move the wellhead pressure, the GLR, the target liquid rate and the flowline pressure, and watch the Gilbert choke size, the bean that holds the target and the rate it passes, whether the choke runs critical, and the rate through each bean by the Gilbert, Ros, Baxendell and Achong correlations.
- UC-SF-001
- UC-SF-003
Open in the workbench Open the live page
Live preview
Engineering use cases UC-SF-001 (Size Wellhead Choke for Target Rate) and UC-SF-003 (Generate Choke Performance Curves). The script sf-choke-sizing does the same at one design point, with the bean schedule as the wellhead pressure declines, and sf-choke-correlations checks the correlations against a well test.
Source choke-performance.dashboard
@using Team76.Engineering.SF.Choke
@using Team76.Engineering.SF.Choke.MultiPhase
@{ var r = Compute(); }
<Page MaxWidth="Narrow">
<Section Title="Well">
<Slider Label="Wellhead pressure" @bind-Value="Wellhead" Min="200" Max="2000" Step="25" Unit="psia" />
<Slider Label="Gas-liquid ratio" @bind-Value="Glr" Min="200" Max="5000" Step="50" Unit="scf/STB" />
<Slider Label="Target liquid rate" @bind-Value="Target" Min="100" Max="5000" Step="50" Unit="bbl/d" />
<Slider Label="Flowline pressure" @bind-Value="Flowline" Min="50" Max="1000" Step="10" Unit="psia" />
</Section>
<Section Title="The choke">
<KpiRow>
<Value Label="Gilbert size" Number="@r.Size64" Unit="64ths in" Format="N1" Note="@r.SizeInches" />
<Value Label="Bean" Number="@r.Bean" Unit="64ths in" Format="N0" Note="@r.BeanNote" />
<Value Label="Rate on the bean" Number="@r.BeanRate" Unit="bbl/d" Format="N0" />
<Value Label="Pressure ratio" Number="@r.Ratio" Unit="p2/p1" Format="N2"
Status="@(r.Critical ? "good" : "warn")"
StatusText="@(r.Critical ? "critical: Gilbert holds" : "subcritical: Gilbert reads high")" />
</KpiRow>
</Section>
<Section Title="Rate through each bean, by correlation">
<Chart Rows="r.Rows" X="Choke:64ths in" Series="Gilbert:bbl/d + Ros:bbl/d + Baxendell:bbl/d + Achong:bbl/d" Height="320" YMin="0" LogYBox="false">
<PointMarker X="@r.Size64" Y="@Target" Text="target" />
</Chart>
</Section>
<Notes Text="@Method" />
</Page>
@code {
// The use case's well: 600 psia, a GLR of 1,000 scf/STB, held to 800 bbl/d, into a 250 psia flowline.
double Wellhead = 600;
double Glr = 1000;
double Target = 800;
double Flowline = 250;
static readonly int[] Beans = [16, 20, 24, 28, 32, 36, 40, 48, 56, 64];
record Row(double Choke, double Gilbert, double Ros, double Baxendell, double Achong);
record Result(IReadOnlyList<Row> Rows, double Size64, string SizeInches, double Bean, string BeanNote, double BeanRate, double Ratio, bool Critical);
static string Inv(FormattableString s) => FormattableString.Invariant(s);
Result Compute()
{
double size = GilbertChoke.Size(Wellhead, Target, Glr);
double size64 = 64 * size;
int bean = Beans.FirstOrDefault(b => b >= size64);
bool open = bean == 0;
double beanRate = GilbertChoke.Rate(Wellhead, (open ? 64 : bean) / 64.0, Glr);
double ratio = Flowline / Wellhead;
bool critical = ChokeFlowRegimeHelper.Determine(Wellhead, Flowline) == ChokeFlowRegime.Critical;
// Each correlation's rate through the beans from 8/64 to 64/64 in at the slider pressure and GLR.
var rows = Enumerable.Range(1, 8).Select(i => i * 8.0)
.Select(s => new Row(s,
Math.Round(GilbertChoke.Rate(Wellhead, s / 64, Glr)),
Math.Round(RosChoke.Rate(Wellhead, s / 64, Glr)),
Math.Round(BaxendellChoke.Rate(Wellhead, s / 64, Glr)),
Math.Round(AchongChoke.Rate(Wellhead, s / 64, Glr))))
.ToList();
return new Result(rows, size64, Inv($"{size:F3} in"), open ? 64 : bean,
open ? "wide open: no bean holds the target" : Inv($"next bean up from {size64:F1}/64"),
beanRate, ratio, critical);
}
const string Method = "The choke is a Gilbert-type correlation, p1 = A q R^B / S^C with p1 the pressure upstream of the choke, q the liquid rate in bbl/d, R the GLR in scf/STB and S the bean in 64ths of an inch: Gilbert (1954) A 10.0, B 0.546, C 1.89; Ros (1960) 17.40, 0.500, 2.00; Baxendell (1957) 9.56, 0.546, 1.93; Achong (1961) 3.82, 0.650, 1.88 (Team76.Engineering.SF.Choke.MultiPhase). The size is Gilbert solved for S at the target rate, rounded up to the next bean in stock. The correlations hold only for critical flow, which the 0.55 rule of thumb for oil-gas mixtures checks against the flowline pressure; a subcritical choke passes less than they say, and Sachdeva's model is the one to use there.";
}