Lesson 6 of 16
The Continuity Equation
The Continuity Equation
For an incompressible fluid (constant density), conservation of mass requires that the volume flow rate is constant along a streamtube:
This is the continuity equation — what flows in must flow out.
Volume Flow Rate
The volume flow rate is the volume of fluid passing a cross-section per unit time:
where is the cross-sectional area (m²) and is the flow velocity (m/s). Units: m³/s.
Exit Velocity
Rearranging the continuity equation gives the velocity at any cross-section:
A narrowing pipe () produces a higher velocity — this is why water speeds up at a garden hose nozzle. A widening pipe slows the flow.
Mass Flow Rate
The mass flow rate accounts for fluid density (kg/m³):
Units: kg/s. For an incompressible fluid, is also conserved along a streamtube.
Your Task
Implement the following functions:
flow_rate(A, v)— returns volume flow rate in m³/sexit_velocity(A1, v1, A2)— returns exit velocity in m/smass_flow_rate(rho, A, v)— returns mass flow rate in kg/s
Python runtime loading...
Loading...
Click "Run" to execute your code.