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

TypeNameDefaultDescription
Types.VoltageModuleUNom (from GeneratorSynchronousParameters)Nominal voltage in kV
Types.ApparentPowerModuleSNom (from GeneratorSynchronousParameters)Nominal apparent power in MVA
Types.ActivePowerPNomTurb (from GeneratorSynchronousParameters)Nominal active (turbine) power in MW
Types.ActivePowerPNomAlt (from GeneratorSynchronousParameters)Nominal active (alternator) power in MW
Types.ReactivePowerQNomAlt (from GeneratorSynchronousParameters)sqrt(SNom*SNom - PNomAlt*PNomAlt)Nominal reactive (alternator) power in Mvar
ExcitationPuTypeExcitationPu (from GeneratorSynchronousParameters)Choice of excitation base voltage
Types.TimeH (from GeneratorSynchronousParameters)Kinetic constant = kinetic energy / rated power
Types.PerUnitDPu (from GeneratorSynchronousParameters)Damping coefficient of the swing equation in pu
Types.ApparentPowerModuleSnTfo (from GeneratorSynchronousParameters)Nominal apparent power of the generator transformer in MVA
Types.VoltageModuleUNomHV (from GeneratorSynchronousParameters)Nominal voltage on the network side of the transformer in kV
Types.VoltageModuleUNomLV (from GeneratorSynchronousParameters)Nominal voltage on the generator side of the transformer in kV
Types.VoltageModuleUBaseHV (from GeneratorSynchronousParameters)Base voltage on the network side of the transformer in kV
Types.VoltageModuleUBaseLV (from GeneratorSynchronousParameters)Base voltage on the generator side of the transformer in kV
Types.PerUnitRTfPu (from GeneratorSynchronousParameters)Resistance of the generator transformer in pu (base UBaseHV, SnTfo)
Types.PerUnitXTfPu (from GeneratorSynchronousParameters)Reactance of the generator transformer in pu (base UBaseHV, SnTfo)
Types.PerUnitmd (from GeneratorSynchronousParameters)Parameter for direct axis mutual inductance saturation modelling
Types.PerUnitmq (from GeneratorSynchronousParameters)Parameter for quadrature axis mutual inductance saturation modelling
Types.PerUnitnd (from GeneratorSynchronousParameters)Parameter for direct axis mutual inductance saturation modelling
Types.PerUnitnq (from GeneratorSynchronousParameters)Parameter for quadrature axis mutual inductance saturation modelling
Types.PerUnitRTfoPu (from GeneratorSynchronousParameters)RTfPu*(UNomHV/UBaseHV)^2*(SNom/SnTfo)Resistance of the generator transformer in pu (base SNom, UNom)
Types.PerUnitXTfoPu (from GeneratorSynchronousParameters)XTfPu*(UNomHV/UBaseHV)^2*(SNom/SnTfo)Reactance of the generator transformer in pu (base SNom, UNom)
Types.PerUnitrTfoPu (from GeneratorSynchronousParameters)if RTfPu > 0.0 or XTfPu > 0.0 then UNomHV/UBaseHV/(UNomLV/UBaseLV) else 1.0Ratio of the generator transformer in pu (base UBaseHV, UBaseLV)
IntegerNbSwitchOffSignals (from SwitchOffLogic)Number of switch-off signals to take into account in inputs
BooleanSwitchOffSignal10 (from SwitchOffLogic)falseInitial switch-off signal 1
BooleanSwitchOffSignal20 (from SwitchOffLogic)falseInitial switch-off signal 2
BooleanSwitchOffSignal30 (from SwitchOffLogic)falseInitial switch-off signal 3
BooleanRunning0 (from SwitchOffLogic)if NbSwitchOffSignals >= 3 then not (SwitchOffSignal10 or SwitchOffSignal20 or SwitchOffSignal30) elseif NbSwitchOffSignals >= 2 then not (SwitchOffSignal10 or SwitchOffSignal20) else not SwitchOffSignal10Indicates if the component is initially running or not
Constants.stateState0 (from SwitchOffGenerator)Constants.state.ClosedStart value of connection state
Types.PerUnitRaPPu (from BaseGeneratorSynchronous)Armature resistance in pu
Types.PerUnitLdPPu (from BaseGeneratorSynchronous)Direct axis stator leakage in pu
Types.PerUnitMdPPu (from BaseGeneratorSynchronous)Direct axis mutual inductance in pu
Types.PerUnitLDPPu (from BaseGeneratorSynchronous)Direct axis damper leakage in pu
Types.PerUnitRDPPu (from BaseGeneratorSynchronous)Direct axis damper resistance in pu
Types.PerUnitMrcPPu (from BaseGeneratorSynchronous)Canay's mutual inductance in pu
Types.PerUnitLfPPu (from BaseGeneratorSynchronous)Excitation winding leakage in pu
Types.PerUnitRfPPu (from BaseGeneratorSynchronous)Excitation winding resistance in pu
Types.PerUnitLqPPu (from BaseGeneratorSynchronous)Quadrature axis stator leakage in pu
Types.PerUnitMqPPu (from BaseGeneratorSynchronous)Quadrature axis mutual inductance in pu
Types.PerUnitLQ1PPu (from BaseGeneratorSynchronous)Quadrature axis 1st damper leakage in pu
Types.PerUnitRQ1PPu (from BaseGeneratorSynchronous)Quadrature axis 1st damper resistance in pu
Types.PerUnitLQ2PPu (from BaseGeneratorSynchronous)Quadrature axis 2nd damper leakage in pu
Types.PerUnitRQ2PPu (from BaseGeneratorSynchronous)Quadrature axis 2nd damper resistance in pu
Types.PerUnitMsalPu (from BaseGeneratorSynchronous)Constant difference between direct and quadrature axis saturated mutual inductances in pu
Types.PerUnitMdPPuEfd (from BaseGeneratorSynchronous)Direct axis mutual inductance used to determine the excitation voltage in pu
Types.PerUnitMdPPuEfdNom (from BaseGeneratorSynchronous)Direct axis mutual inductance used to determine the excitation voltage in nominal conditions in pu
Types.PerUnitKuf (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/MdPPuEfdNomScaling factor for excitation pu voltage
Types.VoltageModulePuU0Pu (from BaseGeneratorSynchronous)Start value of voltage amplitude in pu (base UNom)
Types.ActivePowerPuP0Pu (from BaseGeneratorSynchronous)Start value of active power at terminal in pu (base SnRef) (receptor convention)
Types.ReactivePowerPuQ0Pu (from BaseGeneratorSynchronous)Start value of reactive power at terminal in pu (base SnRef) (receptor convention)
Types.AngleUPhase0 (from BaseGeneratorSynchronous)Start value of voltage angle in rad
Types.PerUnitEfd0Pu (from BaseGeneratorSynchronous)Start value of input exciter voltage in pu (user-selected base)
Types.PerUnitPm0Pu (from BaseGeneratorSynchronous)Start value of mechanical power in pu (base PNomTurb/OmegaNom)
Types.ComplexApparentPowerPus0Pu (from BaseGeneratorSynchronous)Start value of complex apparent power at terminal in pu (base SnRef)
Types.ComplexVoltagePuu0Pu (from BaseGeneratorSynchronous)Start value of complex voltage at terminal in pu (base UNom)
Types.ComplexCurrentPui0Pu (from BaseGeneratorSynchronous)Start value of complex current at terminal in pu (base UNom, SnRef)
Types.AngleTheta0 (from BaseGeneratorSynchronous)Start value of rotor angle: angle between machine rotor frame and port phasor frame
Types.PerUnitUd0Pu (from BaseGeneratorSynchronous)Start value of voltage of direct axis in pu
Types.PerUnitUq0Pu (from BaseGeneratorSynchronous)Start value of voltage of quadrature axis in pu
Types.PerUnitId0Pu (from BaseGeneratorSynchronous)Start value of current of direct axis in pu
Types.PerUnitIq0Pu (from BaseGeneratorSynchronous)Start value of current of quadrature axis in pu
Types.PerUnitIf0Pu (from BaseGeneratorSynchronous)Start value of current of excitation winding in pu
Types.PerUnitUf0Pu (from BaseGeneratorSynchronous)Start value of exciter voltage in pu (Kundur base)
Types.PerUnitLambdad0Pu (from BaseGeneratorSynchronous)Start value of flux of direct axis in pu
Types.PerUnitLambdaq0Pu (from BaseGeneratorSynchronous)Start value of flux of quadrature axis in pu
Types.PerUnitLambdaD0Pu (from BaseGeneratorSynchronous)Start value of flux of direct axis damper
Types.PerUnitLambdaf0Pu (from BaseGeneratorSynchronous)Start value of flux of excitation winding
Types.PerUnitLambdaQ10Pu (from BaseGeneratorSynchronous)Start value of flux of quadrature axis 1st damper
Types.PerUnitLambdaQ20Pu (from BaseGeneratorSynchronous)Start value of flux of quadrature axis 2nd damper
Types.PerUnitCe0Pu (from BaseGeneratorSynchronous)Start value of electrical torque in pu (base SNom/OmegaNom)
Types.PerUnitCm0Pu (from BaseGeneratorSynchronous)Start value of mechanical torque in pu (base PNomTurb/OmegaNom)
Types.PerUnitMdSat0PPu (from BaseGeneratorSynchronous)Start value of direct axis saturated mutual inductance in pu
Types.PerUnitMqSat0PPu (from BaseGeneratorSynchronous)Start value of quadrature axis saturated mutual inductance in pu
Types.PerUnitLambdaAirGap0Pu (from BaseGeneratorSynchronous)Start value of total air gap flux in pu
Types.PerUnitLambdaAD0Pu (from BaseGeneratorSynchronous)Start value of common flux of direct axis in pu
Types.PerUnitLambdaAQ0Pu (from BaseGeneratorSynchronous)Start value of common flux of quadrature axis in pu
Types.PerUnitMds0Pu (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.PerUnitMqs0Pu (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.PerUnitCos2Eta0 (from BaseGeneratorSynchronous)Start value of the common flux of direct axis contribution to the total air gap flux in pu
Types.PerUnitSin2Eta0 (from BaseGeneratorSynchronous)Start value of the common flux of quadrature axis contribution to the total air gap flux in pu
Types.PerUnitMi0Pu (from BaseGeneratorSynchronous)Start value of intermediate axis saturated mutual inductance in pu
Types.ActivePowerPuPGen0Pu (from GeneratorSynchronous)Start value of active power at terminal in pu (base SnRef) (generator convention)
Types.ReactivePowerPuQGen0Pu (from GeneratorSynchronous)Start value of reactive power at terminal in pu (base SnRef) (generator convention)
Types.ComplexApparentPowerPusStator0Pu (from GeneratorSynchronous)Start value of complex apparent power at stator side in pu (base SnRef)
Types.ComplexVoltagePuuStator0Pu (from GeneratorSynchronous)Start value of complex voltage at stator side in pu (base UNom)
Types.ComplexCurrentPuiStator0Pu (from GeneratorSynchronous)Start value of complex current at stator side in pu (base UNom, SnRef)
Types.VoltageModulePuUStator0Pu (from GeneratorSynchronous)Start value of stator voltage amplitude in pu (base UNom)
Types.CurrentModulePuIStator0Pu (from GeneratorSynchronous)Start value of stator current amplitude in pu (base UNom, SnRef)
Types.ReactivePowerPuQStator0Pu (from GeneratorSynchronous)Start value of stator reactive power generated in pu (base SnRef)
Types.ReactivePowerPuQStator0PuQNom (from GeneratorSynchronous)Start value of stator reactive power generated in pu (base QNomAlt)
Types.CurrentModulePuIRotor0Pu (from GeneratorSynchronous)Start value of rotor current in pu (base SNom, user-selected base voltage)
Types.AngleThetaInternal0 (from GeneratorSynchronous)Start value of internal angle in rad
Types.PerUnitRaPuArmature resistance in pu (base SNom, UNom)
Types.PerUnitXlPuStator leakage in pu (base SNom, UNom)
Types.PerUnitXdPuDirect axis reactance in pu (base SNom, UNom)
Types.PerUnitXpdPuDirect axis transient reactance in pu (base SNom, UNom)
Types.PerUnitXppdPuDirect axis sub-transient reactance in pu (base SNom, UNom)
Types.PerUnitXqPuQuadrature axis reactance in pu (base SNom, UNom)
Types.PerUnitXpqPuQuadrature axis transient reactance in pu (base SNom, UNom)
Types.PerUnitXppqPuQuadrature axis sub-transient reactance in pu (base SNom, UNom)
Types.TimeTpd0Direct axis, open circuit transient time constant in s
Types.TimeTppd0Direct axis, open circuit sub-transient time constant in s
Types.TimeTpq0Open circuit quadrature axis transient time constant in s
Types.TimeTppq0Open circuit quadrature axis sub-transient time constant in s

Connectors

TypeNameDefaultDescription
Dynawo.Connectors.BPinswitchOffSignal1 (from SwitchOffLogic)Switch-off signal 1
Dynawo.Connectors.BPinswitchOffSignal2 (from SwitchOffLogic)Switch-off signal 2
Dynawo.Connectors.BPinswitchOffSignal3 (from SwitchOffLogic)Switch-off signal 3
Dynawo.Connectors.BPinrunning (from SwitchOffLogic)Indicates if the component is running or not
Dynawo.Connectors.ACPowerterminal (from BaseGeneratorSynchronous)Connector used to connect the synchronous generator to the grid
Dynawo.Connectors.ImPinomegaRefPu (from BaseGeneratorSynchronous)Reference frequency in pu
Dynawo.Connectors.ImPinPmPu (from BaseGeneratorSynchronous)Mechanical power in pu (base PNomTurb)
Dynawo.Connectors.ImPinefdPu (from BaseGeneratorSynchronous)Input voltage of exciter winding in pu (user-selected base voltage)
Dynawo.Connectors.ImPinomegaPu (from BaseGeneratorSynchronous)Angular frequency in pu
Dynawo.Connectors.ImPinUStatorPu (from GeneratorSynchronous)Stator voltage amplitude in pu (base UNom)
Dynawo.Connectors.ImPinIStatorPu (from GeneratorSynchronous)Stator current amplitude in pu (base UNom, SnRef)
Dynawo.Connectors.ImPinQStatorPu (from GeneratorSynchronous)Stator reactive power generated in pu (base SnRef)
Dynawo.Connectors.ImPinQStatorPuQNom (from GeneratorSynchronous)Stator reactive power generated in pu (base QNomAlt)
Dynawo.Connectors.ImPinIRotorPu (from GeneratorSynchronous)Rotor current in pu (base SNom, user-selected base voltage)
Dynawo.Connectors.ImPinthetaInternal (from GeneratorSynchronous)Internal angle in rad

Components

TypeNameDefaultDescription
Constants.statestate (from SwitchOffGenerator)Generator connection state
RealgenState (from SwitchOffGenerator)Generator continuous connection state
Modelica.Blocks.Math.IntegerToRealconverter (from SwitchOffGenerator)Converter for generator state
Types.PerUnitudPu (from BaseGeneratorSynchronous)Voltage of direct axis in pu
Types.PerUnituqPu (from BaseGeneratorSynchronous)Voltage of quadrature axis in pu
Types.PerUnitidPu (from BaseGeneratorSynchronous)Current of direct axis in pu
Types.PerUnitiqPu (from BaseGeneratorSynchronous)Current of quadrature axis in pu
Types.PerUnitiDPu (from BaseGeneratorSynchronous)Current of direct axis damper in pu
Types.PerUnitiQ1Pu (from BaseGeneratorSynchronous)Current of quadrature axis 1st damper in pu
Types.PerUnitiQ2Pu (from BaseGeneratorSynchronous)Current of quadrature axis 2nd damper in pu
Types.PerUnitifPu (from BaseGeneratorSynchronous)Current of excitation winding in pu
Types.PerUnitufPu (from BaseGeneratorSynchronous)Voltage of exciter winding in pu (base voltage as per Kundur)
Types.PerUnitlambdadPu (from BaseGeneratorSynchronous)Flux of direct axis in pu
Types.PerUnitlambdaqPu (from BaseGeneratorSynchronous)Flux of quadrature axis in pu
Types.PerUnitlambdaDPu (from BaseGeneratorSynchronous)Flux of direct axis damper in pu
Types.PerUnitlambdafPu (from BaseGeneratorSynchronous)Flux of excitation winding in pu
Types.PerUnitlambdaQ1Pu (from BaseGeneratorSynchronous)Flux of quadrature axis 1st damper in pu
Types.PerUnitlambdaQ2Pu (from BaseGeneratorSynchronous)Flux of quadrature axis 2nd damper in pu
Types.Angletheta (from BaseGeneratorSynchronous)Rotor angle: angle between machine rotor frame and port phasor frame
Types.PerUnitcmPu (from BaseGeneratorSynchronous)Mechanical torque in pu (base PNomTurb/OmegaNom)
Types.PerUnitcePu (from BaseGeneratorSynchronous)Electrical torque in pu (base SNom/OmegaNom)
Types.PerUnitPePu (from BaseGeneratorSynchronous)Electrical active power in pu (base SNom)
Types.PerUnitMdSatPPu (from BaseGeneratorSynchronous)Direct axis saturated mutual inductance in pu
Types.PerUnitMqSatPPu (from BaseGeneratorSynchronous)Quadrature axis saturated mutual inductance in pu
Types.PerUnitlambdaAirGapPu (from BaseGeneratorSynchronous)Total air gap flux in pu
Types.PerUnitlambdaADPu (from BaseGeneratorSynchronous)Common flux of direct axis in pu
Types.PerUnitlambdaAQPu (from BaseGeneratorSynchronous)Common flux of quadrature axis in pu
Types.PerUnitmdsPu (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.PerUnitmqsPu (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.PerUnitcos2Eta (from BaseGeneratorSynchronous)Common flux of direct axis contribution to the total air gap flux in pu
Types.PerUnitsin2Eta (from BaseGeneratorSynchronous)Common flux of quadrature axis contribution to the total air gap flux in pu
Types.PerUnitmiPu (from BaseGeneratorSynchronous)Intermediate axis saturated mutual inductance in pu
Types.VoltageModulePuUPu (from GeneratorSynchronous)Voltage amplitude at terminal in pu (base UNom)
Types.ActivePowerPuPGenPu (from GeneratorSynchronous)Active power generated by the synchronous machine in pu (base SnRef)
Types.ReactivePowerPuQGenPu (from GeneratorSynchronous)Reactive power generated by the synchronous machine in pu (base SnRef)
Types.ActivePowerPGen (from GeneratorSynchronous)Active power generated by the synchronous machine in MW
Types.ReactivePowerQGen (from GeneratorSynchronous)Reactive power generated by the synchronous machine in Mvar
Types.ComplexApparentPowerPusStatorPu (from GeneratorSynchronous)Complex apparent power at stator side in pu (base SnRef)
Types.ComplexVoltagePuuStatorPu (from GeneratorSynchronous)Complex voltage at stator side in pu (base UNom)
Types.ComplexVoltagePuuPu (from GeneratorSynchronous)Complex voltage at terminal in pu (base UNom)
Types.ComplexCurrentPuiStatorPu (from GeneratorSynchronous)Complex current at stator side in pu (base UNom, SnRef)
Dynawo.Electrical.Machines.OmegaRef.GeneratorSynchronousExt4W_INITgen_init4