mechanical# General functional algorithms for the design of pumps and motors. brake_efficiency(q)[source]# Return brake efficiency given flow rate in gpm. motor_efficiency(Pb)[source]# Return motor efficiency given brake power in hp (used for estimating pump efficiency). pump_efficiency(q, p)[source]# Return pump efficiency. Parameters: q (float) – Volumetric flow rate in gpm. p (float) – Power in hp. electric_motor_cost(Pc)[source]# Return the baseline purchase cost of an electric motor given the shaft power in hp.