You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
A C++ implementation of the Bühlmann ZH-L16C decompression algorithm for simulating tissue gas loading/offloading and calculating decompression obligations. It tracks nitrogen and helium gas partial pressures in 16 tissue compartments during diving operations and calculates safe ascent profiles.
Features:
Gas uptake/elimination modeling using Haldane and Schreiner equations
Trimix gas mixture support (O₂/N₂/He)
M-value ceiling calculations
Gradient Factors
Ascent rate-controlled decompression planning
Key Equations
1. Alveolar Gas Saturation
Calculates underlying inert gas pressure in lungs:
The model is based on the Dalton's Law in combination with Partial Pressuresconstraint optimisation on the pressure limits recommended in theUS Navy Diving Manual (Revision 7, 2020):
PP02 (21,278 Pa - 141,855 Pa) - to eliminate O2 toxicity under high ambient pressure.
PPN2 (0 Pa - 354,638 Pa) - to amortise N2 narcotic effect under high ambient pressure.
WARNING:Underlying model assumes no hazardous properties of Helium under high ambient pressures:
WARNING: USE OF THIS LIBRARY FOR UNDERWATER DIVING MAY CAUSE HEALTH PROBLEMS OR DEATH
The use of this library for underwater diving is strictly prohibited. The calculations and algorithms used in this library are not intended for use in life-critical applications, including underwater diving.
RISKS ASSOCIATED WITH UNDERWATER DIVING
underwater diving is a high-risk activity that can result in serious health problems or death. The use of this library for underwater diving may increase the risk of:
Decompression sickness (DCS)
Nitrogen narcosis
Oxygen toxicity
Carbon dioxide poisoning
Other diving-related injuries or illnesses
LIMITATIONS OF THIS LIBRARY
This library is not designed to provide a safe or reliable means of calculating dive plans or managing gas mixtures for underwater diving. The calculations and algorithms used in this library are based on simplified models and assumptions that may not accurately reflect the complexities of real-world diving scenarios.
NO WARRANTY OR LIABILITY
The authors and maintainers of this library disclaim any warranty or liability for damages or injuries resulting from the use of this library for underwater diving. By using this library, you release and hold harmless the authors and maintainers of this library from any claims or liabilities arising from the use of this library.
About
C++ implementation of the ZH-L16C Bühlmann decompression model based on gas exchange dynamics in tissue compartments.