summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 21:30:53 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 21:30:53 +0200
commit11471009302532054afd0a12e2c09abdde990c6a (patch)
treed32675220c1cc1ef83cb54f2a530b64bcb8a948e /deco.c
parent5ae5aedab3b628ad04abc435ce3b06c3612d4d6c (diff)
downloadsubsurface-11471009302532054afd0a12e2c09abdde990c6a.tar.gz
VPM-B: add basic algorithm settings.
Created vpmb_config structure based on buehlmann_config. Set it's default values to ones taken from the existing C implementation. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/deco.c b/deco.c
index 9d0ec9d53..1d604c92c 100644
--- a/deco.c
+++ b/deco.c
@@ -32,6 +32,19 @@ struct buehlmann_config {
};
struct buehlmann_config buehlmann_config = { 1.0, 1.01, 0, 0.75, 0.35, 1.0, false };
+//! Option structure for VPM-B decompression.
+struct vpmb_config {
+ double crit_radius_N2; //! Critical radius of N2 nucleon (microns).
+ double crit_radius_He; //! Critical radius of He nucleon (microns).
+ double crit_volume_lambda; //! Constant corresponding to critical gas volume.
+ double gradient_of_imperm; //! Gradient after which bubbles become impermeable.
+ double surface_tension_gamma; //! Nucleons surface tension constant.
+ double skin_compression_gammaC; //!
+ double regeneration_time; //! Time needed for the bubble to regenerate to the start radius.
+ double other_gases_pressure; //! Always present pressure of other gasses in tissues.
+};
+struct vpmb_config vpmb_config = { 0.6, 0.5, 250.0, 8.2, 0.179, 2.57, 20160, 0.1359888 };
+
const double buehlmann_N2_a[] = { 1.1696, 1.0, 0.8618, 0.7562,
0.62, 0.5043, 0.441, 0.4,
0.375, 0.35, 0.3295, 0.3065,