  This document provides technical background for StageOpt. This tool helps to
better understand fluid and proppant distribution between perforations and
clusters within a fracturing stage. Limited entry technique is often used to
achieve uniform fluid distribution between clusters. This, however, does not
automatically guarantee uniform proppant distribution. In view of this
observation, StageOpt allows users to overcome this obstacle and to better
design perforation design by focusing on both fluid and proppant distribution
between clusters. The algorithm in StageOpt is based primarily on the paper
Dontsov (2023), but it also incorporates practically important features, such
as the effect of stress shadow from previous stage, perforation erosion, and
other phenomena. In this write-up, flow distribution between perforations is
described first, and the effects of perforation friction, near-wellbore
pressure drop, as well as perforation break down and stress shadow are
included. Then, proppant distribution between perforations is discussed as a
function of perforation orientation. Finally, perforation erosion is added to
the model. The erosion changes perforation diameter as a function of several
parameters, including the flow rate through the perforation as well as the
amount of proppant that flows through it. The change of perforation size in
turn changes magnitude of perforation friction, which then changes the
distribution of slurry, that consequently changes proppant flow distribution.
Such a coupled system often leads to complex results that are hard to deduce
without systematic physical modeling, which is exactly what StageOpt provides.
