Tuesday, May 28, 2019

What do I do? 6: Rocket nozzles

When people find out that I am doing a PhD in Chemistry, they often ask, somewhat foolishly (by those who aren't really that interested), what it is I do.  I then find myself in a position of trying perform a juggling act to find the balance between a number of things.  How in detail do they want me to go?  Where's the right place between talking over their head, and sounding like a condescending jerk.  Are they actually interested, or are they just being polite.  Based on their background, what parts will they find most interesting?  On top of that, I need to plot a coherent course through my thought process so that if they are interested, they don't get lost in the maze inside my head.

So, I've decided to write it down, and see if I can make a logical series of articles about what I do, starting with the background information that's needed, eventually ending up on what I do day to day. Today I'm going to talk about designing a laval nozzle.


3D printed cross section of the first nozzle I designed that worked


So I'm changing up from what I've been talking about in this series so far, and I'm looking at getting more into the background needed to understand what my main PhD project has been.  I want to talk about something that I spent a little more than a year of my life learning enough math and going through trial and error until I came up with something that works.  My first major project in my lab was to write a computer program that would perform the math to calculate the contour of a de Laval nozzle, which is the same type of nozzle that is used on the bottom of rocket ships.

Why is it used on the bottom of rocket ships, and why do we want it in our lab?  The answer is the same.  De Laval nozzles are designed to have a wall that shapes the cloud of gas expanding out through them into a uniform flow, all molecules in the flow going the same direction, with the same speed, pressure, and temperature.  In thermodynamics, this type of flow is called isentropic.  Having the uniform flow is useful for rocket ships, because then all of the expansion is used as thrust in the direction the ship wants to go, yielding the highest efficiency for the engine.  For our experiment, we're not so interested in the supersonic speed of the expanding gas so much as we are the cooling properties, and the uniformity of the flow after exiting the nozzle.  I'll talk more about why we care in a later post.

Designing the nozzle, despite the fact that it's a solved problem that they've been doing since the 60's, was not trivial for me.  It involved a lot of math that I hadn't really ever learned, fluid dynamics, most of which I hadn't even heard of before, and combing through old textbooks and papers trying to put together an algorithm that was only ever partially reported in any one place. I found a lot of interesting information in an old NACA paper talking about the design, that included their FORTRAN script.  (NACA is the organization that later became NASA). After months of teaching myself the math I needed to be able to solve the problem, I finished a script that calculated the core of the nozzle, or the shape that it would be if life were ideal and the gas didn't interact with the walls of the nozzle.  It looks like this.
The black line is the shape of the core of the nozzle.  The hundreds of green and red lines that are there are the "characteristics" that I calculated in order to find where that black line was.  The characteristic lines are calculated so that the mass flux (amount of mass passing through them over time) of each line is exactly the same.  By calculating those lines, then matching them so the flux is equal across all of them, I was able to find my ideal core.  All told, to find this single nozzle, I calculated something like 1.2 million points.  But since I programmed the computer to do it, it only takes about 20 seconds.

Once I had the core, I had to go back, and adjust where the wall needed to be to account for the fact that we do not in fact live in an ideal world (sorry to disappoint you).  To do that, I needed to learn even more fluid dynamics, and more thermodynamics.  But once I did that, and solved the problem, it adds another 20 seconds to my program, and gives me an adjustment to the contour that follows more or less the same shape, but slightly bigger.

When I got this final shape working, I was pretty excited.  It had been a long time coming.  And finally, it was time to have my theoretical work turned into something physical.  I 3D printed a cross section of the first nozzle (to keep on my desk to show off how awesome I am), and sent the design to the machine shop to be made out of metal.  Here's what it looks like.


Kind of hard to see.  That's why I made the cross section print.  It was amazing to finally have something I could hold in my hands that was a result of all the work I'd been doing.  The final test, to make sure that I had done everything correctly, was to actually install the nozzle in the experiment, and measure the flow at many points throughout the chamber, to test that we were seeing a uniform flow coming out that we could use in our experiment.  We have an apparatus built specifically for that, which I may talk about later.  But the payoff is that the flow does work. If you were to look at the stream going past you with the nozzle on the right, the pressure inside it looks like the gif below over the course of about 40 microseconds (we pulse it, instead of flow continually).  There are a few frames where we get really good uniform flow, which is exactly what the design goal was.

This was an extremely challenging project (mostly because I didn't know enough math when I started to be able to do it), but when I saw the final result, it was totally worth it.  And since this is a rocket nozzle, the fact that I designed and made it makes me a rocket scientist, which is a fun fact I can use in 2 truths and a lie some day.

No comments:

Post a Comment