HGDT 0.5 online
One thing that i noticed is that you cant use a comma , you have to use a point when you enter the numbers.
What do you think of adding a ignition calculator, where you enter the electrode gap and it takes the pressure and number of gaps to calculate the voltage needed?
What do you think of adding a ignition calculator, where you enter the electrode gap and it takes the pressure and number of gaps to calculate the voltage needed?
Push to test... Release to detonate.
- D_Hall
- Staff Sergeant 5
- Posts: 1924
- Joined: Thu Feb 07, 2008 7:37 pm
- Location: SoCal
- Has thanked: 8 times
- Been thanked: 44 times
Blame Visual Basic. That's not something I've gotten my fingers messy with. Well, OK, in the past I tried to, but I think I did more harm than good so I've backed off and let VB handle all the parsing.Larda wrote:One thing that i noticed is that you cant use a comma , you have to use a point when you enter the numbers.
Dunno. Never really thought about it before.What do you think of adding a ignition calculator, where you enter the electrode gap and it takes the pressure and number of gaps to calculate the voltage needed?
Ok, then maybe you should change so the program doesn't use comma when you chose (cm) instead of (in).D_Hall wrote: Blame Visual Basic. That's not something I've gotten my fingers messy with. Well, OK, in the past I tried to, but I think I did more harm than good so I've backed off and let VB handle all the parsing.
If you want to add the ignition calculator here is the calculation:
Code: Select all
V = 4.3 + 136 × (p / T) + 324 × (p / T) × Dg
# V = voltage potential (kV)
# p = absolute pressure in Bar
# T = gas temperature (Kelvin)
# Dg = electrode gap in mm
Push to test... Release to detonate.
- D_Hall
- Staff Sergeant 5
- Posts: 1924
- Joined: Thu Feb 07, 2008 7:37 pm
- Location: SoCal
- Has thanked: 8 times
- Been thanked: 44 times
Huh?Larda wrote:Ok, then maybe you should change so the program doesn't use comma when you chose (cm) instead of (in).
Is it changing? If so, I have absolutely ZERO idea what is going on. I've NEVER tried to change such things midstream.
Got an arc energy result in there somewhere? I mean, the arc will HAVE to have a certain energy density to result in ignition. If it's gonna be done, it might as well be done right.If you want to add the ignition calculator here is the calculation:Code: Select all
V = 4.3 + 136 × (p / T) + 324 × (p / T) × Dg # V = voltage potential (kV) # p = absolute pressure in Bar # T = gas temperature (Kelvin) # Dg = electrode gap in mm
Here is a few screenshots.Huh?
Is it changing? If so, I have absolutely ZERO idea what is going on. I've NEVER tried to change such things midstream.
The first is when i start the program, then i change it all to metric , after that i can remove all the decimals without affecting the result.
I found some numbers here, locks like the minimum ignition energy for propane/air is 0,26mjGot an arc energy result in there somewhere? I mean, the arc will HAVE to have a certain energy density to result in ignition. If it's gonna be done, it might as well be done right.
http://yarchive.net/chem/ignition_energy.html
Edit: I haven't found how the energy needed for ignition is affected by the pressure yet.
- Attachments
-
- In metric with the decimals removed.
- HGDT0.5-4.PNG (31.67 KiB) Viewed 5183 times
-
- In metric.
- HGDT0.5-3.PNG (32.21 KiB) Viewed 5183 times
-
- Configurations.
- HGDT0.5-2.PNG (7.64 KiB) Viewed 5183 times
-
- HGDT at startup.
- HGDT0.5-1.PNG (32.16 KiB) Viewed 5183 times
Push to test... Release to detonate.
- D_Hall
- Staff Sergeant 5
- Posts: 1924
- Joined: Thu Feb 07, 2008 7:37 pm
- Location: SoCal
- Has thanked: 8 times
- Been thanked: 44 times
OK, based on the progression of screen shots it looks like....
1) Since you live overseas, you've got your computer set up to do the whole comma thing (where we use periods).
2) In some initialization stuff I assign some text values to some blocks. Those values are being inserted with periods (ie, as text, just the way I specified).
3) VB tries to deal with commas, but since there are some periods showing up... Well, perhaps some things are getting screwed up.
So what I've done: I just went in and reassigned some of those text blocks as numerical inputs. There's some type conversions and such... In any event, I've compiled a new version and uploaded it to the site. NOT in the .zip file, mind you. JUST in the "updated executable" location.
Can you give it a whirl and see what it does?
1) Since you live overseas, you've got your computer set up to do the whole comma thing (where we use periods).
2) In some initialization stuff I assign some text values to some blocks. Those values are being inserted with periods (ie, as text, just the way I specified).
3) VB tries to deal with commas, but since there are some periods showing up... Well, perhaps some things are getting screwed up.
So what I've done: I just went in and reassigned some of those text blocks as numerical inputs. There's some type conversions and such... In any event, I've compiled a new version and uploaded it to the site. NOT in the .zip file, mind you. JUST in the "updated executable" location.
Can you give it a whirl and see what it does?
- D_Hall
- Staff Sergeant 5
- Posts: 1924
- Joined: Thu Feb 07, 2008 7:37 pm
- Location: SoCal
- Has thanked: 8 times
- Been thanked: 44 times
Good news: I know what the problem is.
Bad news: I'm not sure how to fix it without potentially causing other problems.
What's happening... Visual Basic is screwing up. When it sees "0,05" it stops at the comma. It just sees the leading 0. Result? Division by 0.
Bad news: I'm not sure how to fix it without potentially causing other problems.
What's happening... Visual Basic is screwing up. When it sees "0,05" it stops at the comma. It just sees the leading 0. Result? Division by 0.
Isn't there a way to make VB recognize and use the regional settings within Windows for its decimal style? I would think so, but if not, you may have to just do some string checking in the fields for commas before the calculation and accommodate from there.D_Hall wrote:Good news: I know what the problem is.
Bad news: I'm not sure how to fix it without potentially causing other problems.
What's happening... Visual Basic is screwing up. When it sees "0,05" it stops at the comma. It just sees the leading 0. Result? Division by 0.
Edit: Sorry, looks like you are all over the regional settings thing.