Figuring out EaN Percentages

Please register or login

Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.

Benefits of registering include

  • Ability to post and comment on topics and discussions.
  • A Free photo gallery to share your dive photos with the world.
  • You can make this box go away

Joining is quick and easy. Log in or Register now!

daviking

Registered
Messages
5
Reaction score
2
Location
Worland
# of dives
50 - 99
Hello all! I am unsure as to where this would go... But if this isn't where it belongs, please feel free to aid me in getting it there. I'm new to scuba board.

So, I am creating a diving app for computers, phones and a discord bot. One of the functions I want to add, os figuring the theoretical FINAL percentage of Oxygen in a tank. Here's the deets:
1) I have a tank that is at 500 psi, and contains EaN36.

2) I want to fill this tank with air to 3,000psi.

Armed with this information, I want to know what the Oxygen concentration is after I fill the tank with 2,500 psi of air.

What is the/a formula I can use to figure out the theoretical end percentage after filling a tank regardless of the starting pressure of the tank?
 
My idea was convert the percentage of O2 and nitrogen to PSI
For 500 PSI: 180PSI O2, 500PSI nitrogen
The remaining 2500: 525, 1975
Add both together- 705 PSI O2, 2295 PSI nitrogen
Divide by total PSI of 3000
23.5% O2 76.5% nitrogen
Idk how gas mixing works, if you can have the oxygen percentage be 24% and nitrogen 76%. That’s what I got when trying to figure this out- I feel there’s still a flaw in it. What’s the right way?
 
Armed with this information, I want to know what the Oxygen concentration is after I fill the tank with 2,500 psi of air.

Me I just test with an analyzer and take the reading off that.
 
That is the simple answer. And it works.

Compressibility doesn't really play enough in the normal scuba pressures.
The accuracy of the gauge is another factor.
And the initial nitrox measurment, that analyzer has a bit of error to it as well.
And the temperature rise of the fill, that changes the pressures. Let it cool, did you overfill it enough to hit the target pressure once it cools off?
Oh the endless list of variables. You could over-complicate things to they never work. Or just use the above, and analyze in the end like you really should.
 
Me I just test with an analyzer and take the reading off that.
Well, of course, we will analyze the tank before diving. Wouldn't be smart not to. The idea is purely theoretical for informational purposes, due to the variability of... Well... The variables. For example, my wife and I will go diving soon (in real life). We will be using EaN36 for the first dives, then refilling our tanks with air from 500 psi. I was curious in theory, what our gas mix would be after we got a refill, because I know that we would still be breathing nitrox, but didn't know the percentage. Lol
 
That is the simple answer. And it works.

Compressibility doesn't really play enough in the normal scuba pressures.
The accuracy of the gauge is another factor.
And the initial nitrox measurment, that analyzer has a bit of error to it as well.
And the temperature rise of the fill, that changes the pressures. Let it cool, did you overfill it enough to hit the target pressure once it cools off?
Oh the endless list of variables. You could over-complicate things to they never work. Or just use the above, and analyze in the end like you really should.
Indeed, the list lol. Actually, my calculator will only be for constants. It doesn't account for variabilities. I'm a beginner in the coding world, and figuring out stuff lile that and making it functional is proving to be difficult.
 
No, the pe
My idea was convert the percentage of O2 and nitrogen to PSI
For 500 PSI: 180PSI O2, 500PSI nitrogen
The remaining 2500: 525, 1975
Add both together- 705 PSI O2, 2295 PSI nitrogen
Divide by total PSI of 3000
23.5% O2 76.5% nitrogen
Idk how gas mixing works, if you can have the oxygen percentage be 24% and nitrogen 76%. That’s what I got when trying to figure this out- I feel there’s still a flaw in it. What’s the right way?
Nope, the percentages HAVE to equal 100%. So if you round 23.5 up to 24, you must likewise round 76.5 up to 77.
 

Back
Top Bottom