modelOnePort

Two plugs, reference connection and declaration of voltage and current

Information

This partial model uses a positive and negative plug and defines the complex voltage differences as well as the complex currents (into the positive plug). A positive and a negative adapter are used to give easy access to the single pins of both plugs. Additionally, the angular velocity of the quasi-static system is explicitly defined as variable. This model is mainly intended to be used with textual representation of user models.

See also

PositivePlug, NegativePlug, TwoPlug, OnePort

Parameters

TypeNameDefaultDescription
Integerm3Number of phases

Connectors

TypeNameDefaultDescription
PositivePlugplug_pPositive quasi-static polyphase plug
NegativePlugplug_nNegative quasi-static polyphase plug

Components

TypeNameDefaultDescription
SI.ComplexVoltage[m]vComplex voltage
SI.Voltage[m]abs_vModelica.ComplexMath.abs(v)Magnitude of complex voltage
SI.Angle[m]arg_vModelica.ComplexMath.arg(v)Argument of complex voltage
SI.ComplexCurrent[m]iComplex current
SI.Current[m]abs_iModelica.ComplexMath.abs(i)Magnitude of complex current
SI.Angle[m]arg_iModelica.ComplexMath.arg(i)Argument of complex current
SI.ActivePower[m]P{Modelica.ComplexMath.real(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Active power
SI.ActivePowerP_totalsum(P)Total active power
SI.ReactivePower[m]Q{Modelica.ComplexMath.imag(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Reactive power
SI.ReactivePowerQ_totalsum(Q)Total reactive power
SI.ApparentPower[m]S{Modelica.ComplexMath.abs(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Magnitude of complex apparent power
SI.ApparentPowerS_totalsqrt(P_total^2 + Q_total^2)Magnitude of total complex apparent power
Real[m]pf{cos(Modelica.ComplexMath.arg(Complex(P[k], Q[k]))) for k in 1:m}Power factor
SI.AngularVelocityomegaAngular velocity of reference frame