modelConverter

Converter model for grid forming and grid following applications

Extends from Dynawo.Electrical.Controls.Basics.SwitchOff.SwitchOffGenerator (Switch-off model for a generator).

Parameters

TypeNameDefaultDescription
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.PerUnitRFilterFilter resistance in pu (base UNom, SNom)
Types.PerUnitLFilterFilter inductance in pu (base UNom, SNom)
Types.PerUnitCFilterFilter capacitance in pu (base UNom, SNom)
Types.PerUnitRTransformerTransformer resistance in pu (base UNom, SNom)
Types.PerUnitLTransformerTransformer inductance in pu (base UNom, SNom)
Types.ApparentPowerModuleSNomNominal apparent power module for the converter
Types.PerUnitCdcDC capacitance in pu (base UdcNom, SNom)
Types.ComplexPerUniti0PuStart value of the complex current at terminal in pu (base UNom, SnRef) (receptor convention)
Types.ComplexPerUnitu0PuStart value of the complex voltage at terminal in pu (base UNom)
Types.PerUnitUdPcc0PuStart value of the d-axis voltage at the PCC in pu (base UNom)
Types.PerUnitUqPcc0PuStart value of the q-axis voltage at the PCC in pu (base UNom)
Types.PerUnitIdcSource0PuStart value of DC current in pu (base UdcNom, SNom)
Types.PerUnitUdcSource0PuStart value of DC voltage in pu (base UdcNom)
Types.PerUnitUdConv0PuStart value of d-axis modulation voltage in pu (base UNom)
Types.PerUnitUqConv0PuStart value of q-axis modulation voltage in pu (base UNom)
Types.PerUnitIdConv0PuStart value of d-axis current in the converter in pu (base UNom, SNom) (generator convention)
Types.PerUnitIqConv0PuStart value of q-axis current in the converter in pu (base UNom, SNom) (generator convention)
Types.PerUnitIdPcc0PuStart value of d-axis current in the grid in pu (base UNom, SNom) (generator convention)
Types.PerUnitIqPcc0PuStart value of q-axis current in the grid in pu (base UNom, SNom) (generator convention)
Types.PerUnitUdFilter0PuStart value of d-axis voltage at the converter's capacitor in pu (base UNom)
Types.PerUnitUqFilter0PuStart value of q-axis voltage at the converter's capacitor in pu (base UNom)
Types.AngleTheta0Start value of phase shift between the converter's rotating frame and the grid rotating frame in rad
Types.ActivePowerPuPFilter0PuStart value of active power generated at the converter's capacitor in pu (base SNom) (generator convention)
Types.ReactivePowerPuQFilter0PuStart value of reactive power generated at the converter's capacitor in pu (base SNom) (generator convention)
Types.AngleUPhase0Start value of voltage angle at terminal in rad
Types.PerUnitIConv0PuStart value of module of the current injected by the converter in pu (base UNom, SNom)
Types.PerUnitPGen0PuStart value of active power generated by the converter at the PCC in pu (base UNom, SnRef) (generator convention)
Types.PerUnitQGen0PuStart value of reactive power generated by the converter at the PCC in pu (base UNom, SnRef) (generator convention)
Types.VoltageModulePuU0PuStart value of voltage module at terminal in pu (base UNom)

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.ACPowerterminalConnector used to connect the converter to the grid
Modelica.Blocks.Interfaces.RealInputIdcSourcePuDC current in pu (base UdcNom, SNom)
Modelica.Blocks.Interfaces.RealInputudConvRefPud-axis modulation voltage reference in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputuqConvRefPuq-axis modulation voltage reference in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputthetaPhase shift between the converter's rotating frame and the grid rotating frame in rad
Modelica.Blocks.Interfaces.RealInputomegaPuConverter's frequency in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputUdcSourceRefPuDC voltage reference in pu (base UdcNom)
Modelica.Blocks.Interfaces.RealOutputudFilterPud-axis voltage at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputuqFilterPuq-axis voltage at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputidConvPud-axis current in the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputiqConvPuq-axis current in the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputidPccPud-axis current in the grid in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputiqPccPuq-axis current in the grid in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputUdcSourcePuDC voltage in pu (base UdcNom)
Modelica.Blocks.Interfaces.RealOutputPFilterPuActive power generated at the converter's capacitor in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputQFilterPuReactive power generated at the converter's capacitor in pu (base SNom) (generator convention)

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.PerUnitudConvPud-axis modulation voltage in pu (base UNom)
Types.PerUnituqConvPuq-axis modulation voltage in pu (base UNom)
Types.PerUnitudPccPud-axis voltage at the PCC in pu (base UNom)
Types.PerUnituqPccPuq-axis voltage at the PCC in pu (base UNom)
Types.PerUnitIdcPuDC Current entering the converter in pu (base UdcNom, SNom)
Types.PerUnitIConvPuModule of the current injected by the converter in pu (base UNom, SNom)
Types.PerUnitPGenPuActive power generated by the converter at the PCC in pu (base UNom, SnRef) (generator convention)
Types.PerUnitQGenPuReactive power generated by the converter at the PCC in pu (base UNom, SnRef) (generator convention)
Types.AngleUPhaseVoltage angle at terminal in rad
Types.VoltageModulePuUPuVoltage module at terminal in pu (base UNom)