modelTestTapChangerLogicInterval

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

Information

This model demonstrates the correct behaviour of a tap-changer logic of type INTERVAL by directly prescribing the moniitoring conditions valueUnderMin, valueAboveMax. The logic starts with tap changer in position 5.

The monitored value U is a sine wave and does not depend from the tap position. The monitoring INTERVAL is [-0.5, 0.5].

The Locked signal is active in t = [0, 20] interval.

The tap position stays frozen until t=20, because the locked signal is active.

After the Locked signal disappears, the tap position starts to move according to the defined time lag intervals (3 second for first tap, 2 second for subsequent taps) and to the actual value of U (tap position increases when U is higher than 0.5, and decreases when U is lower than -0.5).






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
Types.TimetToStandardState (from TapChangerPhaseShifterLogicInterval)0.1time lag before transition to standard state, in order to avoid chattering
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
RealUsin(2*Modelica.Constants.pi*time/40)Monitored Value
RealUmin-0.5
RealUmax0.5