From 7725842383b66fba50c41dbf9f981be38a467135 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 12 Jan 2017 21:19:40 +0100 Subject: Use real gas compressibility in planner Modify formluas for gas use to take into account the compressibility correction for real gases. This introduces also the inverse formula to compute the pressure for a given amount of gas. Signed-off-by: Robert C. Helling --- core/dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/dive.h') diff --git a/core/dive.h b/core/dive.h index 8798b22ff..3a1492ed9 100644 --- a/core/dive.h +++ b/core/dive.h @@ -136,6 +136,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); +extern double isothermal_pressure(struct gasmix *gas, double p1, int volume1, int volume2); static inline int get_o2(const struct gasmix *mix) -- cgit v1.2.3-70-g09d2