modelIdealSwitch

Ideal switch

Extends from AdditionalIcons.Switch, Dynawo.Electrical.Controls.Basics.SwitchOff.SwitchOffIdealSwitch (Switch-off signal for an ideal switch).

Information

When the switch is closed, the voltage on both terminals ar equal and the current is going through the switch.
When the switch is open, the current going through the switch is zero.

The equivalent circuit and conventions is:
               I1                  I2
    (terminal1) -->-------/ -------<-- (terminal2)

Parameters

TypeNameDefaultDescription
IntegerNbSwitchOffSignals (from SwitchOffLogic)Number of switch-off signals to take into account in inputs
BooleanSwitchOffSignal10 (from SwitchOffLogic)falseInitial switch-off signal 1
BooleanSwitchOffSignal20 (from SwitchOffLogic)falseInitial switch-off signal 2
BooleanSwitchOffSignal30 (from SwitchOffLogic)falseInitial switch-off signal 3
BooleanRunning0 (from SwitchOffLogic)if NbSwitchOffSignals >= 3 then not (SwitchOffSignal10 or SwitchOffSignal20 or SwitchOffSignal30) elseif NbSwitchOffSignals >= 2 then not (SwitchOffSignal10 or SwitchOffSignal20) else not SwitchOffSignal10Indicates if the component is initially running or not
Constants.stateState0 (from SwitchOffIdealSwitch)Constants.state.ClosedStart value of connection state

Connectors

TypeNameDefaultDescription
Dynawo.Connectors.BPinswitchOffSignal1 (from SwitchOffLogic)Switch-off signal 1
Dynawo.Connectors.BPinswitchOffSignal2 (from SwitchOffLogic)Switch-off signal 2
Dynawo.Connectors.BPinswitchOffSignal3 (from SwitchOffLogic)Switch-off signal 3
Dynawo.Connectors.BPinrunning (from SwitchOffLogic)Indicates if the component is running or not
Dynawo.Connectors.ACPowerterminal1Switch side 1
Dynawo.Connectors.ACPowerterminal2Switch side 2

Components

TypeNameDefaultDescription
Constants.statestate (from SwitchOffIdealSwitch)Ideal switch connection state
Types.ActivePowerPuP1PuActive power on side 1 in pu (base SnRef) (receptor convention)
Types.ReactivePowerPuQ1PuReactive power on side 1 in pu (base SnRef) (receptor convention)
Types.ActivePowerPuP1GenPuActive power on side 1 in pu (base SnRef) (generator convention)
Types.ReactivePowerPuQ1GenPuReactive power on side 1 in pu (base SnRef) (generator convention)
Types.ActivePowerPuP2PuActive power on side 2 in pu (base SnRef) (receptor convention)
Types.ReactivePowerPuQ2PuReactive power on side 2 in pu (base SnRef) (receptor convention)