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.
Volumetric flow rate ().
Pipe internal diameter ().
Initial guess for the pressure result in .
Liquid viscosity, centipoise.
Liquid specific gravity.
Maximum number of iterations to try to converge.
Iteration completion threshold.
Returns Pressure drop due to friction ().
The function could not converge satisfactorily to the given threshold because it exceeded the maximum number of iterations dictated by the maxiter argument.