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

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 . 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 , mean motion and argument of latitude :
Sun, β mode. With the ascending-node direction : , constant in time. Ephemeris mode uses the USNO series with :
Shadow. In shadow when and . For a circular orbit this gives the eclipse fraction in closed form, derived in the specification:
| Symbol | Meaning | Unit |
|---|---|---|
| Earth's gravitational parameter, 3.986004418 × 10¹⁴ | m³/s² | |
| Earth radius in the spherical model, 6378137 (WGS 84 equatorial radius) | m | |
| Altitude and orbit radius | m | |
| Inclination, right ascension of the ascending node, argument of latitude | rad (deg in parameters) | |
| Sun unit vector and orbit-normal unit vector | – | |
| Beta angle between Sun direction and orbit plane | rad (deg in parameters) | |
| Eclipse 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 angle | Eclipse 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.
| Parameter | Value | Source |
|---|---|---|
Altitude orbit.altitude | 500000 m | Assumption |
Inclination orbit.inclination | 51.6 deg | Assumption |
RAAN orbit.raan | 0 deg | Assumption |
Argument of latitude at epoch orbit.argumentOfLatitudeAtEpoch | 0 deg | Assumption |
Sun model environment.sunModel | beta | Assumption |
β angle (β mode) environment.betaAngle | 0 deg | Assumption |
Artificial eclipse override simulation.eclipseOverride | none s | Assumption |
Interfaces and dependencies
Position 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· TypeScriptpackages/core/src/orbit.ts· Pythonpython/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· TypeScriptpackages/core/src/sun.ts· Pythonpython/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· TypeScriptpackages/core/src/eclipse.ts· Pythonpython/cubesat_twin/eclipse.py
Verification and validation evidence
Orbit: the period matches 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 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
- 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.
- 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.
- 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.
- 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.
- 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.