In vacuum a spacecraft can only lose heat by radiating it away. Here you balance sunlight, light reflected by the planet (albedo), the planet's own infrared glow and internal electronics against the spacecraft's thermal emission. Then you watch the temperature swing through each orbit, in and out of eclipse. Your job: keep a battery between its limits.
Set the environment and the spacecraft. The animation shows the orbit seen from above the Sun–planet line. The plot shows temperature through one full orbit after the spacecraft has settled into a repeating cycle.
Model assumptions (state these in your write-up): isothermal spacecraft (one temperature, no internal gradients); circular orbit; cylindrical planet shadow; albedo input ∝ cosine of the solar zenith angle below the spacecraft; planet IR constant around the orbit; cube keeps one face on the Sun and one on nadir; heat capacity of aluminum (900 J kg⁻¹ K⁻¹).
Choose Deep space, 1 AU. With no planet the temperature is steady, and it depends only on α/ε and geometry.
Steady state, sunlight only: α S A_sun + Q_int = ε σ T⁴ A_tot ⇒ T = [(α S A_sun + Q_int) / (ε σ A_tot)]^¼. Sphere: A_sun/A_tot = ¼. Cube with one face on the Sun: A_sun/A_tot = ⅙.
Pick CubeSat, 500 km LEO, then raise the altitude slowly to GEO (35,786 km).
Orbit-average absorbed heat by source (W). The bars update as you change the orbit.
View factor from a flat nadir face to the planet: F = (R/(R+h))². For a sphere: F = ½[1 − √(1 − (R/(R+h))²)].
Albedo: Q_alb = α · a · S · F · A_p · cos(ζ), where ζ is the solar zenith angle below the spacecraft. IR: Q_IR = ε · q_IR · F · A_p (IR absorptivity = ε by Kirchhoff's law).
Back at 500 km, sweep β from 0° to 90°. Watch the eclipse shrink, then vanish.
f_e = (1/π) · arccos[ √(h² + 2Rh) / ((R+h) cos β) ] when |β| < β*, with β* = arcsin(R/(R+h)); otherwise f_e = 0.
Keep the orbit fixed and drag the mass from 0.5 kg to 50 kg. The steady-state numbers don't change, but the swing does.
Transient balance: m c dT/dt = Q_sun(t) + Q_alb(t) + Q_IR + Q_int − ε σ A_tot T⁴, stepped forward in time until the orbit repeats.
Most presets start outside the battery limits on purpose: an untuned design. Pick one. Using only surface finish (α, ε), internal power (heaters count) and mass, keep the battery within limits through the whole orbit. Then move the same design to GEO and to Mars orbit. Does it still work?