diff options
author | Robert C. Helling <helling@atdotde.de> | 2021-03-11 23:27:13 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2021-03-12 22:24:23 +0100 |
commit | 7c62f7541cce617d2c2651c0a93353ce03fee115 (patch) | |
tree | 3eedcfaf65f8ba66b056566eb668591cbac57b2b /core/gas.h | |
parent | 41fc822d56e7d0866129ef6b68ccfb947300bffd (diff) | |
download | subsurface-7c62f7541cce617d2c2651c0a93353ce03fee115.tar.gz |
Use PSCR gas when computing O2 toxicity
Both the calculations for CNS and OTU did not take
into account the pO2 drop when using a PSCR. Furthermore,
there was some unit confusion due to not using internal
units.
Reported-by: arosl
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/gas.h')
-rw-r--r-- | core/gas.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/gas.h b/core/gas.h index cd7c9e389..83eef72e9 100644 --- a/core/gas.h +++ b/core/gas.h @@ -59,6 +59,8 @@ static inline int get_n2(struct gasmix mix) return 1000 - get_o2(mix) - get_he(mix); } +int pscr_o2(const double amb_pressure, struct gasmix mix); + struct gas_pressures { double o2, n2, he; }; |