Skip to content
CubeTwin

Documentation · Orbital mechanics

LEO orbit, Sun direction, beta angle and eclipse

Where a CubeSat is, where the Sun is, and whether Earth blocks the Sun: three small models give the geometry that every power and thermal calculation in CubeTwin starts from. This page states their equations, the reference orbit and the numbers the engine computes for it.

Implemented

  • Circular two-body orbit in closed form
  • Sun direction: USNO ephemeris mode or a fixed β-angle mode
  • Cylindrical Earth shadow with eclipse entry and exit located to 1 ms
  • Artificial eclipse override, labelled as such
  • Orbit view in the 3D platform

Planned

  • Numerical orbit with J2 nodal regression (L2/L3), so β drifts realistically over the year
  • Eccentric orbits, drag
  • Penumbra
Reference orbit
circular, 500 km altitude, 51.6° inclination
Orbital period
94.62 min (engine)
Orbital speed
7.61 km/s
Longest eclipse
35.75 min per orbit at β = 0°, 37.8 % of the orbit
No eclipse above
|β| ≥ 68.02° at 500 km
CubeTwin orbit view: Earth with the CT-REF-3U orbit track, the spacecraft position and the eclipse arc computed by the cylindrical-shadow model.
Orbit view of the 500 km reference orbit with sunlight and eclipse computed by the CubeTwin engine. Earth imagery: NASA.

Definition

A low Earth orbit (LEO) is an orbit below about 2000 km altitude. CubeTwin's L1 orbit is a circular two-body orbit: Earth is a point mass (a sphere for shadow purposes), there is no drag, no J2 and no third body, and the orbit plane stays fixed in inertial space.

The beta angle β is the angle between the Sun direction and the orbit plane. At β = 0° the Sun lies in the orbit plane and the eclipse is longest; as |β| grows the spacecraft passes further from Earth's shadow, until above a critical β there is no eclipse at all.

An eclipse is the part of the orbit inside Earth's shadow. CubeTwin uses a cylindrical umbra of Earth's radius along the Sun line, with no penumbra.

Engineering purpose

Orbit geometry sets the two numbers that size a CubeSat's power system: how long the spacecraft is in sunlight to recharge, and how long it must survive on the battery in eclipse. It also sets how the incidence angle on each face changes around the orbit, which drives solar power and absorbed heat.

Hardware architecture and components

No hardware: orbit, Sun and shadow are the environment. The spacecraft's attitude is defined relative to this geometry (Sun-pointing, nadir-pointing, inertial).

Physical principles

Newtonian two-body gravity gives a circular orbit with constant speed v=μ/av = \sqrt{\mu/a}. The Sun's apparent motion is computed from the U.S. Naval Observatory's approximate solar coordinates (about one arcminute). A point is in Earth's cylindrical shadow when it is on the night side and closer to the Earth–Sun line than Earth's radius.

Mathematical model and units

Orbit. With a=RE+ha = R_E + h, mean motion n=μ/a3n = \sqrt{\mu/a^3} and argument of latitude u(t)=u0+ntu(t) = u_0 + n t:

T=2πa3/μT = 2\pi\sqrt{a^3/\mu}
r=a[cos⁡Ωcos⁡u−sin⁡Ωsin⁡ucos⁡isin⁡Ωcos⁡u+cos⁡Ωsin⁡ucos⁡isin⁡usin⁡i],h^=[sin⁡Ωsin⁡i−cos⁡Ωsin⁡icos⁡i]\mathbf r = a\begin{bmatrix}\cos\Omega\cos u - \sin\Omega\sin u\cos i\\ \sin\Omega\cos u + \cos\Omega\sin u\cos i\\ \sin u\sin i\end{bmatrix},\qquad \hat h = \begin{bmatrix}\sin\Omega\sin i\\ -\cos\Omega\sin i\\ \cos i\end{bmatrix}

Sun, β mode. With the ascending-node direction P^=(cos⁡Ω,sin⁡Ω,0)\hat P = (\cos\Omega, \sin\Omega, 0): s^=cos⁡β P^+sin⁡β h^\hat s = \cos\beta\,\hat P + \sin\beta\,\hat h, constant in time. Ephemeris mode uses the USNO series with D=JD−2451545.0D = JD - 2451545.0:

g=357.529∘+0.98560028∘D,q=280.459∘+0.98564736∘D,L=q+1.915∘sin⁡g+0.020∘sin⁡2gg = 357.529^\circ + 0.98560028^\circ D,\quad q = 280.459^\circ + 0.98564736^\circ D,\quad L = q + 1.915^\circ\sin g + 0.020^\circ\sin 2g
s^=(cos⁡L, cos⁡εsin⁡L, sin⁡εsin⁡L),sin⁡β=s^⋅h^\hat s = (\cos L,\ \cos\varepsilon\sin L,\ \sin\varepsilon\sin L),\qquad \sin\beta = \hat s\cdot\hat h

Shadow. In shadow when r⋅s^<0\mathbf r\cdot\hat s < 0 and ∣r−(r⋅s^)s^∣<RE|\mathbf r - (\mathbf r\cdot\hat s)\hat s| < R_E. For a circular orbit this gives the eclipse fraction in closed form, derived in the specification:

f=1πarccos⁡ ⁣(h2+2REhacos⁡β),no eclipse when ∣β∣≥β∗=arcsin⁡REaf = \frac{1}{\pi}\arccos\!\left(\frac{\sqrt{h^2 + 2R_E h}}{a\cos\beta}\right),\qquad \text{no eclipse when } |\beta| \ge \beta^* = \arcsin\frac{R_E}{a}
SymbolMeaningUnit
μ\muEarth's gravitational parameter, 3.986004418 × 10¹⁴m³/s²
RER_EEarth radius in the spherical model, 6378137 (WGS 84 equatorial radius)m
h, ah,\ aAltitude and orbit radiusm
i, Ω, ui,\ \Omega,\ uInclination, right ascension of the ascending node, argument of latituderad (deg in parameters)
s^, h^\hat s,\ \hat hSun unit vector and orbit-normal unit vector–
β\betaBeta angle between Sun direction and orbit planerad (deg in parameters)
f, Tf,\ TEclipse fraction of the orbit; orbital period–, s

System behaviour and operating conditions

Eclipse duration per orbit at 500 km, from the closed form (engine):

Beta angleEclipse per orbit
0°35.75 min
30°33.85 min
45°30.51 min
60°21.83 min

The runtime does not rely on the closed form: it evaluates the shadow test at the ends of each sub-step and, when the state changes, bisects to 1 ms and splits the step there. The closed form is the independent check. Valid altitudes: 150–2000 km.

CT-REF-3U reference values (spec/parameters/reference-3u.json). Educational values, not manufacturer or flight limits.
ParameterValueSource
Altitude orbit.altitude500000 mAssumption
Inclination orbit.inclination51.6 degAssumption
RAAN orbit.raan0 degAssumption
Argument of latitude at epoch orbit.argumentOfLatitudeAtEpoch0 degAssumption
Sun model environment.sunModelbetaAssumption
β angle (β mode) environment.betaAngle0 degAssumption
Artificial eclipse override simulation.eclipseOverridenone sAssumption

Interfaces and dependencies

Position r\mathbf r and velocity feed the attitude modes and the shadow test; the Sun direction and irradiance feed the solar array and the thermal model (direct sunlight, albedo and Earth view factor). The coupling graph is on the simulation engine page.

Failure scenarios

The environment has no failure modes, but its simplifications matter: without J2 the orbit plane does not precess, so in ephemeris mode β drifts unrealistically over multi-day runs. CubeTwin's reference scenarios therefore use a fixed β, and the artificial eclipse override exists for what-if studies and is labelled in every result.

Model fidelity, assumptions and limitations

Circular two-body orbit orbit.circular.l1 v1.0.0

Intended use
Geometry for sunlight, eclipse, attitude and albedo of a LEO CubeSat
Assumptions
  • Spherical Earth of radius 6378.137 km (WGS-84 equatorial radius in a spherical model)
  • Two-body gravity, circular orbit
Limitations
  • No J2: the orbit plane does not precess
  • No drag, no eccentricity
Verification
Verified (G2): independent fixtures pass in the TypeScript and Python implementations
Validation
None. No measured data from an identified spacecraft exists (internal maturity M2).
Specification
spec/models/orbit.md · TypeScript packages/core/src/orbit.ts · Python python/cubesat_twin/orbit.py

Sun direction environment.sun.l1 v1.0.0

Intended use
Sun direction and irradiance for power, eclipse and thermal loads
Assumptions
  • USNO approximate solar coordinates (about 1 arcminute)
  • Beta mode: Sun fixed in inertial space
Limitations
  • No light-time, nutation or parallax
Verification
Verified (G2): independent fixtures pass in the TypeScript and Python implementations
Validation
None. No measured data from an identified spacecraft exists (internal maturity M2).
Specification
spec/models/sun.md · TypeScript packages/core/src/sun.ts · Python python/cubesat_twin/sun.py

Cylindrical Earth shadow environment.eclipse.cylindrical.l1 v1.0.0

Intended use
Sunlight and eclipse state
Assumptions
  • Cylindrical umbra, no penumbra, no atmosphere
Limitations
  • Penumbra (about 10 s per transition in LEO) ignored
Verification
Verified (G2): independent fixtures pass in the TypeScript and Python implementations
Validation
None. No measured data from an identified spacecraft exists (internal maturity M2).
Specification
spec/models/eclipse.md · TypeScript packages/core/src/eclipse.ts · Python python/cubesat_twin/eclipse.py

Verification and validation evidence

Orbit: the period matches 2πa3/μ2\pi\sqrt{a^3/\mu} to relative 10⁻¹²; energy and angular momentum are conserved; an RK4 two-body propagator converges with observed order 4.04 and 4.02 over one orbit. Sun: ecliptic longitude at four USNO equinox and solstice instants within 0.03°. Eclipse: integrated shadow time from located events equals fTfT within 2 ms per transition for β from 0° to 70° and at 300, 500 and 1000 km; no events above β*; a 0.1 s brute-force scan agrees with the located times. No comparison with tracking data has been made.

References

  1. WGS 84 National Geospatial-Intelligence Agency. Department of Defense World Geodetic System 1984, NGA.STND.0036_1.0.0_WGS84, 2014. earth-info.nga.mil/GandG/wgs84/ (opens in a new tab) Used for: a = 6378137.0 m and GM = 3.986004418 × 10¹⁴ m³/s², used in a spherical-Earth model. Partly verified.
  2. USNO-Sun U.S. Naval Observatory, Astronomical Applications Department. Computing Approximate Solar Coordinates. aa.usno.navy.mil/faq/sun_approx (opens in a new tab) Used for: Sun-position formulae used verbatim in the Sun model; about 1 arcminute accuracy within two centuries of 2000. Verified.
  3. USNO-Seasons U.S. Naval Observatory. Earth's Seasons and Apsides (2024 and 2027, UT). Used for: Independent test instants for the Sun model: equinoxes and the June 2027 solstice. Verified.
  4. Rickman2023 Rickman, S. L. (2023). Introduction to On-Orbit Thermal Environments. NASA Engineering and Safety Center, Thermal and Fluids Analysis Workshop (TFAWS), College Park, MD. Used for: Albedo 0.3 and planetary infrared 236 W/m²; the β-angle definition; umbral eclipse entry for low circular orbits. Verified.
  5. KoppLean2011 Kopp, G., Lean, J. L. (2011). A new, lower value of total solar irradiance: Evidence and climate significance. Geophysical Research Letters 38, L01706. doi.org/10.1029/2010GL045777 (opens in a new tab) Used for: Total solar irradiance 1360.8 ± 0.5 W/m² at the 2008 solar minimum, hence S = 1361 W/m². Verified.

Run it in CubeTwin