modelCurrentSourceReImInput

Ideal current source with user defined real and imaginary parts of the current phasor

Extends from OpenIPSL.Electrical.Essentials.pfComponent (Partial model containing all the parameters for entering power flow data).

Information

This model allows the user to specify the voltage real and imaginary part of the voltage phasor of an ideal voltage source.

The value of each part of the phasor have to be provided through sources from Modelica.Blocks.Sources with Real valued interfaces to be connected to the vRe and vIm real interfaces.

Parameters

TypeNameDefaultDescription
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

Connectors

TypeNameDefaultDescription
OpenIPSL.Interfaces.PwPinp
Modelica.Blocks.Interfaces.RealInputiReReal Part of voltage phasor
Modelica.Blocks.Interfaces.RealInputiImImaginary Part of Voltage Phasor

Components

TypeNameDefaultDescription
OpenIPSL.Electrical.SystemBaseSysData (from pfComponent)Must add this line in all models
Types.AngleangleBus voltage angle
Types.VoltagevBus voltage magnitude
Types.ActivePowerPActive Power absorbed or provided by the source
Types.ReactivePowerQReactive Power absorbed or provided by the source

Revisions

Reference

None.

Last update

2022-11-02 (First commit)

Author

Luigi Vanfretti, Rensselaer Polytechnic Institute

Contact

see UsersGuide.Contact