# 7.17 Sizing of Pump for Oil Pipelines

Crude oil (30 degree API) at 15.6 C with a viscosity of 75 Universal Saybolt seconds flows down a 12” Schedule 30 steel pipe with a flow rate of 1900 barrels/hour.

The pipeline is 50 miles long, and the net elevation change is an increase of 2000 feet above the initial pump. The pump has an efficiency of 67%.

Calculate the brake horsepower of the pump.

    [1]:

    from fluids.units import *
    from math import pi
    L = 50*u.miles
    dH = 2000*u.foot
    efficiency = 0.67

    # Note in pint the default barrel is for US dry barrel
    Q = 1900*u.oil_barrel/u.hour
    mu = 12.5*u.cP
    rho = 54.64*u.lb/u.ft**3

    NPS, Di, Do, t = nearest_pipe(NPS=12, schedule='30')

    A = 0.25*pi*Di**2
    v = Q/A
    Re = rho*v*Di/mu
    print(Re.to_base_units())
    fd = friction_factor(Re=Re, eD=0.0022*u.inch/Di)
    print(fd)

    K_tot = K_from_f(fd=fd, L=L, D=Di)
    dP = dP_from_K(K=K_tot, rho=rho, V=v) + rho*dH*1*u.gravity
    dP.to(u.psi), v.to(u.foot/u.s)

    head = head_from_P(dP, rho).to(u.foot)
    print('head = %s' %head)
    power = Q*dP/efficiency
    print('power = %s' %(power.to(u.hp)))

    24364.090937022276 dimensionless
    0.02511025708497868 dimensionless
    head = 3413.763958141052 foot
    power = 1499.9449484211073 horsepower

The listed values are 3406.5 feet and 1496 hp, however a shortcut formula is used there.