Pipeline Toolbox
Function Reference Manual
Early Public Release DD-00011-000

3.6.5 miller_p - Miller pressure drop for P
p = miller_p(q,d,pguess,v,sg=1,maxiter=10,threshold=1e-3)

Calculates the pressure drop across a pipeline using the Miller equation suitable for crude oil products.

Arguments

q

Volumetric flow rate (m3/h  ).

d

Pipe internal diameter (m  ).

pguess

Initial guess for the pressure result in kPa/km  .

v

Liquid viscosity, centipoise.

sg

Liquid specific gravity.

maxiter

Maximum number of iterations to try to converge.

threshold

Iteration completion threshold.

Returns Pressure drop due to friction (kPa/km  ).

Possible Warnings

Miller equation not satisfied, but terminated due to iteration limit

The function could not converge satisfactorily to the given threshold because it exceeded the maximum number of iterations dictated by the maxiter argument.