modelTestTapChangerLogicMax

Extends from Modelica.Icons.Example (Icon for runnable examples), PowerGrids.Electrical.Branches.BaseClasses.TapChangerPhaseShifterLogicMax.

Information

This model demonstrates the correct behaviour of a tap-changer logic of type MAX by directly prescribing the moniitoring conditions valueUnderStop, valueAboveMax as functions of time. The logic starts with tap changer in position 10.

valueAboveMax becomes true t=1, and becomes false at t=10, while valueUnderStop becomes true at t=15.5.
Locked signal is active in t = [5, 8] interval.

According to the defined time lag intervals (3 second for first tap, 1 second for subsequent taps), the tap starts to decrease at t=4 (i.e. 3 seconds after the monitored value raises above MAX), then stays frozen until t=8 because the locked signal becomes active.

After the locked signal disappears (t=8) and 3 seconds are elapsed (lag for first tap) the tap restarts to decrease, one tap per second, until the Stop is reached.
 
                         

Parameters

TypeNameDefaultDescription
Types.TimetimeInfinity (from TapChangerPhaseShifterLogicCommon)Modelica.Constants.infDefault value for counters
Types.Timet1st (from TapChangerPhaseShifterLogicCommon)Time lag before changing the first tap
Types.TimetNext (from TapChangerPhaseShifterLogicCommon)Time lag before changing subsequent taps
IntegerNtap (from TapChangerPhaseShifterLogicCommon)Number of tap positions
IntegertapMax (from TapChangerPhaseShifterLogicCommon)NtapMax tap position
IntegertapMin (from TapChangerPhaseShifterLogicCommon)1Min tap position
ActionTypeactionSel (from TapChangerPhaseShifterLogicCommon)ActionType.directTap direct or reverse action selector
BooleandirectAction (from TapChangerPhaseShifterLogicCommon)(actionSel == ActionType.direct)= true, when direct action is selected
BooleanreverseAction (from TapChangerPhaseShifterLogicCommon)(actionSel == ActionType.reverse)= true, when reverse action is selected
Initialization
BooleanlockedStart (from TapChangerPhaseShifterLogicCommon)falseWhether the tap-changer/phase-shifter is initially locked
BooleanrunningStart (from TapChangerPhaseShifterLogicCommon)trueWhether the tap-changer/phase-shifter is initially running
IntegertapStart (from TapChangerPhaseShifterLogicCommon)Initial tap
StatestateStart (from TapChangerPhaseShifterLogicCommon)State.standardInitial state

Components

TypeNameDefaultDescription
Statestate (from TapChangerPhaseShifterLogicCommon)
Booleanlocked (from TapChangerPhaseShifterLogicCommon)whether the tap-changer/phase-shifter is locked
Booleanrunning (from TapChangerPhaseShifterLogicCommon)whether the tap-changer/phase-shifter is running
Integertap (from TapChangerPhaseShifterLogicCommon)Current tap