modelPortAC

AC port computing auxiliary quantities

Information

This model computes quantities associated to an AC port that can be useful or relevant for modelling and monitoring purposes, such as the complex power flow, the absolute value of the phase-to-phase voltage, the angle of the current, or various per-unit quantities. The phase-to-ground voltage and line current phasors must be assigned as inputs.

Per-unit quantities, angles and quantities using the generator convention are defined if the corresponding parameters portVariablesPu, portVariablesAngles, and generatorConvention are set to true, respectively.

Parameters

TypeNameDefaultDescription
Types.PowerSNomNominal or rated power
Types.VoltageUNomNominal or rated phase-to-phase voltage
Types.PowerSBaseSNomBase power
Types.VoltageUBaseUNomBase phase-to-phase voltage
Types.PowerPStartStart value of active power flowing into port
Types.PowerQStartStart value of reactive power flowing into port
Types.VoltageUStartUNomStart value of phase-to-phase voltage modulus
Types.AngleUPhaseStart0Start value of voltage phase
BooleanportVariablesPhasesfalseCompute voltage and current phases for monitoring purposes only
BooleanportVariablesPutrueAdd per-unit variables to model
BooleangeneratorConventionfalseAdd currents with generator convention (i > 0 when exiting the device) to model
Types.VoltageVBaseUBase/sqrt(3)Base phase-to-ground voltage
Types.CurrentIBaseSBase/(3*VBase)Base current
Types.VoltageVStartUStart/sqrt(3)Start value of phase-to ground voltage modulus
Types.CurrentIStartsqrt(PStart^2 + QStart^2)/(3*VStart)Start value of current modulus
Types.ComplexVoltagevStartCM.fromPolar(UStart/sqrt(3), UPhaseStart)Start value of phase-to-ground voltage phasor
Types.ComplexCurrentiStartCM.conj(Complex(PStart, QStart)/(Complex(3)*vStart))Start value of current phasor flowing into the port

Components

TypeNameDefaultDescription
InputComplexVoltagevPort voltage (line-to-neutral)
InputComplexCurrentiPort current
Types.ComplexVoltageusqrt(3)*vComplex phase-to-phase voltage
Types.ComplexPowerS3*v*CM.conj(i)Complex power flowing into the port
Types.ActivePowerPS.reActive power flowing into the port
Types.ReactivePowerQS.imReactive power flowing into the port
Types.VoltageUCM.'abs'(u)Port voltage absolute value (phase-to-phase)
Types.CurrentICM.'abs'(i)Port current (positive entering)
Types.PerUnitPPuif portVariablesPu then S.re/SBase else 0Active power flowing into the port in p.u. (base SBase)
Types.PerUnitQPuif portVariablesPu then S.im/SBase else 0Reactive power flowing into the port in p.u. (base SBase)
Types.ComplexPerUnitvPuif portVariablesPu then u*(1/UBase) else Complex(0)Complex voltage across the port in p.u. (base VBase)
SI.PerUnitVPuif portVariablesPu then U/UBase else 0Absolute value of voltage across the port in p.u. (base VBase)
Types.ComplexPerUnitiPuif portVariablesPu then i*(1/IBase) else Complex(0)Complex current flowing into the port in p.u. (base IBase)
SI.PerUnitIPuif portVariablesPu then I/IBase else 0Absolute value of complex current flowing into the port in p.u. (base IBase)
Types.AngleUPhaseif portVariablesPhases then atan2(v.im, v.re) else 0Phase of voltage across the port
Types.AngleIPhaseif portVariablesPhases then atan2(i.im, i.re) else 0Phase of current into the port
Types.ComplexCurrentiGen-iPort current, generator convention
Types.ActivePowerPGen-S.reActive power flowing out of the port
Types.ReactivePowerQGen-S.imReactive power flowing out of the port
Types.PerUnitPGenPu-PPuActive power flowing out of the port in p.u. (base SBase)
Types.PerUnitQGenPu-QPuReactive power flowing out of the port in p.u. (base SBase)
Types.ComplexPerUnitiGenPu-iPuComplex current flowing out of the port in p.u. (base IBase)
SI.PerUnitIGenPuif portVariablesPu and generatorConvention then I/IBase else 0Absolute value of current flowing out of the port in p.u. (base IBase)

Contents

NameDescription
InputComplexVoltageMarks potential input for balancedness check without requiring binding equation
InputComplexCurrentMarks potential input for balancedness check without requiring binding equation