btrettel's Nerf blog

random thoughts about the ballistics of foam darts

Blog moved to NerfHaven

Posted by btrettel on February 25, 2014

This blog has moved to NerfHaven and is now titled Nerf Engineering. That is all.

Posted in Uncategorized | Comments Off on Blog moved to NerfHaven

NY Times Magazine Interview

Posted by btrettel on August 7, 2013

I was interviewed for the New York Times Magazine about my other toy gun hobby: homemade water guns. I haven’t worked on homemade water guns for several years now, but I’ll eventually get back into the hobby.

Edit: To be clear, I am not Lonnie Johnson. He was interviewed first in the article. The section with me is at the end.

Posted in Uncategorized | Leave a Comment »

Drag coefficient of Nerf darts

Posted by btrettel on May 31, 2013

The drag coefficient tells you how much drag affects an object moving in a fluid. A higher drag coefficient means that the drag force is larger, which’ll slow down an object more. Lower drag darts will have more range and travel faster.

What’s the drag coefficient of a Nerf dart? Many tests have been done on cylinders. I’ve plotted the results of these tests below. The data comes from this paper and this book.

This is a plot as a function of fineness ratio (L/d), which is the ratio of the dart’s length to its diameter. This’ll allow the results to scale up for any size dart.

Nerf darts seem to be much closer to the flat nose curve above than the smooth nose one. Tests done by Daniel Beaver have shown that Nerf darts with a length of 1.25 inches have a drag coefficient of about 0.67.

This plot shows that darts have the least drag in the range of L/d = 1.75 to 3. The increase in drag for darts shorter than that is much steeper than the increase for longer darts. The variability also increases for shorter darts, which could reduce accuracy. Based on this information, we should make our darts about 2.5 times as long as their diameter to have low drag and good accuracy.

The curve fits I developed above use this equation:

C_\text{d} = \frac{\displaystyle C_{\text{d},0} \left(1 + a_1 (L/d)\right) + a_2 (L/d)^2}{\displaystyle 1 + a_1 (L/d) + a_3 (L/d)^2}

For the flat nose, C_{\text{d},0} = 1.104, a_1 = -0.988, a_2 = 0.402, and a_3 = 0.413. For the smooth nose, C_{\text{d},0} = 0.427, a_1 = -0.579, a_2 = 0.060, and a_3 = 0.248. C_{\text{d},0} is the drag coefficient of a cylinder with effectively zero length.

Typical darts were longer at one time. Perhaps Nerfers have slowly have figured out that shorter darts perform better. In 2004, the average Nerf dart was 2.1 inches long (L/d = 4.0). In 2008, the average dart was 1.7 inches long (L/d = 3.2). Now I’d say darts are even shorter. Daniel Beaver’s tests used darts with a fineness ratio of 2.4, which is about what I suggest based on this data.

Posted in Uncategorized | 7 Comments »

Nerf test gun

Posted by btrettel on May 23, 2013

I am developing a Nerf gun purely for test purposes. My main goal is to get consistent performance. I am using a few methods to do this: regulated pressure, reducing the effect of the speed of opening the trigger valve by piloting my QEV with another smaller QEV (that is in turn piloted by a smaller trigger valve), and using stiff aluminum barrel to reduce the effect of barrel vibrations.

The first major set of tests I want to do will examine fishtailing and dart stability. I want to determine when darts fishtail. I have some some simple theoretical analysis, but the results have been trivial: darts possibly are unstable when the center of gravity is behind the center of pressure. That doesn’t say that much. The center of pressure moves as a function of the dart velocity. It’s commonly reported that faster darts fishtail more easily. Is the movement of the center of pressure the main effect causing the instability here? Or does the speed cause other effects?

Towards this, I have done some dimensional analysis. Hopefully this analysis will help me decide how to conduct my experiment. I have determined that the important parameters are fineness ratio, Reynolds number, a dimensionless distance difference between the dart center of pressure and center of mass, a dimensionless mass, a dimensionless moment of inertia, and the fractional location of the dart center of gravity (or pressure)

Unfortunately, there is one effect which is hard to characterize: muzzle blast. If there’s some extra pressure when the dart leaves the barrel, then this pressure could knock the dart off balance. I can’t measure muzzle blast at the moment, but I know that muzzle blast should be approximately minimized when the optimal barrel length is used. Thus, the first part of my tests is to find the optimal barrel lengths for a variety of different pressures. I figure this is a good restriction as we’d all want to use the optimal barrel length anyway.

I intend to finish the test gun this weekend and do some preliminary tests to help figure out what gas chamber volume, barrel lengths, etc., are appropriate for future tests.

This likely will be the first test gun I build. I plan to use what I learn from this test gun to develop a second test gun. The second test gun will use higher precision regulators and pressure gauges.

Posted in Experiments, Pneumatics | 1 Comment »

Notes about valves and flow rates

Posted by btrettel on March 20, 2013

Comparing valves for compressed gases can be difficult for several reasons. Even if you are familiar with how valve performance is specified, you can easily make mistakes. Valve performance is specified in several different sloppy and confusing ways, almost always in non-metric units. The worst part is that valve performance can be specified in obvious ways, but people working in the industry don’t do that.

Flow rates

The confusion starts immediately with the definition of the flow rate. Rather than specifying a mass flow rate (i.e., something like g/s), most valve manufacturers instead specify a volumetric flow rate (i.e., something like m3/s). Why? I’m not entirely sure. It’s probably a combination of tradition (e.g., “that’s all I was taught”), familiarity, laziness (e.g., the flow meter gives volumetric, and they don’t want to convert), or ignorance (e.g., they don’t realize it matters). I suspect the practice was held over from liquid valve flow, where the fluid density doesn’t vary much and the volumetric flow rate is just proportional to the mass flow rate.

This is problematic because volume can vary considerably over a range of temperatures/densities for the same mass flow rate. To use a volumetric flow rate (by converting it to a mass flow rate to use in a mass conservation equation) requires an engineer to know the temperature and pressure at which it applies.

With this in mind, some engineers developed the unit called “standard cubic feet per minute” or SCFM for short where the temperature and pressure are supposed to be standard, i.e., known. Unfortunately, there is no standard, though usually the reference pressure is 1 atm and the reference temperature is 70F.

Unfortunately, some companies simply treat SCFM as if it were the actual measured flow rate! It’s as if they don’t understand what the point of the standardization was or even that the S stands for standard. Clippard is one of these companies (I asked by email. Their reference pressure is the pressure they did the test at and their reference temperature is 70F.). If you are using a company’s valve, I suggest asking what their reference conditions are. If they don’t know, then don’t assume anything about their products. I’ve found that some companies are completely ignorant about the performance of their products. Some companies have no idea where the numbers they print on their spec sheets come from. They sometimes don’t even know the units to the numbers. This is extremely sloppy and it’s rather scary that a large number of engineers work this way.

The relationship between volumetric flow rate and mass flow rate is \dot{m} = \rho Q where \dot{m} is the mass flow rate, \rho is the mass density, and Q is the volumetric flow rate.

We can find \rho with the ideal gas law (\displaystyle P = \rho \frac{\overline{R}}{M} T) and convert between volumetric and mass flow rates. P is the pressure (in absolute units), T is the temperature (again, absolute temperature), \overline{R} is the universal gas constant, and M is the molecular mass of the gas (for us this is air). So, rearranging the equation above yields \displaystyle \rho = \frac{P M}{\overline{R} T}.

The standard uses the standard temperature and pressure. So, for example, for convert from a volumetric flow rate of 20 SCFM to a mass flow rate in g/s, we can do the following:

\displaystyle \dot{m} = \rho Q = \frac{P_\text{s} M Q}{\overline{R} T_\text{s}}
\displaystyle = \frac{101325~\text{Pa} \cdot 28.97~\text{g/mol} \cdot 20~\text{ft}^3\text{/min}}{8.3145~\text{J/(mol K)} \cdot 293.15~\text{K}} \left(\frac{3.28~\text{ft}}{\text{m}}\right)^3 \frac{1~\text{min}}{60~\text{s}} = 11.4~\text{g/s}

Valve flow coefficients and flow models

Often valve performance is specified with a valve flow coefficient. In the US, this usually is called C_\text{v} where v refers to valve. (This is not the heat capacity at constant volume. Again, this is another confusing point.)

Like the valve flow rate, C_\text{v} is defined in terms of liquid, not gas flows. C_\text{v} is defined as the volumetric flow rate in gallons per minute (GPM) for a pressure drop of 1 psi. There are some mainly empirical equations (scroll down to the section “Flow Coefficient – Cv – for Air and other Gases”) that can be used to calculate the volumetric flow rate (and mass flow rate from there). The “derivation” of this model is available in this book.

For more information on this subject, I suggest reading my notes about Nerf engineering, which contain many references to other materials. In particular, I detail a more accurate empirical valve model that can be used in computer simulations.

Accuracy of manufacturer data

You should always question the accuracy of valve manufacturer data (assuming that you understand what it means, which, as I’ve explained, isn’t always clear). In my experience, the flow rates given seem to be optimistic. It’s not easy to quantify how optimistic they are, but you should keep this in mind.

An aside

I could insert a long rant about how some engineers don’t understand what they are doing and treat some equations like magic black boxes which give them “the answer”. They don’t understand the assumptions or development of the equation. They don’t try to improve the equation to be more general, more useful, or less confusing, e.g., by eliminating confusing “standard” volumetric flow rates and moving to obvious mass flow rates. This practice creates a lot of confusion for people who do know what they are doing. If you are in engineering, please, don’t be one of these folks.

Posted in Interior ballistics, Math, Misconceptions, Pneumatics | Comments Off on Notes about valves and flow rates

Nerf Engineering notes

Posted by btrettel on July 8, 2012

I’ve started organizing my writings and thoughts on Nerf ballistics into a set of notes (link corrected). Readers of my blog might be interested.

For the moment my notes are very rough and incomplete. I’ll update the PDF as I make changes. I’d appreciate any feedback, especially corrections and ideas.

Edit (2012-10-02): I’ve removed the notes because they need a lot of work before I’m comfortable distributing them.

Edit (2013-01-19): I’ve readded the notes as I’ve revised them somewhat. They are still a work in progress.

Posted in Design, Exterior ballistics, Interior ballistics, Math, Pneumatics, Safety, Springers, Terminal ballistics | 2 Comments »

Goals for the end of 2011

Posted by btrettel on November 19, 2011

I’ve been too busy to accomplish what I want to in this hobby, but I do have a few plans for the end of this year:

  • I will write a NerfHaven article about misconceptions in Nerf physics. I have already written a few things along these lines. The goal here is to make a summary of many misconceptions.
  • I will write another NerfHaven article about basic theoretical ballistic engineering. The point here is to offer those with a high-school algebra background some equations they can use to design Nerf (or even potato) guns. Whenever possible I’ll try to offer empirical data to compare to and calibrate these models.
  • I will buy a drill press, a vise, and some other tools so that I will have my own machine shop.

Early next year I hope to finish an initial version of my Lagrangian gas gun simulation (LGGS). This is mean mostly for spud gun work, but I’ll use it for Nerf too.

I also have some plans for FANG 4, but I will not start FANG 4 until after LGGS is functional. This is after when I had hoped to finish FANG 4, but that’s fine. I complete things as I can. I have already detailed some of my plans for FANG 4 on the Nerf Engineering forum.

Posted in Uncategorized | 3 Comments »

Improving accuracy and precision

Posted by btrettel on September 11, 2011

I wrote a long post at NerfHaven on improving accuracy and precision of guns back in April.

Posted in Uncategorized | Leave a Comment »

I’m not entering Ryan’s contest

Posted by btrettel on July 2, 2011

To answer a question that I’m sure will be asked, I will not be entering Ryan’s contest. I do not have easy access to anything resembling a machine shop or much money to buy components with. This is unfortunate.

I have, however, explained my ideas elsewhere. Others are free to implement these ideas as they please.

Posted in Uncategorized | Leave a Comment »

Solving the point mass model of a dart’s trajectory, part two

Posted by btrettel on June 12, 2011

I wrote a technical paper about solving these equations and made some conclusions for design. I have fully solved the flat-fire case given that the x velocity stays above a certain number (and it generally will).

(Original link broken: My newer notes contain that paper and more.)

The take-home message is pretty simple: Keep kinetic energy constant. If you reduce the drag coefficient multiplied by the cross-sectional area, you’ll increase range. If you reduce the muzzle velocity divided by the dart mass, you’ll increase range.

The latter conclusion is not too surprising to me as I already knew dart mass had an effect like that, but to quantify the effect is very nice.

I’d happily accept corrections, comments, questions, suggestions, and whatever else.

Posted in Exterior ballistics, Math | 2 Comments »