modelVSourceIO

Generic voltage source behind an internal impedance with inputs that vary the internal source magnitude and angle from steady state

Extends from BaseClasses.baseVoltageSource (Base model for voltage sources behind an impedance).

Information

The purpose of this model is to support the development of Grid-Forming Inverter models as described in [Du2021]. The model provides a voltage source with an internal voltage source and internal impedance whose magnitude and angle can be varied via inputs starting from their initial values.

See the documentation of BaseClasses.baseVoltageSource for more information.

Parameters

TypeNameDefaultDescription
BooleanuseEphasorInternalAsInputtrueIf true, the values of E0 and delta0 are computed internally and used as the start value of the input, requiring only a deviation \Delta E and \Delta delta to be supplied. If false, the magnitude E and angle delta must be supplied, including the correct value of E0 and delta0 needed for proper initialization.
Power flow data
Types.ApparentPowerS_b (from pfComponent)SysData.S_bSystem base power
Types.VoltageV_b (from pfComponent)400e3Base voltage of the bus
Types.Frequencyfn (from pfComponent)SysData.fnSystem frequency
Types.ActivePowerP_0 (from pfComponent)1e6Initial active power
Types.ReactivePowerQ_0 (from pfComponent)0Initial reactive power
Types.PerUnitv_0 (from pfComponent)1Initial voltage magnitude
Types.Angleangle_0 (from pfComponent)0Initial voltage angle
BooleandisplayPF (from pfComponent)falseDisplay power flow:
Parameter mask
BooleanenableS_b (from pfComponent)falseEnable S_b in parameter list
BooleanenableV_b (from pfComponent)falseEnable V_b in parameter list
Booleanenablefn (from pfComponent)falseEnable fn in parameter list
BooleanenableP_0 (from pfComponent)falseEnable P_0 in parameter list
BooleanenableQ_0 (from pfComponent)falseEnable Q_0 in parameter list
Booleanenablev_0 (from pfComponent)falseEnable v_0 in parameter list
Booleanenableangle_0 (from pfComponent)falseEnable angle_0 in parameter list
BooleanenabledisplayPF (from pfComponent)falseEnable displayPF in parameter list
Voltage Source parameters
OpenIPSL.Types.ApparentPowerM_b (from baseVoltageSource)SysData.S_bVoltage Source base power rating (MVA)
OpenIPSL.Types.PerUnitR_a (from baseVoltageSource)1e-3Internal source resistance, pu, system base
OpenIPSL.Types.PerUnitX_d (from baseVoltageSource)0.2Internal source d-axis reactance, pu, system base

Connectors

TypeNameDefaultDescription
OpenIPSL.Interfaces.PwPin_pp (from baseVoltageSource)Instantiation of graphical component PwPin_p
RealOutputEmag (from baseVoltageSource)Internal voltage magnitude
RealOutputEdelta (from baseVoltageSource)Internal voltage angle
RealOutputEmag0 (from baseVoltageSource)Initial value of the internal voltage source magnitude
RealOutputEang0 (from baseVoltageSource)Initial value of the internal voltage angle
Modelica.Blocks.Interfaces.RealInputuDEmagInput to vary the voltage magnitude of the voltage source
Modelica.Blocks.Interfaces.RealInputuDEangInput to vary the angle of the voltage source

Components

TypeNameDefaultDescription
OpenIPSL.Electrical.SystemBaseSysData (from baseVoltageSource)
OpenIPSL.Types.PerUnitV (from baseVoltageSource)Bus voltage magnitude
OpenIPSL.Types.Angleanglev (from baseVoltageSource)Bus voltage angle
OpenIPSL.Types.PerUnitP (from baseVoltageSource)Active power (system base)
OpenIPSL.Types.PerUnitQ (from baseVoltageSource)Reactive power (system base)
OpenIPSL.Types.Angledelta (from baseVoltageSource)Internal voltage source angle
OpenIPSL.Types.PerUnitE (from baseVoltageSource)Internal voltage source magnitude
Modelica.Blocks.Math.PolarToRectangularp2RConvert from magnitude and angle to real and imaginary