Mars Reentry Simulation
Quick Link --- Start
I've made a simulation of reentry and landing with a spaceship at least resembling the starship - a spaceX space ship that I think
was designed to at least be compatible with a mars landing, and might plausibly land on mars within a decade.
As with all simulations, parts of this are inaccurate:
|Atmosphere Density||The atmosphere density has a simple but realistic exponential profile with a realistic scale height of 11km. |
|Aerodynamics||I've used a simple formula (following this:
Drag Coefficinent) for air friction that is applicable but approximate for simple
shapes, but ignores mach effects. Overall, the drag is probably only correct to maybe a factor of 3 or thereabouts. The air friction in the
forward, vertical and lateral directions is different, so the spaceship does have lift --- you can fly it like a plane when the speed is high
and the altitude is low.
|Attitude Control||Very simple here, no aerodynamic control, unlimited RCS control.|
|Atmospheric Heating||Very approximate. I've used a v^3 formula, which is roughly the right functional form, I think, and
callibrated it so that a clumsy reentry causes damage. It also differentiates between the heat shield, the body of the spaceship, and the engines.
If you try to reenter engine first, your engines will be damaged.|
|Mars heights||I've used a real mars height map, but it's been compressed lossily to 20Mb, and perlin noise and other fictional features have been added.
Large scale structures are real.|
|Ship mass and size||This ship is 40m long, 9m diameter and 100 tons dry mass, with 1000 tons of fuel. This is vaguely plausible.|
|Landing strength||I've calibrated the strength of the spaceship so that if you land it well, it doesn't break. I haven't set it up to
known parameters from any spaceship.|
|Mars rotation||The sun goes round mars, mars doesn't rotate.|
|Initial conditions||The initial velocity is broadly realistic.|
|Mars colouring||The colour of the planet is just a function of the height. I felt that this shows features more clearly
without changing the simulation too negatively.|
- w,a,s,d,q,e --- ship attitude control.
- 1,2,3,4,5,6 --- time warp. 1=real time. 2 = 3x time, 3=10x time, etc.
- space --- fire thrusters.
Land somewhere, and then relaunch and achieve a circular orbit. It doesn't tell you when you have succeeded.
Any red "damage" listed alongside the info bar at the bottom left means that the mission failed - the spaceship will not return to Earth.
You need to use the spaceship's lift to get the altitude down to about 25km - 35km - any lower risks excessive heating, and higher risks leaving mars.
Then you can use the lift to control flight until the speed is bled off. This is also a period in which you can choose a landing point.
Then when you are going just a few hundred metres per second, you can point the spaceship against its direction of travel and use the thrusters
to reduce speed, then point it upwards and use the thruster get a gentle landing. For most of this, the navball in the bottom left
is very useful, since it shows your direction (both pointing and travel) and the up, down and horizon vectors.
If this is very difficult, I would recommend trying KSP as a way to get more practice landing.
You can fly down the Valles Marineris by moving the trajectory slightly to the south (using the spaceship's lift)
---> Start <---
An interactive simulation showing how nerves travel to and down muscles, and how this gets picked up by EMG sensors.
This presents python code to draw snowflakes, simulating a diffusion process with Fourier transforms.
© Hugo2015. Session @sessionNumber