calculate_bernoulli
Calculate fluid flow parameters using Bernoulli's equation to analyze pressure, velocity, and height relationships in fluid dynamics applications.
Instructions
Calculate Bernoulli's equation: P + (1/2)ρv² + ρgh = constant.
Energy conservation for flowing fluids.
Args:
pressure1: Pressure at point 1 in Pascals
velocity1: Flow velocity at point 1 in m/s
height1: Height at point 1 in meters
velocity2: Flow velocity at point 2 in m/s (optional)
height2: Height at point 2 in meters (optional)
fluid_density: Fluid density in kg/m³ (default 1000 for water)
gravity: Gravitational acceleration in m/s² (default 9.81)
Returns:
Dict containing:
- total_pressure_1: Total pressure at point 1
- static_pressure_1: Static pressure component
- dynamic_pressure_1: Dynamic pressure component
- hydrostatic_pressure_1: Hydrostatic pressure component
- pressure2: Pressure at point 2 (if velocity2/height2 given)
Example - Water tank with outlet:
result = await calculate_bernoulli(
pressure1=101325, # Atmospheric at top
velocity1=0, # Still water
height1=10, # 10m height
velocity2=14, # Exit velocity
height2=0, # Ground level
fluid_density=1000
)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pressure1 | Yes | ||
| velocity1 | Yes | ||
| height1 | Yes | ||
| velocity2 | No | ||
| height2 | No | ||
| fluid_density | No | ||
| gravity | No |