Page 1 of 1
GGDT Help (Divide by zero)
Posted: Thu Nov 26, 2009 2:48 pm
by julktyl
I'm trying to use GGDT to optimize the chamber volume to a fixed barrel length of 12" but every time I hit optimize it gives me an error that says "Run time error '11': Division by zero." I tried the fixed chamber and fixed length options and those both work fine but the fixed barrel option doesn't. Any suggestions?
Here is a screen shot of my input. There might be something wrong but I don't know what it could be. Maybe someone could try running the data for me to see what they come up with.
Posted: Thu Nov 26, 2009 3:08 pm
by POLAND_SPUD
dwell time can't be 0
Posted: Thu Nov 26, 2009 3:50 pm
by julktyl
Ok, I changed the dwell volume to 100ms and it gives the same error.
Posted: Thu Nov 26, 2009 5:16 pm
by POLAND_SPUD
ohh now I am lost...it did work for me with a couple of designs but you're right it does crash... if you get rid of all zeros from data it doesn't crash always but some time it does
so far I couldn't get it to crash with 'chamber/barrel seal.' types of valves I've tried about 20 different designs... try to model your design using one of those valves
it might be that the 'generic valve' causes it to crash... I recall D_hall saying that's this function is not the best implemented... I wonder what he will tell about this
ohh btw... dwell time is, IIRC, the amount of time that the valve stays open
Posted: Thu Nov 26, 2009 6:15 pm
by Ragnarok
I think the problem may be the zero dead volume.
Try setting it to an arbitrarily low value instead of zero.
Posted: Thu Nov 26, 2009 6:22 pm
by POLAND_SPUD
I tried to get rid of all zeros but they are not the problem... it seems that 'generic valve' is the problem here