Calculates the head loss using the extended Bernoulli equation.

You're viewing an older version of this page (#375). View the current version.

View versions (1)

Interface

#include <codecogs/engineering/fluids/imperial/headloss_bernoulli.h>

using namespace Engineering::Fluids::Imperial;

Considering two different points within a fluid given by their elevations Z_{1,2} , pressures P_{1,2} and velocity of the fluid at those points v_{1,2}, the Bernoulli equation takes the form:

Z_1 + \frac{144 P_1}{\rho} + \frac{v_1^2}{2g} = Z_2 + \frac{144 P_2}{\rho} + \frac{v_2^2}{2g} + h_L
(1)

where \rho is the weight density of the fluid and h_L is the pipe friction loss or head loss from point 1 to point 2. The acceleration of gravity g is assumed to be 32.2 feet per second per second.

Example 1

#include <stdio.h>
#include <codecogs/engineering/fluids/imperial/headloss_bernoulli.h>

int main()
{
  double loss = Engineering::Fluids::Imperial::headloss_Bernoulli
  (0.45345, 2.5, 3.4, 10, 7, 100, 95);
  printf("Head loss = %.14lf ft\n", loss);

  return 0;
}

Output

Head loss = 43.82658376874603 ft

Parameters

density
weight density of fluid (pounds per cubic feet)
elevation1
elevation at point 1 above reference level (feet)
elevation2
elevation at point 2 above reference level (feet)
pressure1
pressure at point 1 (pounds per square)
pressure2
pressure at point 2 (pounds per square)
velocity1
mean velocity of flow at point 1 (feet per second)
velocity2
mean velocity of flow at point 2 (feet per second)

Returns

The head loss between point 1 and point 2.

References

The Engineering Division, Crane Co., "Flow of fluids through valves, fittings, and pipe", Chicago, 1957

GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

density
elevation1
elevation2
pressure1
pressure2
velocity1
velocity2
Result