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>
This commit is contained in:
Robert C. Helling 2017-05-12 15:36:24 +02:00 committed by Dirk Hohndel
parent e6d884cf26
commit bb6ceba4ac
5 changed files with 17 additions and 2 deletions

View file

@ -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)