Bernoulli's Equation
Bernoulli's Equation
Bernoulli's equation expresses conservation of energy for an ideal (inviscid), incompressible, steady flow along a streamline:
The three terms represent pressure energy, kinetic energy, and potential energy per unit volume. Their sum is constant along any streamline.
Solving for Downstream Pressure
Rearranging for the pressure at point 2:
where m/s² is gravitational acceleration, is elevation (m), and is fluid density (kg/m³).
Key insight: speed and pressure trade off. A faster-moving fluid exerts less static pressure — the basis of the Venturi effect and aircraft lift.
Torricelli's Theorem
For a large open tank draining through a small hole at depth below the surface, we set (large tank, surface barely moves) and . Bernoulli's equation simplifies to:
This is Torricelli's theorem — the exit velocity equals the free-fall speed from height .
Your Task
Implement:
bernoulli_pressure(P1, rho, v1, z1, v2, z2)— pressure at point 2 (Pa). Use m/s² inside the function.torricelli_velocity(h)— drain velocity (m/s) for a tank with head . Use m/s² inside the function.