Table of Contents

Class ReactionWheelArrayPowerModel

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] This model creates a map between motor voltage commands and the resulting load on the parent's electrical sub-system. It is a component model that can attach to a reaction wheel to provide the power draw from a system.


[UniverseParent(typeof(ReactionWheelArray))]
public class ReactionWheelArrayPowerModel : PowerNodeModel
Inheritance
ReactionWheelArrayPowerModel

Constructors

ReactionWheelArrayPowerModel()

Construct a motor power model

protected ReactionWheelArrayPowerModel()

Fields

BaseResistance

Specifies the base level resistance for the power model.

[Unit(UnitType.OHM)]
public double BaseResistance

Field Value

double

In_MotorVoltageArrayMsg

Incoming array of voltage commands that map to torques

public MotorVoltageArrayMessage? In_MotorVoltageArrayMsg

Field Value

MotorVoltageArrayMessage

LookUpTableData

Stores the data from the lookup table for the purposes of serialization and deserialization.

[Hidden]
public List<JObject> LookUpTableData

Field Value

List<JObject>

Out_MotorVoltageArrayMsg

Outgoing array of voltage commands that will map to torques

public MotorVoltageArrayMessage? Out_MotorVoltageArrayMsg

Field Value

MotorVoltageArrayMessage

Properties

NumEntries

The number of entries added to the lookup table

[Unit(UnitType.NONE)]
[ReadOnly]
public int NumEntries { get; }

Property Value

int

Methods

AddLookupTableEntry(double, double)

Add entry to lookup table.

public void AddLookupTableEntry(double voltageCmd, double powerDraw)

Parameters

voltageCmd double

Input voltage command

powerDraw double

Resulting power draw

OnCreate()

Called when the object is created from the controller and has been attached to the parent object. By this point, it has been registered to the simulation and will run after the constructor.

protected override void OnCreate()

OnLoad(double)

Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.

protected override void OnLoad(double time)

Parameters

time double

[s] The current clock time of the simulation

OnSave()

Called before the object is saved into the save state. This ensures that any additional metadata can be saved on the object before it is automatically serialized.

protected override void OnSave()

OnUpdate(double, double)

Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.

protected override void OnUpdate(double time, double step)

Parameters

time double

[s] Current time of the simulation before the update

step double

[s] The time-step to update during this tick