modelTapChangerPhaseShifterLogicInterval
Extends from TapChangerPhaseShifterLogicCommon.
Information
This class implements a model for tap-changer/phase-shifter with an INTERVAL type logic. Said logic tries to keep the monitored value within a [valueMin ; valueMax] interval.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 asynchronous 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 Min 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
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Time | timeInfinity (from TapChangerPhaseShifterLogicCommon) | Modelica.Constants.inf | Default value for counters |
| Types.Time | t1st (from TapChangerPhaseShifterLogicCommon) | Time lag before changing the first tap | |
| Types.Time | tNext (from TapChangerPhaseShifterLogicCommon) | Time lag before changing subsequent taps | |
| Integer | Ntap (from TapChangerPhaseShifterLogicCommon) | Number of tap positions | |
| Integer | tapMax (from TapChangerPhaseShifterLogicCommon) | Ntap | Max tap position |
| Integer | tapMin (from TapChangerPhaseShifterLogicCommon) | 1 | Min tap position |
| ActionType | actionSel (from TapChangerPhaseShifterLogicCommon) | ActionType.direct | Tap direct or reverse action selector |
| Boolean | directAction (from TapChangerPhaseShifterLogicCommon) | (actionSel == ActionType.direct) | = true, when direct action is selected |
| Boolean | reverseAction (from TapChangerPhaseShifterLogicCommon) | (actionSel == ActionType.reverse) | = true, when reverse action is selected |
| Types.Time | tToStandardState | 0.1 | time lag before transition to standard state, in order to avoid chattering |
| Initialization | |||
| Boolean | lockedStart (from TapChangerPhaseShifterLogicCommon) | false | Whether the tap-changer/phase-shifter is initially locked |
| Boolean | runningStart (from TapChangerPhaseShifterLogicCommon) | true | Whether the tap-changer/phase-shifter is initially running |
| Integer | tapStart (from TapChangerPhaseShifterLogicCommon) | Initial tap | |
| State | stateStart (from TapChangerPhaseShifterLogicCommon) | State.standard | Initial state |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| State | state (from TapChangerPhaseShifterLogicCommon) | ||
| Boolean | locked (from TapChangerPhaseShifterLogicCommon) | whether the tap-changer/phase-shifter is locked | |
| Boolean | running (from TapChangerPhaseShifterLogicCommon) | whether the tap-changer/phase-shifter is running | |
| Integer | tap (from TapChangerPhaseShifterLogicCommon) | Current tap |