Class in Zendir.Classes | Inherits from PowerNodeModel

Declaration

class SensorPowerModel;

Description

Creates a power model for a Sensor, which will draw power from the electrical circuit based on the operational state of the Sensor.

A typical sensor with DC-DC conversion is approximated as a Constant Power Load: effective resistance is updated each tick as R = V_solved² / P_state (quasi-static SPICE with the previous tick’s voltage).

Bus-connected behaviour matches : pre-SPICE does not run the passive VoltageNode = I·R mock (that would corrupt CPL feedback); absorbed branch power |VoltageNode|·max(|I_in|,|I_out|) is used for brownout checks instead of where they disagree. See / .


Properties

DeclaredDescription
LastSolvedVoltageThe last SPICE-solved acrossthis node, fed into the next tick’s quasi-static constant-powerresistance update.
MinOperationalVoltageRatioMinimum fraction of required onthe node for the sensor to remain energised. If the SPICE-solvedfalls below this fraction, thepower model shuts the sensor down.
MinPowerRatioMinimum fraction of the expected (state-based) CPL power that must appear asabsorbed electrical power in the SPICE branch:
ModelShutdownA Bool to track if the model shutdown the sensor.
NominalOperationalVoltageThe nominal DC voltage at this sensor node for CPL seeding and brownout thresholds.12 V is a common CubeSat / small-sat battery-bus tap before local regulation;set to your regulated rail (e.g. 5 V) if the model sits downstream of a converter.
PowerThe Power Consumption of the Sensor based on its current state.
PowerOperationalThe Power Consumption of the Sensor when Running (operational).Default ~3 W is representative of a modest CubeSat EO / instrument payload(many commercial small-sat imagers fall roughly in the ~2–6 W active range).
PowerShutdownThe Power Consumption of the Sensor when Shutdown.
PowerStandbyThe Power Consumption of the Sensor when in Standby.Default ~0.65 W matches CubeSat-class star trackers (e.g. AAC Clyde ST200 ~650 mW nominal).
InheritedDescription
CurrentInThe current flowing into this node at the In terminal.Under flow-through convention, positive means current enters at In and exits at Out.Equal to CurrentOut in steady state for two-terminal elements.
CurrentOutThe current flowing out of this node at the Out terminal.Under flow-through convention, positive means current exits at Out (entered at In).Equal to CurrentIn in steady state for two-terminal elements.
IsEnabledIs true if the object is currently enabled.
IsOpenCircuitA flag if the power node is currently open and no power willbe transferred to the next component.
NameThe display name or tag of this object.
NetPowerNet power this node contributes to the bus, calculated directly from thevoltages and currents at the In and Out terminals:NetPower = VoltageOut * CurrentOut - VoltageIn * CurrentInThis is the power delivered to the external circuit by this node (the negativeof the power absorbed by it). Under the flow-through convention, positiveCurrentIn represents current entering at the In terminal and positiveCurrentOut represents current exiting at the Out terminal.A positive NetPower means the node is adding power to the bus (e.g. a solarpanel producing power, a discharging battery). A negative NetPower means thenode is consuming power from the bus (e.g. a power sink, a charging battery,resistive losses in a fuse/switch/component).For a two-terminal element CurrentIn == CurrentOut, so this reduces to(VoltageOut - VoltageIn) * I. When one terminal is connected to ground andthe bus has ZeroGroundPlane enabled, that terminal’s voltage and current areboth zero, so the formula still represents the true energy exchange at thenon-grounded terminal (e.g. V_out * I_out for a ground-referenced source orbattery, -V_in * I_in for a ground-referenced load).
Out_PowerNodeMsgThe power node message that stores all the properties ofthe node.
ParentThe currently attached parent object.
ResistanceThe Resistance of the node.
SelfSolveA Flag to determine if the Power Node Model should update Output parameters itself if not connected to a PowerBus
VoltageInThe voltage at the In (negative) terminal of this node.For a load connected between a source and ground, this is the higher potential side.
VoltageNodeThe voltage drop across the node: VoltageIn - VoltageOut.Positive for a load (current flows from higher to lower potential).Negative for a source (Out terminal at higher potential than In).
VoltageOutThe voltage at the Out (positive) terminal of this node.For a load connected between a source and ground, this is the lower potential side.

Methods

InheritedDescription
ClearClear the Power Node Model if the circuit is open
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.