Bernoulli inv
Returns the elevation, pressure or velocity inside a fluid given the other two parameters.
Controller: CodeCogs
Interface
C++
Excel
Bernoulli Inv
| doubleBernoulli_inv( | int | target | |
| double | energy | ||
| double | density | ||
| double | elevation | ||
| double | pressure | ||
| double | velocity | )[inline] |
Example 1
#include <stdio.h> #include <codecogs/engineering/fluids/imperial/bernoulli_inv.h> int main() { double Z = Engineering::Fluids::Imperial::Bernoulli_inv(ELEVATION, 214.826817683595, 0.34, 0, 0.5, 2), P = Engineering::Fluids::Imperial::Bernoulli_inv(PRESSURE, 214.826817683595, 0.34, 3, 0, 2), v = Engineering::Fluids::Imperial::Bernoulli_inv(VELOCITY, 214.826817683595, 0.34, 3, 0.5, 0); printf(" Energy = 214.826817683595 ft\n"); printf(" Density = 0.34 lb/ft^3\n\n"); printf("Elevation = %.10lf ft\n", Z); printf(" Pressure = %.10lf lb/in^2\n", P); printf(" Velocity = %.10lf ft/s\n", v); return 0; }
Output
Energy = 214.826817683595 ft Density = 0.34 lb/ft^3 Elevation = 3.0000000000 ft Pressure = 0.5000000000 lb/in^2 Velocity = 2.0000000000 ft/s
References
- The Engineering Division, Crane Co., "Flow of fluids through valves, fittings, and pipe", Chicago, 1957
Parameters
target ELEVATION, PRESSURE or VELOCITY energy total head (ft) density weight density of fluid (lb/ft) elevation potential head or elevation above reference level (ft) pressure pressure (lb/in) velocity mean velocity of flow (ft/s)
Returns
- The numerical value of the desired parameter.
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.

