I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com

Bernoulli

Returns the total energy within a fluid using the simplified Bernoulli equation.
Controller: CodeCogs

Private project under development, to help contact the author: Contact Controller

Interface

C++
Excel

Bernoulli

 
doubleBernoullidoubledensity
doubleelevation
doublepressure
doublevelocity )[inline]
The simplified Bernoulli equation is basically expressing the application of the law of conservation of energy to the flow of fluids in a conduit. It is given by the following formula: where \inline Z is the elevation head, \inline P is the pressure head, \inline v the velocity head and finally \inline E is the total energy of fluid constant at any particular point, above some arbitrary horizontal datum plane. Also \inline g is the acceleration of gravity, 32.2 ft/s.

It is assumed that friction losses are neglected and no energy is added to, or taken from the system.

Example 1

#include <stdio.h>
#include <codecogs/engineering/fluids/imperial/bernoulli.h>
 
int main()
{
  double energy = Engineering::Fluids::Imperial::Bernoulli(0.34, 3, 0.5, 2);
  printf("Total energy: %.12lf ft\n", energy);
 
  return 0;
}

Output

Total energy: 214.826817683595 ft

References

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

Parameters

densityweight density of fluid (lb/ft)
elevationpotential head or elevation above reference level (ft)
pressurepressure (lb/in)
velocitymean velocity of flow (ft/s)

Returns

Total energy of fluid (ft).

Authors

Lucian Bentea (July 2006)
Source Code

This module is private, for owner's use only.

Not a member, then Register with CodeCogs. Already a Member, then Login.