How To Simulate A Rocket Flight
Understanding Aerospace Simulation
When first trying to simulate rockets I made a lot of mistakes. Numerical simulation is a little bit of an esoteric field. The very basics are often covered in technical and hard science undergraduate courses, however this usually won’t cover practical skills needed to deal with real-world issues one would encounter in a complex problem like rocket flight.
Modern aerospace simulation is the culmination of over 60 years of knowledge and technique.
Table of Contents:
- Naïve Approach 1: Simulate Absolutely Everything
- Naïve Approach 2: CD = 0.8
- A Middle Ground
- Equations Of Motion (Solvers)
- How The Pros Do It
Naïve Approach 1: Simulate Absolutely Everything
Pretend we know what every molecule in the universe is doing.
Often, when I think of really high fidelity simulations I assume that the computer is really simulating every possible thing at once. Every bit of air moving over the vehicle, the interaction of fuel and oxidiser molecules in the engine, subtle shifting and bending of very single bolt and fin panel of the rocket body.
In fact it’s pretty tempting to try and apply this method, after all there already exists fluid dynamics simulations that will compute the flow of air in 3 dimensions. They look really cool too. And most good computer-aided design packages include programs to compute the theoretical strength of any part. So why is it not done this way?
It’s too hard! No, really. The fluid dynamics and mechanical simulations currently take hours or even days on a reasonably powerful machine, just for simulating one single instant in time! And since each future step depends on the previous already being known you can’t make this a parallel computation where you throw lots of cores at it in a big data center.
Taking this approach is impractical not only because of the complexity of actually combining all the different algorithms, but on even a very high end computer a full simulation might take several centuries to complete.
Naïve Approach 2: CD = 0.8
Everything is a sphere.
The opposite solution is to ignore most of the interesting physics that goes on during a launch and get a “back of the envelope” simulation. This is the official “Undergraduate Physics Major Solution”™ and, though it probably won’t get you to orbit, it is actually quite useful in many situations!
When simplifying it’s worth asking what is worth simulating, and what isn’t.
A Middle Ground
Simplify aerodynamics, enough, but not too much.
Equations Of Motion (Solvers)
How to run a sim.
The most popular.
Gotchya’s: Energy loss.
How The Pros Do It
What Would NASA Do?
Divide And Conquer
|Concept to include in simulation||Model||Source|
|Aerodynamics (lift/drag)||Modeling||Barroman, wind tunnel|
|Mass model||Modeling||Open Rocket Document|
|Instruments||Gaussian noise + bias||JSBSim|