Description
This is a custom Power Node Model that is added to a Reaction Wheel Array object. The motor power model is able to connect the functionality of a reaction wheel with the power network. It can map voltage commands controlling the motor with the power bus and ensure that when the battery has zero power charge, the reaction wheels are unable to provide a new torque. By default, a reaction wheel will have no power implementation and will assume no power requirements.
Example Use Cases
- Simulating Current Draw: Determining when reaction wheels will cause current spikes on the power bus
- Power Disabling: Having reaction wheel torques dependent on power within a battery, emulating a realistic power system.
Module Implementation
The power motor creates an empty Power Model
that attempts to provide a voltage sink based on the reaction wheel modal. This power component is what actually connects the reaction wheel to the power system. This model is controlled by the reaction wheel power component and the power values are updated based on the input voltage array message.
On the update call, if the voltage input is zero, then the reaction wheels should have no power and be unable to adjust their torques. As such, the spoof voltage and the spoof resistance are set to . All voltages on the output array motor voltage message are also set to . If , then a lookup table function is called which calculates the resistance and current based on each of the voltage nodes on the In_ArrayMotorVoltageMsg
, containing the desired input voltages from the reaction wheels. Here,
for the respective resistance and current lookup table functions, taking in the voltage for wheel . A lookup table is provided that maps voltages to power output . Given some voltage , the lookup table finds the power drawn at the first voltage in which , for some voltage in the lookup table (assuming the table is ordered in increasing voltages). Then, assuming that and are the power values at voltage and respectively, then:
where is the ratio between the two values and is used for linear interpolation between the lookup table values such that:
Additionally, the voltage node is calculated to be the sum of the input voltages where:
The next step adjusts the spoof component power properties based on the reaction wheel power values. If , then:
and the scale factor is defined as the ratio between the two voltages . If the total voltage , then:
Finally, the output array motor voltages are calculated such that for each wheel , the output voltage is:
where is the defined scale factor and when not defined.
Assumptions/Limitations
- Currently, the motor power model only functions with the reaction wheel on its own linear line and has certain issues with calculating the correct power when in series to other components.