Power – ephemerista.power¶
The power.py module.
This module provides the PowerSystem class, a simple model of the electrical power system of a spacecraft: solar cells that charge a battery which feeds a constant load.
- ephemerista.power.ASTRONOMICAL_UNIT = 149597870.7¶
Astronomical unit in km.
- class ephemerista.power.PowerSystem(*, solarArrayArea=0.06, cellEfficiency=0.28, incidenceFactor=0.25, losses=0.8, loadPower=2.0, batteryCapacity=20.0, initialStateOfCharge=1.0, chargeEfficiency=0.9)¶
The
PowerSystemmodel.The solar cells generate
P = S * A * efficiency * incidence_factor * losses * illumination
where S is the solar irradiance at the distance of the spacecraft from the Sun and illumination is the visible fraction of the solar disk (0 in umbra, 1 in full sunlight). The surplus over the load charges the battery with
charge_efficiency; a deficit discharges it.- generated_power(illumination, sun_distance=149597870.7)¶
Return the power generated by the solar cells in W.
- Parameters:
illumination (
float) – Visible fraction of the solar disk, from 0 (umbra) to 1 (full sunlight)sun_distance (
float) – Distance between the spacecraft and the Sun in km
- Return type:
float
- model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'populate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- ephemerista.power.SOLAR_CONSTANT = 1361.0¶
Total solar irradiance at 1 AU in W/m^2 (IAU 2015 Resolution B3).