I assume you are using the Fanning Friction Factor because this is a chemical engineering problem.
However, this is not required to solve the problem. You only need to find
the frictional loss (in energy).
The original bernoulli equation (see above) does not take in account of energy input and friction losses.
I have modified it to answer the question. It is still the same principle being used to solve the problem, ie. the first law of thermodynamics: conservation of energy.
energy in = energy out
u
in2/2 + gh
in + P
in/? + W
pump = u
out2/2 + gh
out + P
out/? + F
lossu
in2/2 + P
in/? + W
pump = u
out2/2 + g(h
out - h
in) + P
out/? + F
losswhere F
loss is the frictional loss and W
pump is energy supplied by pump to soybean oil
Since the exit and entrance pipes are of the same diameter, mass flow rate is constant and the soybean oil is incompressible, then the velocity of the oil must remain constant, ie. u
in = u
out = u
This means the above equation reduces to:
P
in/? + W
pump = P
out/? + F
loss + g(h
out - h
in)
F
loss = W
pump - g(h
out - h
in) - (P
out - P
in)/?