Magnetic field · centred dipole
B(r) = B₀ (Rₑ/r)³ [3(m̂ · r̂)r̂ − m̂]
Earth's textbook equatorial surface field B₀ = 31.2 μT and mean radius Rₑ = 6,371 km. The illustrative dipole axis is tilted 11° from the orbit reference axis.
Magnetic torque & wheel momentum
τₘ = m × B · dH_w/dt = τd + τₘ
The controller requests τ* = −H⊥/τu, where H⊥ is wheel momentum perpendicular to B. It commands m = (B × τ*)/|B|², then clips the dipole magnitude to the torquer limit.
Orbit & independent check
T = 2π √(a³/μ) · H⊥(t) = H⊥(0)e⁻ᵗ⁄τᵤ
The circular orbit uses Earth's textbook gravitational parameter μ = 3.986004418 × 10¹⁴ m³/s². The check compares an isolated fixed-field RK4 run with the closed-form exponential decay.
INDEPENDENT CHECKTEXTBOOK SOLUTION
RK4 ENGINE0.01083N·m·s
ANALYTIC0.01083N·m·s
RELATIVE DIFFERENCE0.0000%at 3,600 s
Real values vs scaled
SI units and textbook Earth constants are used in the equations. Orbit period, dipole field and torques are calculated from those values. The Earth, satellite, orbit path, field lines and vector arrows are scaled for legibility, not drawn to physical size.
The spacecraft body is held inertially fixed by an ideal attitude controller. Residual disturbance torque is a constant illustrative body-frame vector; the Earth is a static centred dipole; orbit is circular. No drag, solar pressure, geomagnetic harmonics, wheel friction or attitude-control transients are included.
Illustrative educational model, not affiliated with any real institution or manufacturer.