Method: Joules.hydrostatic_pressure
- Defined in:
- lib/joules/pressure.rb
.hydrostatic_pressure(density, height) ⇒ Float
Calculates the hydrostatic pressure given density and height.
43 44 45 |
# File 'lib/joules/pressure.rb', line 43 def hydrostatic_pressure(density, height) return density * FREE_FALL_ACCELERATION * height end |