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>
This commit is contained in:
Jan Darowski 2015-07-03 21:30:53 +02:00
parent 5ae5aedab3
commit 1147100930

13
deco.c
View file

@ -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,