Cylinder pressure interpolation and end pressure display for CCR

Robert C. Helling helling at atdotde.de
Sun Nov 9 06:26:01 PST 2014


On 09 Nov 2014, at 12:49, Willem Ferguson <willemferguson at zoology.up.ac.za> wrote:

Hi,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Some-gas-handling-improvements.patch
Type: application/octet-stream
Size: 6786 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141109/39672f2c/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-For-CCR-dives-make-the-O2-cylinder-special-rather-th.patch
Type: application/octet-stream
Size: 17684 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141109/39672f2c/attachment-0003.obj>
-------------- next part --------------


> As far as the present implementation is concerned, I suspect it would be fairly easy (not simple) to to changes. We just need to agree on the principle of interpolation for the diluent.

ok, so here is my attempt at this: The first patch adds a strategy parameter to the interpolation. For all OC gases we use SAC-based while for both CCR gases we now use TIME-based (as long as we have continuous señor readings for diluent as in your example that should be fine).

While reading your code I realised that some of our confusion resulted from the fact that you wanted to treat the O2 cylinder as an extension of the current cylinder in the OC case and make the diluent the additional cylinder. What I had in mind (and I think this is the better way since it makes it more straight forward to determine the breathing gas) is to treat the diluent as the normal case and O2 as special. So the second patch is a code refactor which implements this switch. For me, this was a bit like open heart surgery and I am not convinced I did not miss anything. So this needs some testing and looking at code.

This also affects the xml format for those dives: The O2 pressure gets a special keyword while the diluent is now just “pressure”. I changed the sample file with search&replace but you should better regenerate it (I don’t know how you did that).

Best
Robert

--                                                                              
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics  
                      Scientific Coordinator                                   
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik    
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339       
    stupid .sig\n";   http://www.atdotde.de 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141109/39672f2c/attachment-0001.sig>


More information about the subsurface mailing list