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
| Type | Name | Default | Description |
| Integer | m | 3 | Number of phases |
Connectors
| Type | Name | Default | Description |
| PositivePlug | plug_p | | Positive quasi-static polyphase plug |
| NegativePlug | plug_n | | Negative quasi-static polyphase plug |
Components
| Type | Name | Default | Description |
| SI.ComplexVoltage[m] | v | | Complex voltage |
| SI.Voltage[m] | abs_v | Modelica.ComplexMath.abs(v) | Magnitude of complex voltage |
| SI.Angle[m] | arg_v | Modelica.ComplexMath.arg(v) | Argument of complex voltage |
| SI.ComplexCurrent[m] | i | | Complex current |
| SI.Current[m] | abs_i | Modelica.ComplexMath.abs(i) | Magnitude of complex current |
| SI.Angle[m] | arg_i | Modelica.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.ActivePower | P_total | sum(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.ReactivePower | Q_total | sum(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.ApparentPower | S_total | sqrt(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.AngularVelocity | omega | | Angular velocity of reference frame |