ElectricalState constructor

const ElectricalState({
  1. @Default(0.0) double voltageDropPercent,
  2. @Default(0.0) double shortCircuitCurrentAmps,
  3. @Default(0.0) double activePowerWatts,
  4. @Default(0.0) double reactivePowerVars,
  5. @Default(0.0) double currentAmps,
  6. @Default(0.0) double voltageVolts,
})

Implementation

const factory ElectricalState({
  /// Voltage drop in percentage relative to the source voltage.
  @Default(0.0) double voltageDropPercent,

  /// Short circuit current at this point in Amperes (kA typically, but storing as double for precision).
  @Default(0.0) double shortCircuitCurrentAmps,

  /// Active power flowing through this node in Watts (W).
  @Default(0.0) double activePowerWatts,

  /// Reactive power flowing through this node in VARs.
  @Default(0.0) double reactivePowerVars,

  /// Current flowing through this node in Amperes (A).
  @Default(0.0) double currentAmps,

  /// Voltage level at this node in Volts (V).
  @Default(0.0) double voltageVolts,
}) = _ElectricalState;