 
Base package of all phase systems
This package declares the functions that are used to implement the different phase systems.
Extends from Modelica.Icons.Package (Icon for standard packages).
| Name | Description | 
|---|---|
| phaseSystemName="UnspecifiedPhaseSystem" | Name of the phase system represented by the package | 
| n | Number of independent voltage and current components | 
| m | Number of reference angles | 
| Current | Current for connector | 
| Voltage | Voltage for connector | 
| ReferenceAngle | Reference angle for connector | 
|  j | Return vector rotated by 90 degrees | 
|  jj | Vectorized version of j | 
|  rotate | Rotate a vector of an angle theta (anti-counterclock) | 
|  product | Multiply two vectors | 
|  divide | Divide two vectors | 
|  thetaRel | Return absolute angle of rotating system as offset to thetaRef | 
|  thetaRef | Return absolute angle of rotating reference system | 
|  phase | Return phase | 
|  phaseVoltages | Return phase to neutral voltages | 
|  phaseCurrents | Return phase currents | 
|  phasePowers | Return phase powers | 
|  phasePowers_vi | Return phase powers | 
|  systemVoltage | Return system voltage as function of phase voltages | 
|  systemCurrent | Return system current as function of phase currents | 
|  activePower | Return total power as function of phase powers | 
constant String phaseSystemName = "UnspecifiedPhaseSystem" "Name of the phase system represented by the package";
constant Integer n "Number of independent voltage and current components";
constant Integer m "Number of reference angles";
type Current = Real(unit = "A", quantity = "Current." + phaseSystemName) "Current for connector";
type Voltage = Real(unit = "V", quantity = "Voltage." + phaseSystemName) "Voltage for connector";
type ReferenceAngle "Reference angle for connector" extends SI.Angle; function equalityConstraint "Assert that angles are equal" extends Modelica.Icons.Function; input ReferenceAngle theta1[:]; input ReferenceAngle theta2[:]; output Real residue[0]; algorithm for i in 1:size(theta1, 1) loop assert(abs(theta1[i] - theta2[i]) < Modelica.Constants.eps, "Angles theta1 and theta2 are not equal over the connection."); end for; end equalityConstraint; end ReferenceAngle;
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.j
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.jReturn vector rotated by 90 degrees
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | x[n] | 
| Type | Name | Description | 
|---|---|---|
| Real | y[n] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.jj
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.jjVectorized version of j
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | xx[:, :] | array of voltage or current vectors | 
| Type | Name | Description | 
|---|---|---|
| Real | yy[size(xx, 1), size(xx, 2)] | array of rotated vectors | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.rotate
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.rotateRotate a vector of an angle theta (anti-counterclock)
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | x[n] | ||
| Angle | theta | [rad] | 
| Type | Name | Description | 
|---|---|---|
| Real | y[n] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.product
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.productMultiply two vectors
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | x[n] | ||
| Real | y[n] | 
| Type | Name | Description | 
|---|---|---|
| Real | z[n] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.divide
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.divideDivide two vectors
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | x[n] | ||
| Real | y[n] | 
| Type | Name | Description | 
|---|---|---|
| Real | z[n] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.thetaRel
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.thetaRelReturn absolute angle of rotating system as offset to thetaRef
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Angle | theta[m] | [rad] | 
| Type | Name | Description | 
|---|---|---|
| Angle | thetaRel | [rad] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.thetaRef
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.thetaRefReturn absolute angle of rotating reference system
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Angle | theta[m] | [rad] | 
| Type | Name | Description | 
|---|---|---|
| Angle | thetaRef | [rad] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phase
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phaseReturn phase
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Real | x[n] | 
| Type | Name | Description | 
|---|---|---|
| Angle | phase | [rad] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phaseVoltages
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phaseVoltagesReturn phase to neutral voltages
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Voltage | V | system voltage [V] | |
| Angle | phi | 0 | phase angle [rad] | 
| Type | Name | Description | 
|---|---|---|
| Voltage | v[n] | phase to neutral voltages [V] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phaseCurrents
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phaseCurrentsReturn phase currents
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Current | I | system current [A] | |
| Angle | phi | 0 | phase angle [rad] | 
| Type | Name | Description | 
|---|---|---|
| Current | i[n] | phase currents [A] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phasePowers
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phasePowersReturn phase powers
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| ActivePower | P | active system power [W] | |
| Angle | phi | 0 | phase angle [rad] | 
| Type | Name | Description | 
|---|---|---|
| Power | p[n] | phase powers [W] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phasePowers_vi
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.phasePowers_viReturn phase powers
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Voltage | v[n] | phase voltages [V] | |
| Current | i[n] | phase currents [A] | 
| Type | Name | Description | 
|---|---|---|
| Power | p[n] | phase powers [W] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.systemVoltage
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.systemVoltageReturn system voltage as function of phase voltages
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Voltage | v[n] | [V] | 
| Type | Name | Description | 
|---|---|---|
| Voltage | V | [V] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.systemCurrent
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.systemCurrentReturn system current as function of phase currents
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Current | i[n] | [A] | 
| Type | Name | Description | 
|---|---|---|
| Current | I | [A] | 
 Buildings.Electrical.PhaseSystems.PartialPhaseSystem.activePower
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.activePowerReturn total power as function of phase powers
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Default | Description | 
|---|---|---|---|
| Voltage | v[n] | phase voltages [V] | |
| Current | i[n] | phase currents [A] | 
| Type | Name | Description | 
|---|---|---|
| ActivePower | P | active system power [W] |