Monday, 19 October 2015

With the power of a thousand suns

Notably, outer space has an annoying lack of power points (at least within any reasonably reachable distance). This, of course, means that powering your spacecraft becomes a more difficult exercise than turning on your TV or recharging your phone.

As the title to my post suggests, solar power is the obvious option. But before we delve into that, let's be whimsical and take a look at traditional methods of power generation and why they don't work in space.

Steam Power

Surprisingly, our mainstream method of generating power hasn't changed much since the industrial revolution:

I literally googled 'old timey steam train"
  • Boil water
  • Water 'expands' into steam
  • Steam pressure causes a turbine to spin
  • Spinning turbine moves electrons - generates electricity
Why doesn't this work? Well for one, if you don't want your rocket to be the size of a small country, you'll want to design your system so that it can use a finite amount of water. The way that currently power plants do this is by having a fairly complex array of coolers and condensers and fancy tanks that regenerate the steam into water.  

As it turns out, once you add up all the weight of the water + regenerating technology, you end up needing a rocket the size of a small country anyway.

Even then, the way we design all the high pressure equipment needed for a steam generator relies on being surrounded by one atmosphere of pressure. Throw all of this technology into the cold vacuum of space and suddenly having a steam generator becomes an incredibly complex engineering problem. No one to date could be really be bothered looking into the problem (though if you can find a paper I stand corrected).

One final problem - this process requires a heavy spinning shaft. Now on Earth, you can brace the spinning shaft against the ground. In Space? You won't be able to brace against anything. Newton's third law means that your satellite will start to spin in the opposite direction, which is bad if you're trying to take photos or point your antenna in a particular direction.  

Combustion

Combustion engines are different. Instead of using expanding water pressure to spin a turbine, we instead explode petrol in cylinders that move pistons up and down. This spins a shaft in a dynamo and we get power. This is how diesel generators make electricity and how your car recharges its battery.


Why doesn't this work in space?

Well for one you still have a spinning shaft, so the problem of your satellite spinning out doesn't go away.

But let's say we solve that. Have you ever noticed how much a car engine vibrates? Have you ever noticed how much damping goes into engines, and yet they still vibrate and make noise? And you know how exhaust pipes on trucks judder and spit out gas? That's all excess kinetic energy. Again on Earth you can brace against the ground and add dampeners to make sure you don't go anywhere. In Space? That's a lot of force being braced by nothing. I wouldn't be so cruel as to deliver "the need to stabilise an engine block" on my Satellite motion control engineers.

Combustion also needs to operate at certain optimum temperatures. On the ground we have air coolers and cooling liquid to regulate temperature. In Space... we have no air and no non-wasteful way of keeping cooling liquid in a liquid state...

So how do you get stable electricity in space?

Radiation Poisoning

No I'm not joking, this is legitimately a solution. You get yourself some radioactive material. And you need stuff so radioactive that it heats up everything around it and you attach it to some magic electric elements, or thermocouples, that turn the excess heat into electricity. This is basically how you make a "Radioisotope Thermoelectric Generator" or "RTG".

This is actually a really popular method of generating power (as far as the term "popular" can go in modern space travel). The Cassini spacecraft (that you can thank for pretty flyby pictures of Jupiter) uses one, as does the New Horizons Spacecraft. In fact it turns out that most spacecraft that go beyond a certain distance of the Earth use one.

The same type of RTG used on New Horizons. Large, hot, radioactive column of death

Note that I said beyond a certain distance of the Earth. Why beyond? For the obvious reason - if the Satellite decides to decay its orbit and burn up in our atmosphere (which most Earth orbiting satellites will do some day), it will rain fiery radioactive carcinogenic death through the atmosphere. And that's very bad. 

For spacecraft closer to the Earth, we use...

The power of the Sun

Solar panel. Pretty simple. Get a tan, gather energy, use energy. 

Except solar panels really suck at gathering energy.

A quick survey of papers on Google put the potential energy that we could capture from the sun at about 1000 watts per square meter. For reference - that's a surface area a little larger than a 42 inch TV, generating more than 10 times the amount of power required to power the TV.  Satellites can be pretty smart with their power usage (more on this later) - so 1000 watts for a solar panel the size of a TV should be plenty for a satellite right?

Except that we can't capture all the damn energy. In fact not even close. Gallium Arsenide solar cells, the most efficient and widely used solar panels on space only capture on average 32% of this energy. Less than a third!

But what else do we have (short of putting a nuclear reactor in crashing distance of the Earth)? The answer is not much - which is why we end up having to use gigantic solar panels to generate enough energy, much like the monstrosities on the International Space Station


That said, the inefficiencies of solar panels aren't actually a huge problem as far as the Earth's orbit is concerned. It only becomes a problem when you get into deep space - hence why New Horizons is using an RTG and Rosetta had to shut down to save power for most of its life.

We're trying. It's just unfortunate that the only alternative to solar power will probably give us cancer.

Wednesday, 16 September 2015

The WiFi sucks out past Pluto

Surprisingly the basic principles that satellites, rockets and all other form of spacecraft use to communicate with Earth is not overly different from your grandad's tube radio, or the cell signal in your mobile phone. In fact, all wireless communications operate on one simple guiding principle:
Take the information you need and stuff it onto an RF carrier wave
Admittedly I have simplified a great deal in that one line, but lets unpack that statement with an example we should all know from high school - analogue FM radio (it makes me feel old that I need to specify analogue).

FM radio is fairly simple - you take a centre (carrier) frequency and increase it or decrease it in order to simulate the shape of a sound wave.

As you can see, my art skills have broadened to include complex scientific diagrams
This process is called frequency modulation (or FM, hah!). FM radio solves the problem of people not being able to effectively shout at each other over long distances. The process is (relatively) simple. You take your information (in this case sound) and you stuff it (modulate it) into an RF carrier wave (104.1MHz, or whatever radio station takes your fancy).  

The steps to send digital data using modulation schemes like this then isn't that much of leap. Digital data is literally all just 1s and 0s. Using frequency modulation, we can set some high frequency to represent a 1 and some low frequency to represent a 0. The receiver then detects shifts between high and low frequencies and turns this into a stream of bits which is all digital data is. This is called frequency shift keying, or FSK, and is the simplest form of modulating digital data so that it can be sent wirelessly. 

Thank you ezefranca and github

There are many more sophisticated and useful ways of modulating digital data but lets not get into that for now.

So... why do we encode things on RF carrier waves? Why not just send 1s and 0s directly? The reason we do this is because it allows us to reliably send that information over very long distances without having to rely on any medium. Electromagnetic waves go everywhere and can even go through many things. This means we can send data from as far away as Pluto, without having to build a huge data cable. The result are some pretty digital photos of a red loveheart that make it to the front page of Reddit. 

That is, so long as the person transmitting has decent technology and the person receiving has decent technology. And making technology decent is where some engineering magic happens.

Be strong, focus, drown out the noise


Lets say that we've gone back to pre-historic times where no one is transmitting any radio waves. You might think that if you stuck an antenna out and listened for transmissions, you'd 'hear' dead silence. Instead, you get this:

This image is from a website that sells white noise generating machines. Weird

White noise. It's everywhere. It's that static you hear when you don't have radio reception in your car. And it makes trying listening to radio waves an eternally annoying exercise. See if the radio waves you're trying to listen to are too weak, you won't be able to tell the difference between it and white noise. 

MORE POWER


Yes, if you push more power out your transmission antenna, chances are the person receiving it will hear it more clearly. The basic sound metaphor is apt - the person shouting the loudest will come through more clearly. So the stronger your signal is, the more clearly it will cut through the noise. 

There is a problem with this - direction...ness. 

My handwriting is also pretty bad
See in the above image, you'd be pumping out all your power in all possible directions. That means that only a small fraction of the power is actually received by the stick figure who's interested. Everything else is just... wasted. That's why we need

MORE FOCUS


I drew lines. Lines are simple

Using the magic of antennas we can focus our transmissions. And now we're reaching what a lot of satellites actually do. Satellite's use some antenna black magic so that we can focus our radio wave beams over a really really narrow area. 

How narrow? Well remember New Horizons? That can focus it's antenna beam width to just 0.3 degrees. Tiny right?

Time for Maths!

Pluto (which is where New Horizons is, give or take several thousand kilometres) is about 4.7 billion kilometres from Earth. After some simple trigonometry, a 0.3 degree beam width means that it's antenna has a 'footprint' about 24.6 million kilometres in diameter. For reference, Earth has a diameter of 12.5 thousand kilometers.

I tried

Earth is a tiny, tiny spec, receiving a tiny tiny fraction of the radio power that  New Horizons is pushing out.

So... uh.... what can we do now?

More...smarter?


This is where the magic becomes a truly deep, dark shade of black. We can do freaky maths stuff to the signal coming in to figure out what is noise and what isn't noise, even when the noise is really really loud. And even if the signal is still crud and you can only extract out small bits of meaningful data, there's another layer of software magic that allows for error detection and correction and request for retransmissions.

It's one of those rare occasions where we can polish a turd radio signal and make it shine.

But that is magic for another story for another day, children.

Let's end with an photo of Pluto, transmitted via radio waves from 4.7 billion km away



Isn't that a nice photo?

Sunday, 13 September 2015

A Quick Update

It's been a hectic couple of weeks in my work and research life. Only now gotten the time to sit down and think about the next blog post!

New post out (a bit late) by this week.

Saturday, 29 August 2015

Intrastellar: Why a trip to mars can't take less than 250 days

It turns out that the most efficient way to get from Earth to Mars is not a straight line. Even if we had the fuel to accelerate away from the gravitation pull of the sun in a straight line, we'd have some trouble trying to 'gracefully' rendezvous with Mars as it's travelling sideways fairly quickly in its own orbital path.
Straight up wastin' fuel
If you were NASA, you might plan out a mission to Mars with the following priorities:

  1. Reach Mars
  2. Gently touch the surface of Mars. That is, when we get to Mars we need to roughly  match it's velocity relative to the Sun (it's a little more complex but lets simplify for now).
  3. Use as little fuel as possible, given how much fuel you need just to get off the surface of the Earth.

It turns out we can use mother gravity to help us here.

Gravity - why the universe goes round


Think of the universe as a giant computer simulation (philosophers, come at me). In this simulation we can set up a bunch of rules and and apply some initial conditions. In our solar system, let's focus on gravity as our defining rule and velocity as the initial condition we can apply on any of our planets (there are others, I'll talk about them more in the postscript).

Gravity is simple - two objects of non-zero mass will accelerate toward each other according to some long and boring mathematical formula. So that means if you grab two objects, say the Sun and a space ship, they will accelerate toward each other.

Now say our system has a space ship traveling at some velocity relative to the sun and lets turn on our simulation.

Not to scale. Rockets are not as big as the sun

The space ship will start at it's current velocity but the rule of gravity means that it starts to also accelerate toward the Sun. This has the effect of stopping the space ship from moving in a straight line. It in fact starts moving in a vaguely round shape (look up conic sections if you want to see exactly what shape).

Now it turns out, this 'vaguely round shape' is actually defined by the initial velocity of the space ship. If the space ship is moving slowly at the start, it looks more circular. If the space ship is moving more quickly, that circle starts to deform into an ellipse.

My art skills are super amazing

This is where we can start to have some fun.

Lets put Mars at a circular orbit below. Now if we fiddle with our initial velocity enough we can stretch out our ellipse to intersect with the path of Mars orbit.

My drawing skills continue to improve
Congratulations! You've just mapped out a trajectory to get to Mars.

Hohmann Transfer


What we've just mapped out is actually called the Hohmann transfer orbit. It's essentially an orbit (duh) that allows us to hop between planets, or even other random orbits.

The Hohmann transfer is generally considered the method of transferring orbits that consumes the least amount of fuel. It's obvious to see why - all we do is give our spacecraft a gentle push in the right direction and gravity does the rest for us. 

Carrying out a Hohmann transfer is a deceptively simple two step process:
  1. Once our space-craft has escaped Earth's velocity, we burn our rocket engines just a little more. This accelerates us in the right direction and gives us the right velocity to enter into the orbital shape that we need. 
  2. Once we reach Mars we then do another short burn to get captured by Mars' gravitational influence. 
The only amount of fuel that we need for this (other than launch etc) is just for the two short burns. Gravity does the rest of the work for us!
Unfortunately since we are obeying the laws of physics here, we also then have to obey the formulas that define orbital period. In this case our transfer orbit will take us about 259 days to get to Mars.

But I want to get there sooner!



Then you have to use more fuel, unfortunately. There exist other methods that require delta-v (and hence more fuel) that will get you there faster. In fact, they require so much fuel that NASA can't even be bothered to talk about them until we figure out how to better use Ion propulsion (which has more bang per kg). You could always "point and shoot" but you'd have to plan your trajectory well enough to account for the orbital velocity of Mars and the gravitational effects of Earth and the Sun.

So, pack lunch. Or pack 260 lunches. I'm not a nutritionist.

Cool Links


PS: Pedantic notes

The two-body problem that I've roughly described above is actually just a teensy bit more complex than I've made it out to be. There are more rules than just gravity, and there are more initial conditions than just relative velocity (radius, position, time just to name a few). Surprisingly the amount of knowledge you need to understand the two-body problem doesn't extend far beyond high-school mathematics. If you're more interested in the equations and how everything comes out, visit Wikipedia.

Hohmann transfers are also not quite that simple. In order to get from Earth to Mars you need to align the orbits so that Mars is where you need it to be at the end of your transfer orbit. That means that you have to wait a few days in order to get your phase angle difference correct. More information in the above links on Hohmann Transfers.

Finally escaping Earth's influence and entering Mars influence are non-trivial orbital manoeuvres. Essentially once in orbit above Earth, your spacecraft needs to accelerate a certain amount so that we hit a hyperbolic escape trajectory from Earth. Then once we reach Mars we then need to 'decelerate (sort of) in order to get 'captured' into a Mars Orbit. For more information on this, read up on Trajectories and orbits

Sunday, 23 August 2015

It's not about getting high, its about going fast

My hero and god, Randall Munroe makes this point infinitely more entertaining than I ever could, but essentially getting into space is not about how high you can shoot yourself up, its about how fast you can encourage yourself to go sideways. You can spend all day firing things up in the air with whatever legal (or illegal) means you can acquire. You might even get above the 150km-above-sea-level mark and be in 'space' (or not depending on which circles you travel). But if you don't build up enough sideways speed, you're always going to fall right back down.
Sounding rockets and even balloons can get you to the edge of space
To get to space you need to first get in orbit, and to get in orbit you need to travel in a circle. Once your spacecraft starts moving in circle fast enough, the force of gravity keeps you going in a circle instead of forcing you back down to the ground.


A diagram showing orbital velocity, via aerospaceweb.com

How much speed? Well at 600km above sea level, about where the Hubble Space Telescope sits, you need to be going at 7.56 km per second, or about 27 000 km per hour. And so to accelerate the 11 tonne hubble space telescope to that kind of speed, we pretty much have to rely on rockets.


Rockets. Goddamn Rockets. 

Rockets manage to be awesome and awful all at the same time.

Rockets are cool because all controlled explosions are cool and all in all they are pretty amazing feats of engineering. Rockets suck because they're huge, they weigh more than they should and shake a crap ton.

Let's deal with size and weight, To launch a heavy spacecraft or any lump of mass, you need to burn fuel. Fuel adds mass - mass that you will need to launch with more fuel. More fuel means more mass which needs more fuel. Hopefully you see where I'm going with this.

Eventually after a little bit of algebra you come up with the Tsiolkovsky rocket equation. The equation maps delta v (a fancy term rocket scientists use to indicate how much faster you want to go) against the ratio of payload mass (that we need to work in space) and fuel mass. The graph ends up looking like something below

The rocket equation, mapping mass ratio against delta V / exhaust velocity

There are two scary things about that above graph.

Firstly - look at that curve! The more delta v you need the steeper the graph gets (trust me you need more delta V to get further into space). That means that the amount of fuel you'll need gets insane unless you're launching something really really tiny.

Secondly - the x axis maps mass ratio, not absolute mass. So if you need to send up a payload twice as large, you'll need twice as much fuel. Imagine having to double the size of your rockets to send up a 10 tonne space telescope vs what is already huge to launch a 5 tonne communications satellite.

An example

No beginner's blog would be complete without having some horrendously inaccurate back of the envelope calculations. So why not dredge up one of my old university assignments and simulate ourselves an asteroid capture.

Let's say that we want to rendezvous with an asteroid that has roughly the same orbit as Earth but is some distance away from us. Capturing asteroids is all the rage lately, so lets say we want to hit it with NASA's Asteroid Redirect Vehicle - which will weigh aproximately 16 tonnes if you include all the fuel it's carrying.

Now any rocket carrying this vehicle will need to

  • Launch into Earth Orbit
  • Escape from Earth's Orbit
  • Perform a manoeuvre to meet with the asteroid
All of these steps need (you guessed it) delta v. And as we have learned above, delta V needs lots of fuel. Now, accounting for ideal launch conditions, getting the Earth's spin and orbit around the sun to help us gain some speed, we eventually figure out that we need roughy 8km/s of delta V. And when you plug all the maths into the rocket equation and use the specs from the Atlas V user's guide (which is super easy to find btw), you end up with a little over 500 000kg of fuel.

Atlas V rocket launch

Five hundred thousand kilograms of fuel to launch something that is only 16 thousand kilograms. Fully 97 percent of the total mass of this mission is just fuel to burn to get it where it needs to be. That's not even accounting for the mass of the rocket parts like empty tanks or flight electronics. Is that not insane!?

To drive the point home, to get to space, you need to go fast. To go fast you need rockets. To go faster you need an unholy amount of fuel. Getting to space is hard, and gravity wells really suck. Aim small, slim down and conserve your weight.

Cool Links


PS: Some pedantic details

Ok so the rocket equation graph above doesn't strictly show the relationship between mass ratio and delta v. It maps mass ratio and delta v/v_e. v_e is what is known as exhaust velocity and essentially describes how efficiently your rocket turns mass of propellant into thrust. This varies - liquid and solid propellants having relatively 'bad' v_e and newer electric propulsion doing much better (I'll get into that in a later blog post). That detail aside - the graph is still pretty crazy if you consider v_e to be a constant. Getting to the point where your delta v/v_e ratio is around 3-4 is not unheard of for longer missions. So what I said above isn't completely wrong...

As for my actual rocket calculations.... they're pretty long winded and I took some liberties with estimation of exhaust velocities and getting a 'prefect' flight'. Send me a message if you want to see the full working out

Friday, 21 August 2015

Space Blog? Why?

If you're reading this particular blog post then you probably know me personally - in which case you realise that I have an irrational need to send something (or indeed many things) into space. You may also then know that I have a slightly unusual amount of practical experience in the matter, given that Australia is one of the only developed countries to not have a space agency

But let's not make any assumptions. Let me introduce myself. 

I spent all of my undergraduate time at University being involved in the BLUEsat project. During which time I realised that my lifelong goal hadn't ever changed from when I was 5 years old - I wanted to build spaceships. So I put myself to work, eventually becoming the technical lead of BLUEsat, publishing research on CubeSats and spending a stint in France studying satellite attitude control. 

So why the blog? Because I have some of my own ideas about the way Space Design should be taught. To be honest, you could read Wertz' Space Mission Analysis and Design and get a much more thorough understanding of how to launch things into space - but hopefully this blog will be more fun. To start off with I'm going to post some starter guides on the basic stuff. I'll try not to pitch it too high - high school physics/science should do. Hopefully you'll like what I'm writing enough to start doing your own research, or even head to your local university and start a major.

So, here we go.