Buildings.Electrical.PhaseSystems.ThreePhase_dq0
AC system in dqo representation
Information
This package declares the functions that are used to implement the AC three-phase balanced models using the DQ0 representation.
Extends from PartialPhaseSystem (Base package of all phase systems).
Package Content
| Name | Description |
|---|---|
| Rotation(pi/2) of vector around {0,0,1} and projection on North plane | |
| Rotate a vector of an angle theta (anti-counterclock) | |
| Vectorized version of j | |
| Return absolute angle of rotating system as offset to thetaRef | |
| Return absolute angle of rotating reference system | |
| Return phase | |
| Return phase to neutral voltages | |
| Return phase currents | |
| Return phase powers | |
| Return phase powers | |
| Return system voltage as function of phase voltages | |
| Return system current as function of phase currents | |
| Return total power as function of phase powers | |
| Inherited | |
| phaseSystemName="ThreePhase_dqo" | Name of the phase system represented by the package |
| n=3 | Number of independent voltage and current components |
| m=2 | Number of reference angles |
| Current for connector | |
| Voltage for connector | |
| Reference angle for connector | |
| Multiply two vectors | |
| Divide two vectors | |
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.j
Rotation(pi/2) of vector around {0,0,1} and projection on North plane
Information
Extends from (Return vector rotated by 90 degrees).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x[n] |
Outputs
| Type | Name | Description |
|---|---|---|
| Real | y[n] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.rotate
Rotate a vector of an angle theta (anti-counterclock)
Information
Extends from (Rotate a vector of an angle theta (anti-counterclock)).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x[n] | ||
| Angle | theta | [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Real | y[n] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.jj
Vectorized version of j
Information
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | xx[:, :] | array of voltage or current vectors |
Outputs
| Type | Name | Description |
|---|---|---|
| Real | yy[size(xx, 1), size(xx, 2)] | array of rotated vectors |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.thetaRel
Return absolute angle of rotating system as offset to thetaRef
Information
Extends from (Return absolute angle of rotating system as offset to thetaRef).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Angle | theta[m] | [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Angle | thetaRel | [rad] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.thetaRef
Return absolute angle of rotating reference system
Information
Extends from (Return absolute angle of rotating reference system).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Angle | theta[m] | [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Angle | thetaRef | [rad] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.phase
Return phase
Information
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x[n] |
Outputs
| Type | Name | Description |
|---|---|---|
| Angle | phase | [rad] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.phaseVoltages
Return phase to neutral voltages
Information
Extends from (Return phase to neutral voltages).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Voltage | V | system voltage [V] | |
| Angle | phi | 0 | phase angle [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Voltage | v[n] | phase to neutral voltages [V] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.phaseCurrents
Return phase currents
Information
Extends from (Return phase currents).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Current | I | system current [A] | |
| Angle | phi | 0 | phase angle [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Current | i[n] | phase currents [A] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.phasePowers
Return phase powers
Information
Extends from (Return phase powers).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| ActivePower | P | active system power [W] | |
| Angle | phi | 0 | phase angle [rad] |
Outputs
| Type | Name | Description |
|---|---|---|
| Power | p[n] | phase powers [W] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.phasePowers_vi
Return phase powers
Information
Extends from (Return phase powers).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Voltage | v[n] | phase voltages [V] | |
| Current | i[n] | phase currents [A] |
Outputs
| Type | Name | Description |
|---|---|---|
| Power | p[n] | phase powers [W] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.systemVoltage
Return system voltage as function of phase voltages
Information
Extends from (Return system voltage as function of phase voltages).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Voltage | v[n] | [V] |
Outputs
| Type | Name | Description |
|---|---|---|
| Voltage | V | [V] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.systemCurrent
Return system current as function of phase currents
Information
Extends from (Return system current as function of phase currents).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Current | i[n] | [A] |
Outputs
| Type | Name | Description |
|---|---|---|
| Current | I | [A] |
Modelica definition
Buildings.Electrical.PhaseSystems.ThreePhase_dq0.activePower
Return total power as function of phase powers
Information
Extends from (Return total power as function of phase powers).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Voltage | v[n] | phase voltages [V] | |
| Current | i[n] | phase currents [A] |
Outputs
| Type | Name | Description |
|---|---|---|
| ActivePower | P | active system power [W] |