Exploration of the many water bodies of Earth has been a challenge for land walking humans. The human body as it is today is not meant for exposure to water for long periods of time or great depths. There have been numerous studies and devices created to make a shell or apparatus to extend the amount of time the body will last underwater.
Diving has evolved into a sport and hobby by many. Others use the opportunity to research and explore the deep for the benefit of others. In the early days of swimming under water, an air line was used to feed air to the person. Then with the idea of taking a tank of compressed air, in 1943 called Aqua-lung by Emile Gagnan and Jacques Cousteau, the tether was removed. Aqua-lung was the first open-circuit scuba diving equipment. This device, which is still used regularly, works by using compressed air and a dive regulator, which makes air at ambient pressure available to the diver through a demand valve. The used air is exhaled through the same apparatus, but a valve diverts exhaled air to the exhaust hose, expelling the air near the tank so the bubbles don’t obscure the vision of the diver.
There are many algorithms developed for diving. These include the Mares-Wienke Reduced Gradient Bubble Model ; Buhlmann ZHL-16 , ZHL-12 and the ZHL-8, Multi-Tissue Model, and the Varying Permeability Model . These models are based algorithms that have been fine tuned by averaged recordings of diver experiences.
None have taken age, body type or any factors related to the physique of the diver into consideration. Nor have they taken a look at ambient temperature, though most dive computers now report this information. New research is being done to determine the effects of temperature. According to studies done by the US NAVY , having warmer conditions during decompression help reduce the effects of decompression sickness to a point. Heat stress can still occur in hotter water temperatures.
In this project, Buhlmann algorithm is implemented in C and MATLAB.
This code has a document (84 pages) which describe the algorithm in detail.