modelTwoPortAC
Base class for two-port AC components
Information
This is the base class for all the components with two AC terminals. It contains two corresponding PortAC components to compute useful quantities for modelling and monitoring purposes.
Parameters
| Type | Name | Default | Description |
| Types.Voltage | UNomA | | Nominal/rated voltage, port A |
| Types.Voltage | UNomB | UNomA | Nominal/rated voltage, port B |
| Types.Power | SNom | | Nominal/rated power |
| Boolean | portVariablesPhases | false | Compute voltage and current phases for monitoring purposes only |
| Boolean | portVariablesPu | true | Add per-unit variables to model |
| Boolean | computePowerBalance | true | Compute net balance of complex power entering the component |
| Initialization |
| Types.Voltage | UStartA | UNomA | Start value of phase-to-phase voltage phasor at port A, absolute value |
| Types.Angle | UPhaseStartA | 0 | Start value of phase-to-phase voltage phasor at port A, phase angle |
| Types.ActivePower | PStartA | SNom | Start value of active power flowing into port A |
| Types.ReactivePower | QStartA | 0 | Start value of reactive power flowing into port A |
| Types.Voltage | UStartB | UNomB | Start value of phase-to-phase voltage phasor at port B, absolute value |
| Types.Angle | UPhaseStartB | 0 | Start value of phase-to-phase voltage phasor at port B, phase angle |
| Types.ActivePower | PStartB | -SNom | Start value of active power flowing into port B |
| Types.ReactivePower | QStartB | 0 | Start value of reactive power flowing into port B |
Components
| Type | Name | Default | Description |
| PortAC | portA | | AC port - terminalA |
| PortAC | portB | | AC port - terminalB |
| Types.ComplexPower | Sbal | portA.S + portB.S | Complex power balance |
| Electrical.System | systemPowerGrids | | Reference to system object |