I wrote a rough PDF on how BAGS 0.9 works. Sorry for making a PDF, but I don't have time to convert my word processor document to a webpage at the moment. Note that this explains BAGS 0.9 and not the newer SI version.
The simulation essentially is a loop that starts with the projectile in its initial position and ends when the projectile leaves the barrel. The loop approximates the solutions to some ordinary differential equations. Right now I'm using the first order Euler method with a very small step size for simplicity.
The loop goes like this:
At the moment I use an equation for flow through a control valve. The one I'm using is described on this page. I know nothing about what assumptions this equation makes. I suspect my use of a simplified equation like this makes my model inaccurate at high pressures and high velocities. This equation will suffice until I read more about compressible flow.
Most of the remainder of the math uses Newtonian mechanics, the ideal gas law, and the Reynolds Transport Theorem neglecting effects of the gas' kinetic energy.
There are no comments yet.
©2007 - 2010 Ben Trettel
Last modified on 2009-05-01 10:25:00.