Dimensionless ideal lumped parameter pneumatic gun model
This page will detail the development of a simplified model of the interior ballistics of a low-speed pneumatic gun (like a Nerf gun).
(What follows is largely a verbatim copy of some notes I made back in April to June 2010 - btrettel)
To-do
- Add parts that distinguish between static and dynamic friction. As described, this model has no static friction.
- Change names of sections such that there is no duplication.
- Switch to γ instead of k.
- Add more explanations and fill in missing parts.
Assumptions
- Calorically perfect gas - Ideal gas model with constant specific heats. This has proved to be adequate.
- Isentropic - All heat transfer and boundary layer effects (like friction on the gas) are ignored. The entropy remains constant as the gas moves through the valve. These effects have ignored with very acceptable results in simulations like GGDT and BAGS.
- The gas has only thermal energy - Kinetic energy is assumed to be negligible (As is gravitational, etc., but kinetic is the only major component neglected). This may or may not be a good approximation, but it simplifies the equations substantially. This assumption also means that chambrage (i.e. difference in cross-sectional area of gas chamber and barrel) and chamber/barrel fineness ratio effects are ignored.
- The gas has no momentum - Or at least it has no momentum when I want to make this simplifying assumption. This is necessary if we don't want to make any assumptions about the velocity distribution in the barrel. It's also reasonably accurate unless the projectile weight is approximately within an order of magnitude of the total gas weight.
- The Mach number is low.
- Can treat some stagnation temperatures and pressures as the normal temperatures and pressures
- Pressures equalize instantaneously leading to the...
- Pressure, temperature, and density can be treated as lumped parameters - This is appropriate for low Mach numbers because the pressure, temperature, and density will not depend greatly on the location in each section of the gun.
- Valve is assumed to not store any gas (has zero volume)
- No leaks are present (including leaks around the projectile)
- On the atmospheric side of the barrel, the pressure, density, and temperature are atmospheric
- The gas never changes phase.
Labeled diagram
Variables
Derivation of equations
Chamber mass conservation (1)
Chamber energy conservation (2)
Assuming the gas has no kinetic energy, the total energy of the chamber gas can be written very easily.
Barrel mass conservation (3)
Barrel energy conservation (4)
Assuming the gas has no kinetic energy, the total energy of the chamber gas can be written very easily.
Projectile equation of motion (5)
If the mass of the projectile is far higher than the mass of the air (
or so) then the mass of the air can be fully neglected from the analysis.
Simple dynamic pressure terms from the Bernoulli equation are used. This can be justified by using the Reynolds transport theorem applied to momentum conservation and dropping the integral terms (as the gas has negligible mass).
The equation below can be derived directly with Newton's second law.
Valve mass flow rate (6)
The valve mass flow rate equations from Fluid Power Control are used[1] with a few modifications. These equations treat the valve as an orifice with a discharge coefficient to account for inefficiencies.
If greater accuracy is desired, empirical values of
can be used, along with modified equations to account for a throat Mach number other than 1.
Cd - discharge coefficient (dimensionless)
Aref - reference area [L2] - Ideally, this is the minimum cross sectional area of the flow path through the valve, however, that area is not always easy to find. For this model Aref = Ab, where Ab is the cross sectional area of the barrel.
Pu - upstream stagnation pressure [FL − 2]
Pd - downstream pressure [FL − 2]
Tu - upstream stagnation temperature [T]
Pu and Tu are assumed to be equal to the "normal" pressures and temperatures, respectively. This is accurate at low Mach numbers.
k - ratio of specific heats - 1.4 for air
The function
determines whether the velocity in the valve is choked. Choked flow occurs when the downstream pressure drops below a certain critical value. Below this value the velocity of the flow through the valve is limited to the speed of sound. This means that the upstream side of the valve is not aware of the pressure on the downstream side; the information can only travel at the speed of sound up the flow, and the flow is at that speed, so at best the information remains stationary. At pressure ratios (across the valve) that are below the critical pressure ratio
, the velocity is independent of the pressure ratio.
A simple approximation for the valve opening time is used.
This makes the flow coefficient linearly increase until the valve is completely open.
More complicated equations would model the dynamics of the valve; this is not necessary for this relatively simple model.
Non-dimensionalization of equations
Defining some initial dimensionless parameters
Ideal gas law
Substitute in ρ, T, P...
Note that
. Substitute this in for Patm.
Non-dimensional time
We need to develop a non-dimensional time that simplifies the other equations. A few different possibilities were tested. The one below works, and why will be demonstrated as it is derived from a variation of (1).
Note that the u subscript refers to upstream conditions. Here upstream refers to the gas chamber.
Physically, this time is proportional to the time constant or rise time of the gas chamber when the flow is choked.
Valve mass flow rate (6)
A reference mass is defined as the total mass in the gas chamber before pressurization.
The following will be useful elsewhere.
Chamber mass conservation (1)
Chamber energy conservation (2)
The last bit of the following is due to the non-dimensionalized ideal gas law.
The parameters of the sgn function can be non-dimensionalized by chancing to the *ed variables because the only important thing is that the parameters have the same sign.
Barrel mass conservation (3)
Barrel energy conservation (4)
Projectile equation of motion (5)
For the energy equation we must also calculate the force that the pressurized barrel gas exerts on the projectile. As this is similar to the EOM, it will be put here.
Identification of dimensionless parameters
Chamber-to-barrel ratio
Dimensionless projectile mass
Dimensionless dead volume
Dimensionless equivalent pressure of friction
Ratio of specific heats
Final non-dimensionalized equations
Valve mass flow rate (6)
Chamber mass conservation (1)
Chamber energy conservation (2)
Barrel mass conservation (3)
Barrel energy conservation (4)
Projectile equation of motion (5)
Conversion of ODEs into finite difference equations
This is a system of ODEs. All of the ODEs are non-linear. There is no known analytical solution. These equations must be solved numerically. Below the equations will be converted into finite difference equations (via the Euler method) and rearranged to solve explicitly for a variable.
Chamber mass conservation (1)
Chamber energy conservation (2)
Barrel mass conservation (3)
Barrel energy conservation (4)
Projectile equation of motion (5)
Valve mass flow rate (6)
Numerical solution of these equations
Regressions
Comparisons against empirical data
Footnotes
- ↑ John F. Blackburn, Gerhard Reethof, and J. Lowen Shearer, eds., Fluid Power Control (Cambridge, Mass.: Technology Press of M.I.T., 1960). 216