aboutsummaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2015-09-16 19:57:24 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-16 21:16:58 -0700
commit95720e94eee79abd64dcc16969ad6b91d7c1ae50 (patch)
treee41aff244c91276cee954ff07e64fdf78f526b12 /deco.c
parent5b77b162a3c5b0e2f4d00a02a1de2fbee06842fc (diff)
downloadsubsurface-95720e94eee79abd64dcc16969ad6b91d7c1ae50.tar.gz
VPMB gradient of imperm: don't confuse atm and bar
Other VPM-B implementations (V-Planner, MultiDeco, Fortran code) take the default gradient of onset of impermeability as 8.2 atm. We use bar as the pressure unit, and 8.2 atm = 8.30865 bar. This has negligible effect on all of the calculated plans I've tested, resulting in a maximum decrease of 1 minute in total dive time for ~150 m deep dives, but we should get unit conversions correct anyway. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deco.c b/deco.c
index 5d3b1d867..ec4501bb7 100644
--- a/deco.c
+++ b/deco.c
@@ -69,7 +69,7 @@ struct vpmb_config vpmb_config = {
.crit_radius_N2 = 0.55,
.crit_radius_He = 0.45,
.crit_volume_lambda = 199.58,
- .gradient_of_imperm = 8.2,
+ .gradient_of_imperm = 8.30865, // = 8.2 atm
.surface_tension_gamma = 0.18137175, // = 0.0179 N/msw
.skin_compression_gammaC = 2.6040525, // = 0.257 N/msw
.regeneration_time = 20160.0,