diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-05-12 15:36:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-26 15:52:04 -0700 |
commit | bb6ceba4ac0310c504f931674a71e9e77c0afa1c (patch) | |
tree | 2a060b136d32e7ecdfd5b8b0314415595e675cbe /core/dive.h | |
parent | e6d884cf26161df65c2b4b8c39d6b4133760537b (diff) | |
download | subsurface-bb6ceba4ac0310c504f931674a71e9e77c0afa1c.tar.gz |
Compute and display gas density
This appears to be critical for work of breathing so it might be
worthwhile to compute. So far only in infobox.
For background, see
https://www.youtube.com/watch?v=QBajM3xmOtc
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index fa89edc44..c2ae1e36d 100644 --- a/core/dive.h +++ b/core/dive.h @@ -139,6 +139,8 @@ extern int units_to_sac(double volume); extern int gas_volume(cylinder_t *cyl, pressure_t p); extern double gas_compressibility_factor(struct gasmix *gas, double bar); extern double isothermal_pressure(struct gasmix *gas, double p1, int volume1, int volume2); +extern double gas_density(struct gasmix *gas, int pressure); + static inline int get_o2(const struct gasmix *mix) |