Package kenozooid :: Module calc

Module calc

source code

Functions to calculate

Functions
 
ppg(depth, ean, gas)
Calculate partial pressure of a gas.
source code
 
mod(ean, pp=1.4)
Calculate maximum operating depth for a gas and partial pressure.
source code
 
ead(depth, ean)
Calculate equivalent air depth for depth and a gas.
source code
 
rmv(tank, pressure, depth, duration)
Calculate respiratory minute volume (RMV).
source code
Variables
  pp_n2 = functools.partial(ppg, gas= 'N2')
  pp_o2 = functools.partial(ppg, gas= 'O2')
  __package__ = 'kenozooid'
Function Details

ppg(depth, ean, gas)

source code 
Calculate partial pressure of a gas.
Parameters:
  • depth - Depth in meters.
  • ean - O2 percentage, i.e. 32, 34, 27.5.
  • gas - Gas name - O2 (oxygen) or N2 (nitrogen).

mod(ean, pp=1.4)

source code 
Calculate maximum operating depth for a gas and partial pressure.
Parameters:
  • ean - O2 percentage, i.e. 32, 34, 27.5.
  • pp - Partial pressure value.

ead(depth, ean)

source code 
Calculate equivalent air depth for depth and a gas.
Parameters:
  • depth - Depth in meters.
  • ean - O2 percentage, i.e. 32, 34, 27.5.

rmv(tank, pressure, depth, duration)

source code 
Calculate respiratory minute volume (RMV).
Parameters:
  • tank - Tank size in liters, i.e. 12l, 15l.
  • pressure - Difference in pressure of the tank at the end and start of a dive, i.e. 170 (220 at start, 50 at end of a dive).
  • depth - The average depth of a dive.
  • duration - Duration of a dive in minutes.