Skip to content

Simulation Software

PEROVSAT's Basilisk simulation models orbit, passive magnetic attitude control, solar generation, and battery energy. Python assembles one vehicle; experiments choose run settings and analyze its output. C++ plugins model the permanent magnet and hysteresis rods.

New teammates: start with Getting started.

Simulation guides

Guide Contents
Getting started Setup, first run, outputs, troubleshooting
Architecture Code map, data flow, units, assumptions
Development Experiments, hardware changes, builds, validation
Power Panels, loads, battery, recorded power
Rod model Flatley–Henretty hysteresis equations and parameters

These guides are published from the simulation repository's docs/ directory and rod-model README at revision edb7769. Source-code links point to that revision so they match the documented behavior.

Current implementation

The vehicle uses adaptive RKF45 propagation, Basilisk's standard World Magnetic Model (WMM), SPICE planetary states, and Earth eclipse illumination. A permanent magnet and eight hysteresis rods provide passive magnetic attitude control. Three fixed solar panels and constant average electrical loads connect to one battery. See architecture for assumptions and validation limits.

Vizard

Vizard replays recorded simulation states in 3D. Experiments can request output with RunConfig(vizard=True); when supported, Basilisk writes a file ending in _UnityViz.bin in the experiment's output directory. Python plots do not require Vizard. See Getting started for outputs.

Model background and design notes

The following pages retain background and earlier design work. The guides above describe the current vehicle; flight-software integration and continuous WMM are separate design topics.