modelTapChangerPhaseShifterLogicMax

Extends from TapChangerPhaseShifterLogicCommon.

Information

This class implements a model for a tap changer/phase-shifter with a MAX type logic. Said logic takes a maximum and stop values, and tries to bring the value back to the stop one when the maximum is reached.

The model is realized as asynchronous state-machine, the machine states are defined using the enumeration type State, defined in the TapChangerPhaseShifterLogicCommon class. 

The transitions are defined using a when - elsewen structure, which allows the asyncronous behavior of the machine, and the relevant conditions are evaluated at the previous integration step.

The input variables are two booleans, which indicate if the monitored variable is under the stop limit or above the Max one.

The output variable tap represents the position of the tap-changer/phase shifter to be used in the next integration step, and it is updated by the transitions of the status-machine.

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