gas pressures: use an actual compressibility table for air

We could in theory make this dependent on the gasmix, but for now let's
just assume (incorrectly) that everything we breathe acts like air.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2016-02-24 12:14:53 -08:00 committed by Dirk Hohndel
parent adaeb506b7
commit 45ed0ec757
2 changed files with 49 additions and 11 deletions

View file

@ -129,6 +129,7 @@ extern int units_to_sac(double volume);
/* Volume in mliter of a cylinder at pressure 'p' */
extern int gas_volume(cylinder_t *cyl, pressure_t p);
extern double gas_compressibility_factor(struct gasmix *gas, double bar);
static inline int get_o2(const struct gasmix *mix)