This is an illustration of how to use simplePower modules to perform orbit power analysis considering attitude and orbital coupling.
This scenario is intended to provide both an overview and a concrete demonstration of the features and interface of the power group of modules, which represent Basilisk’s low-fidelity power system modeling functionality. Specifically, simplePower modules are intended to provide three major features:
Computation of power generated by solar panels, which considers orbit and attitude dependence;
Computation of power consumed by on-board spacecraft power sinks;
Computation of the spacecraft power balance and total stored energy by the simpleBattery class.
The script is found in the folder
basilisk/examples and executed by using:
The simplePower subsystem consists of two kinds of Basilisk simModules: Module: powerStorageBase (which is used to represent power storage units, and serves as the heart of the subsystem) and Module: powerNodeBase (which is used to represent system components that consume or generate power). A conceptual diagram of these classes and their interfaces to eachother and the rest of Basilisk is shown in the figure below.
In general, this system can be configured using the following process:
Create and configure a set of powerNodeBase modules to represent power system sources and sinks, including their
Create and configure a Module: powerStorageBase instance;
Run the simulation.
One version of this process is demonstrated here. A spacecraft representing a tumbling 6U cubesat is placed in a LEO orbit, using methods that are described in other scenarios. Three simplePower modules are created: a Module: simpleBattery, a Module: simpleSolarPanel, and a Module: simplePowerSink (which represents the load demanded by on-board electronics.) The solar panel is assumed to be body-fixed, and given the parameters appropriate for a 6U cubesat.
When the simulation completes, the following single plot is shown to demonstrate the panel’s attitude and orbit dependence, the net power generated, the stored power, and the power consumed. An initial rise in net power from the panel facing towards the sun is cut short as the spacecraft enters eclipse; as it exits, the stored charge of the battery begins to rebuild.
The scenarios can be run with the followings setups parameters:
show_plots (bool) – Determines if the script should display plots