calculate_pressure_at_depth
Calculate hydrostatic pressure at specific depths using the formula P = P_atm + ρgh. Input depth and fluid density to determine total pressure, gauge pressure, and pressure in atmospheres for applications like scuba diving or engineering.
Instructions
Calculate pressure at depth: P = P_atm + ρgh.
Hydrostatic pressure increases with depth.
Args:
depth: Depth below surface in meters
fluid_density: Fluid density in kg/m³ (water=1000, seawater=1025)
atmospheric_pressure: Pressure at surface in Pascals (default 101325)
gravity: Gravitational acceleration in m/s² (default 9.81)
Returns:
Dict containing:
- total_pressure: Total pressure in Pascals
- gauge_pressure: Pressure above atmospheric in Pascals
- pressure_atmospheres: Pressure in atmospheres (1 atm = 101325 Pa)
Example - Scuba diving at 30m:
result = await calculate_pressure_at_depth(
depth=30, # meters
fluid_density=1025, # seawater
atmospheric_pressure=101325
)
# Result: ~4 atmospheres
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | ||
| fluid_density | Yes | ||
| atmospheric_pressure | No | ||
| gravity | No |