modelInitializedGeneratorSynchronousFourWindings
Model of synchronous generator with four windings and built-in initialization, for the Nordic 32 test system
Extends from Dynawo.Electrical.Machines.OmegaRef.GeneratorSynchronous (Synchronous machine).
Information
This model implements a four windings synchronous generator which is automatically initialized by an initialization model.The standard parameters are passed to the initialization model, which in turn calculates the necessary operational parameters. The calculated values are then assigned to the respective generator parameters in an initial algorithm section. This way, the generator has appropriate parameters before the simulation starts. The model cannot use equations due to variability conflict (parameters and variables), therefore the assignment operator must be used. This is permissible, because the initial values do not change during simulation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.VoltageModule | UNom (from GeneratorSynchronousParameters) | Nominal voltage in kV | |
| Types.ApparentPowerModule | SNom (from GeneratorSynchronousParameters) | Nominal apparent power in MVA | |
| Types.ActivePower | PNomTurb (from GeneratorSynchronousParameters) | Nominal active (turbine) power in MW | |
| Types.ActivePower | PNomAlt (from GeneratorSynchronousParameters) | Nominal active (alternator) power in MW | |
| Types.ReactivePower | QNomAlt (from GeneratorSynchronousParameters) | sqrt(SNom*SNom - PNomAlt*PNomAlt) | Nominal reactive (alternator) power in Mvar |
| ExcitationPuType | ExcitationPu (from GeneratorSynchronousParameters) | Choice of excitation base voltage | |
| Types.Time | H (from GeneratorSynchronousParameters) | Kinetic constant = kinetic energy / rated power | |
| Types.PerUnit | DPu (from GeneratorSynchronousParameters) | Damping coefficient of the swing equation in pu | |
| Types.ApparentPowerModule | SnTfo (from GeneratorSynchronousParameters) | Nominal apparent power of the generator transformer in MVA | |
| Types.VoltageModule | UNomHV (from GeneratorSynchronousParameters) | Nominal voltage on the network side of the transformer in kV | |
| Types.VoltageModule | UNomLV (from GeneratorSynchronousParameters) | Nominal voltage on the generator side of the transformer in kV | |
| Types.VoltageModule | UBaseHV (from GeneratorSynchronousParameters) | Base voltage on the network side of the transformer in kV | |
| Types.VoltageModule | UBaseLV (from GeneratorSynchronousParameters) | Base voltage on the generator side of the transformer in kV | |
| Types.PerUnit | RTfPu (from GeneratorSynchronousParameters) | Resistance of the generator transformer in pu (base UBaseHV, SnTfo) | |
| Types.PerUnit | XTfPu (from GeneratorSynchronousParameters) | Reactance of the generator transformer in pu (base UBaseHV, SnTfo) | |
| Types.PerUnit | md (from GeneratorSynchronousParameters) | Parameter for direct axis mutual inductance saturation modelling | |
| Types.PerUnit | mq (from GeneratorSynchronousParameters) | Parameter for quadrature axis mutual inductance saturation modelling | |
| Types.PerUnit | nd (from GeneratorSynchronousParameters) | Parameter for direct axis mutual inductance saturation modelling | |
| Types.PerUnit | nq (from GeneratorSynchronousParameters) | Parameter for quadrature axis mutual inductance saturation modelling | |
| Types.PerUnit | RTfoPu (from GeneratorSynchronousParameters) | RTfPu*(UNomHV/UBaseHV)^2*(SNom/SnTfo) | Resistance of the generator transformer in pu (base SNom, UNom) |
| Types.PerUnit | XTfoPu (from GeneratorSynchronousParameters) | XTfPu*(UNomHV/UBaseHV)^2*(SNom/SnTfo) | Reactance of the generator transformer in pu (base SNom, UNom) |
| Types.PerUnit | rTfoPu (from GeneratorSynchronousParameters) | if RTfPu > 0.0 or XTfPu > 0.0 then UNomHV/UBaseHV/(UNomLV/UBaseLV) else 1.0 | Ratio of the generator transformer in pu (base UBaseHV, UBaseLV) |
| Integer | NbSwitchOffSignals (from SwitchOffLogic) | Number of switch-off signals to take into account in inputs | |
| Boolean | SwitchOffSignal10 (from SwitchOffLogic) | false | Initial switch-off signal 1 |
| Boolean | SwitchOffSignal20 (from SwitchOffLogic) | false | Initial switch-off signal 2 |
| Boolean | SwitchOffSignal30 (from SwitchOffLogic) | false | Initial switch-off signal 3 |
| Boolean | Running0 (from SwitchOffLogic) | if NbSwitchOffSignals >= 3 then not (SwitchOffSignal10 or SwitchOffSignal20 or SwitchOffSignal30) elseif NbSwitchOffSignals >= 2 then not (SwitchOffSignal10 or SwitchOffSignal20) else not SwitchOffSignal10 | Indicates if the component is initially running or not |
| Constants.state | State0 (from SwitchOffGenerator) | Constants.state.Closed | Start value of connection state |
| Types.PerUnit | RaPPu (from BaseGeneratorSynchronous) | Armature resistance in pu | |
| Types.PerUnit | LdPPu (from BaseGeneratorSynchronous) | Direct axis stator leakage in pu | |
| Types.PerUnit | MdPPu (from BaseGeneratorSynchronous) | Direct axis mutual inductance in pu | |
| Types.PerUnit | LDPPu (from BaseGeneratorSynchronous) | Direct axis damper leakage in pu | |
| Types.PerUnit | RDPPu (from BaseGeneratorSynchronous) | Direct axis damper resistance in pu | |
| Types.PerUnit | MrcPPu (from BaseGeneratorSynchronous) | Canay's mutual inductance in pu | |
| Types.PerUnit | LfPPu (from BaseGeneratorSynchronous) | Excitation winding leakage in pu | |
| Types.PerUnit | RfPPu (from BaseGeneratorSynchronous) | Excitation winding resistance in pu | |
| Types.PerUnit | LqPPu (from BaseGeneratorSynchronous) | Quadrature axis stator leakage in pu | |
| Types.PerUnit | MqPPu (from BaseGeneratorSynchronous) | Quadrature axis mutual inductance in pu | |
| Types.PerUnit | LQ1PPu (from BaseGeneratorSynchronous) | Quadrature axis 1st damper leakage in pu | |
| Types.PerUnit | RQ1PPu (from BaseGeneratorSynchronous) | Quadrature axis 1st damper resistance in pu | |
| Types.PerUnit | LQ2PPu (from BaseGeneratorSynchronous) | Quadrature axis 2nd damper leakage in pu | |
| Types.PerUnit | RQ2PPu (from BaseGeneratorSynchronous) | Quadrature axis 2nd damper resistance in pu | |
| Types.PerUnit | MsalPu (from BaseGeneratorSynchronous) | Constant difference between direct and quadrature axis saturated mutual inductances in pu | |
| Types.PerUnit | MdPPuEfd (from BaseGeneratorSynchronous) | Direct axis mutual inductance used to determine the excitation voltage in pu | |
| Types.PerUnit | MdPPuEfdNom (from BaseGeneratorSynchronous) | Direct axis mutual inductance used to determine the excitation voltage in nominal conditions in pu | |
| Types.PerUnit | Kuf (from BaseGeneratorSynchronous) | if ExcitationPu == ExcitationPuType.Kundur then 1 elseif ExcitationPu == ExcitationPuType.UserBase then RfPPu/MdPPuEfd elseif ExcitationPu == ExcitationPuType.NoLoad then RfPPu/MdPPu elseif ExcitationPu == ExcitationPuType.NoLoadSaturated then RfPPu*(1 + md)/MdPPu else RfPPu/MdPPuEfdNom | Scaling factor for excitation pu voltage |
| Types.VoltageModulePu | U0Pu (from BaseGeneratorSynchronous) | Start value of voltage amplitude in pu (base UNom) | |
| Types.ActivePowerPu | P0Pu (from BaseGeneratorSynchronous) | Start value of active power at terminal in pu (base SnRef) (receptor convention) | |
| Types.ReactivePowerPu | Q0Pu (from BaseGeneratorSynchronous) | Start value of reactive power at terminal in pu (base SnRef) (receptor convention) | |
| Types.Angle | UPhase0 (from BaseGeneratorSynchronous) | Start value of voltage angle in rad | |
| Types.PerUnit | Efd0Pu (from BaseGeneratorSynchronous) | Start value of input exciter voltage in pu (user-selected base) | |
| Types.PerUnit | Pm0Pu (from BaseGeneratorSynchronous) | Start value of mechanical power in pu (base PNomTurb/OmegaNom) | |
| Types.ComplexApparentPowerPu | s0Pu (from BaseGeneratorSynchronous) | Start value of complex apparent power at terminal in pu (base SnRef) | |
| Types.ComplexVoltagePu | u0Pu (from BaseGeneratorSynchronous) | Start value of complex voltage at terminal in pu (base UNom) | |
| Types.ComplexCurrentPu | i0Pu (from BaseGeneratorSynchronous) | Start value of complex current at terminal in pu (base UNom, SnRef) | |
| Types.Angle | Theta0 (from BaseGeneratorSynchronous) | Start value of rotor angle: angle between machine rotor frame and port phasor frame | |
| Types.PerUnit | Ud0Pu (from BaseGeneratorSynchronous) | Start value of voltage of direct axis in pu | |
| Types.PerUnit | Uq0Pu (from BaseGeneratorSynchronous) | Start value of voltage of quadrature axis in pu | |
| Types.PerUnit | Id0Pu (from BaseGeneratorSynchronous) | Start value of current of direct axis in pu | |
| Types.PerUnit | Iq0Pu (from BaseGeneratorSynchronous) | Start value of current of quadrature axis in pu | |
| Types.PerUnit | If0Pu (from BaseGeneratorSynchronous) | Start value of current of excitation winding in pu | |
| Types.PerUnit | Uf0Pu (from BaseGeneratorSynchronous) | Start value of exciter voltage in pu (Kundur base) | |
| Types.PerUnit | Lambdad0Pu (from BaseGeneratorSynchronous) | Start value of flux of direct axis in pu | |
| Types.PerUnit | Lambdaq0Pu (from BaseGeneratorSynchronous) | Start value of flux of quadrature axis in pu | |
| Types.PerUnit | LambdaD0Pu (from BaseGeneratorSynchronous) | Start value of flux of direct axis damper | |
| Types.PerUnit | Lambdaf0Pu (from BaseGeneratorSynchronous) | Start value of flux of excitation winding | |
| Types.PerUnit | LambdaQ10Pu (from BaseGeneratorSynchronous) | Start value of flux of quadrature axis 1st damper | |
| Types.PerUnit | LambdaQ20Pu (from BaseGeneratorSynchronous) | Start value of flux of quadrature axis 2nd damper | |
| Types.PerUnit | Ce0Pu (from BaseGeneratorSynchronous) | Start value of electrical torque in pu (base SNom/OmegaNom) | |
| Types.PerUnit | Cm0Pu (from BaseGeneratorSynchronous) | Start value of mechanical torque in pu (base PNomTurb/OmegaNom) | |
| Types.PerUnit | MdSat0PPu (from BaseGeneratorSynchronous) | Start value of direct axis saturated mutual inductance in pu | |
| Types.PerUnit | MqSat0PPu (from BaseGeneratorSynchronous) | Start value of quadrature axis saturated mutual inductance in pu | |
| Types.PerUnit | LambdaAirGap0Pu (from BaseGeneratorSynchronous) | Start value of total air gap flux in pu | |
| Types.PerUnit | LambdaAD0Pu (from BaseGeneratorSynchronous) | Start value of common flux of direct axis in pu | |
| Types.PerUnit | LambdaAQ0Pu (from BaseGeneratorSynchronous) | Start value of common flux of quadrature axis in pu | |
| Types.PerUnit | Mds0Pu (from BaseGeneratorSynchronous) | Start value of direct axis saturated mutual inductance in the case when the total air gap flux is aligned on the direct axis in pu | |
| Types.PerUnit | Mqs0Pu (from BaseGeneratorSynchronous) | Start value of quadrature axis saturated mutual inductance in the case when the total air gap flux is aligned on the quadrature axis in pu | |
| Types.PerUnit | Cos2Eta0 (from BaseGeneratorSynchronous) | Start value of the common flux of direct axis contribution to the total air gap flux in pu | |
| Types.PerUnit | Sin2Eta0 (from BaseGeneratorSynchronous) | Start value of the common flux of quadrature axis contribution to the total air gap flux in pu | |
| Types.PerUnit | Mi0Pu (from BaseGeneratorSynchronous) | Start value of intermediate axis saturated mutual inductance in pu | |
| Types.ActivePowerPu | PGen0Pu (from GeneratorSynchronous) | Start value of active power at terminal in pu (base SnRef) (generator convention) | |
| Types.ReactivePowerPu | QGen0Pu (from GeneratorSynchronous) | Start value of reactive power at terminal in pu (base SnRef) (generator convention) | |
| Types.ComplexApparentPowerPu | sStator0Pu (from GeneratorSynchronous) | Start value of complex apparent power at stator side in pu (base SnRef) | |
| Types.ComplexVoltagePu | uStator0Pu (from GeneratorSynchronous) | Start value of complex voltage at stator side in pu (base UNom) | |
| Types.ComplexCurrentPu | iStator0Pu (from GeneratorSynchronous) | Start value of complex current at stator side in pu (base UNom, SnRef) | |
| Types.VoltageModulePu | UStator0Pu (from GeneratorSynchronous) | Start value of stator voltage amplitude in pu (base UNom) | |
| Types.CurrentModulePu | IStator0Pu (from GeneratorSynchronous) | Start value of stator current amplitude in pu (base UNom, SnRef) | |
| Types.ReactivePowerPu | QStator0Pu (from GeneratorSynchronous) | Start value of stator reactive power generated in pu (base SnRef) | |
| Types.ReactivePowerPu | QStator0PuQNom (from GeneratorSynchronous) | Start value of stator reactive power generated in pu (base QNomAlt) | |
| Types.CurrentModulePu | IRotor0Pu (from GeneratorSynchronous) | Start value of rotor current in pu (base SNom, user-selected base voltage) | |
| Types.Angle | ThetaInternal0 (from GeneratorSynchronous) | Start value of internal angle in rad | |
| Types.PerUnit | RaPu | Armature resistance in pu (base SNom, UNom) | |
| Types.PerUnit | XlPu | Stator leakage in pu (base SNom, UNom) | |
| Types.PerUnit | XdPu | Direct axis reactance in pu (base SNom, UNom) | |
| Types.PerUnit | XpdPu | Direct axis transient reactance in pu (base SNom, UNom) | |
| Types.PerUnit | XppdPu | Direct axis sub-transient reactance in pu (base SNom, UNom) | |
| Types.PerUnit | XqPu | Quadrature axis reactance in pu (base SNom, UNom) | |
| Types.PerUnit | XpqPu | Quadrature axis transient reactance in pu (base SNom, UNom) | |
| Types.PerUnit | XppqPu | Quadrature axis sub-transient reactance in pu (base SNom, UNom) | |
| Types.Time | Tpd0 | Direct axis, open circuit transient time constant in s | |
| Types.Time | Tppd0 | Direct axis, open circuit sub-transient time constant in s | |
| Types.Time | Tpq0 | Open circuit quadrature axis transient time constant in s | |
| Types.Time | Tppq0 | Open circuit quadrature axis sub-transient time constant in s |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Dynawo.Connectors.BPin | switchOffSignal1 (from SwitchOffLogic) | Switch-off signal 1 | |
| Dynawo.Connectors.BPin | switchOffSignal2 (from SwitchOffLogic) | Switch-off signal 2 | |
| Dynawo.Connectors.BPin | switchOffSignal3 (from SwitchOffLogic) | Switch-off signal 3 | |
| Dynawo.Connectors.BPin | running (from SwitchOffLogic) | Indicates if the component is running or not | |
| Dynawo.Connectors.ACPower | terminal (from BaseGeneratorSynchronous) | Connector used to connect the synchronous generator to the grid | |
| Dynawo.Connectors.ImPin | omegaRefPu (from BaseGeneratorSynchronous) | Reference frequency in pu | |
| Dynawo.Connectors.ImPin | PmPu (from BaseGeneratorSynchronous) | Mechanical power in pu (base PNomTurb) | |
| Dynawo.Connectors.ImPin | efdPu (from BaseGeneratorSynchronous) | Input voltage of exciter winding in pu (user-selected base voltage) | |
| Dynawo.Connectors.ImPin | omegaPu (from BaseGeneratorSynchronous) | Angular frequency in pu | |
| Dynawo.Connectors.ImPin | UStatorPu (from GeneratorSynchronous) | Stator voltage amplitude in pu (base UNom) | |
| Dynawo.Connectors.ImPin | IStatorPu (from GeneratorSynchronous) | Stator current amplitude in pu (base UNom, SnRef) | |
| Dynawo.Connectors.ImPin | QStatorPu (from GeneratorSynchronous) | Stator reactive power generated in pu (base SnRef) | |
| Dynawo.Connectors.ImPin | QStatorPuQNom (from GeneratorSynchronous) | Stator reactive power generated in pu (base QNomAlt) | |
| Dynawo.Connectors.ImPin | IRotorPu (from GeneratorSynchronous) | Rotor current in pu (base SNom, user-selected base voltage) | |
| Dynawo.Connectors.ImPin | thetaInternal (from GeneratorSynchronous) | Internal angle in rad |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Constants.state | state (from SwitchOffGenerator) | Generator connection state | |
| Real | genState (from SwitchOffGenerator) | Generator continuous connection state | |
| Modelica.Blocks.Math.IntegerToReal | converter (from SwitchOffGenerator) | Converter for generator state | |
| Types.PerUnit | udPu (from BaseGeneratorSynchronous) | Voltage of direct axis in pu | |
| Types.PerUnit | uqPu (from BaseGeneratorSynchronous) | Voltage of quadrature axis in pu | |
| Types.PerUnit | idPu (from BaseGeneratorSynchronous) | Current of direct axis in pu | |
| Types.PerUnit | iqPu (from BaseGeneratorSynchronous) | Current of quadrature axis in pu | |
| Types.PerUnit | iDPu (from BaseGeneratorSynchronous) | Current of direct axis damper in pu | |
| Types.PerUnit | iQ1Pu (from BaseGeneratorSynchronous) | Current of quadrature axis 1st damper in pu | |
| Types.PerUnit | iQ2Pu (from BaseGeneratorSynchronous) | Current of quadrature axis 2nd damper in pu | |
| Types.PerUnit | ifPu (from BaseGeneratorSynchronous) | Current of excitation winding in pu | |
| Types.PerUnit | ufPu (from BaseGeneratorSynchronous) | Voltage of exciter winding in pu (base voltage as per Kundur) | |
| Types.PerUnit | lambdadPu (from BaseGeneratorSynchronous) | Flux of direct axis in pu | |
| Types.PerUnit | lambdaqPu (from BaseGeneratorSynchronous) | Flux of quadrature axis in pu | |
| Types.PerUnit | lambdaDPu (from BaseGeneratorSynchronous) | Flux of direct axis damper in pu | |
| Types.PerUnit | lambdafPu (from BaseGeneratorSynchronous) | Flux of excitation winding in pu | |
| Types.PerUnit | lambdaQ1Pu (from BaseGeneratorSynchronous) | Flux of quadrature axis 1st damper in pu | |
| Types.PerUnit | lambdaQ2Pu (from BaseGeneratorSynchronous) | Flux of quadrature axis 2nd damper in pu | |
| Types.Angle | theta (from BaseGeneratorSynchronous) | Rotor angle: angle between machine rotor frame and port phasor frame | |
| Types.PerUnit | cmPu (from BaseGeneratorSynchronous) | Mechanical torque in pu (base PNomTurb/OmegaNom) | |
| Types.PerUnit | cePu (from BaseGeneratorSynchronous) | Electrical torque in pu (base SNom/OmegaNom) | |
| Types.PerUnit | PePu (from BaseGeneratorSynchronous) | Electrical active power in pu (base SNom) | |
| Types.PerUnit | MdSatPPu (from BaseGeneratorSynchronous) | Direct axis saturated mutual inductance in pu | |
| Types.PerUnit | MqSatPPu (from BaseGeneratorSynchronous) | Quadrature axis saturated mutual inductance in pu | |
| Types.PerUnit | lambdaAirGapPu (from BaseGeneratorSynchronous) | Total air gap flux in pu | |
| Types.PerUnit | lambdaADPu (from BaseGeneratorSynchronous) | Common flux of direct axis in pu | |
| Types.PerUnit | lambdaAQPu (from BaseGeneratorSynchronous) | Common flux of quadrature axis in pu | |
| Types.PerUnit | mdsPu (from BaseGeneratorSynchronous) | Direct axis saturated mutual inductance in the case when the total air gap flux is aligned on the direct axis in pu | |
| Types.PerUnit | mqsPu (from BaseGeneratorSynchronous) | Quadrature axis saturated mutual inductance in the case when the total air gap flux is aligned on the quadrature axis in pu | |
| Types.PerUnit | cos2Eta (from BaseGeneratorSynchronous) | Common flux of direct axis contribution to the total air gap flux in pu | |
| Types.PerUnit | sin2Eta (from BaseGeneratorSynchronous) | Common flux of quadrature axis contribution to the total air gap flux in pu | |
| Types.PerUnit | miPu (from BaseGeneratorSynchronous) | Intermediate axis saturated mutual inductance in pu | |
| Types.VoltageModulePu | UPu (from GeneratorSynchronous) | Voltage amplitude at terminal in pu (base UNom) | |
| Types.ActivePowerPu | PGenPu (from GeneratorSynchronous) | Active power generated by the synchronous machine in pu (base SnRef) | |
| Types.ReactivePowerPu | QGenPu (from GeneratorSynchronous) | Reactive power generated by the synchronous machine in pu (base SnRef) | |
| Types.ActivePower | PGen (from GeneratorSynchronous) | Active power generated by the synchronous machine in MW | |
| Types.ReactivePower | QGen (from GeneratorSynchronous) | Reactive power generated by the synchronous machine in Mvar | |
| Types.ComplexApparentPowerPu | sStatorPu (from GeneratorSynchronous) | Complex apparent power at stator side in pu (base SnRef) | |
| Types.ComplexVoltagePu | uStatorPu (from GeneratorSynchronous) | Complex voltage at stator side in pu (base UNom) | |
| Types.ComplexVoltagePu | uPu (from GeneratorSynchronous) | Complex voltage at terminal in pu (base UNom) | |
| Types.ComplexCurrentPu | iStatorPu (from GeneratorSynchronous) | Complex current at stator side in pu (base UNom, SnRef) | |
| Dynawo.Electrical.Machines.OmegaRef.GeneratorSynchronousExt4W_INIT | gen_init4 |