Buildings.Electrical.PhaseSystems.OnePhase
Single phase two connectors AC system
Information
This package declares the functions that are used to implement the AC single phase models.
Extends from PartialPhaseSystem (Base package of all phase systems).
Package Content
Name | Description |
---|---|
j | Return vector rotated by 90 degrees |
rotate | Rotate a vector of an angle theta (anti-counterclock) |
product | Multiply two complex numbers represented by vectors x[2] and y[2] |
divide | Divide two complex numbers represented by vectors x[2] and y[2] |
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 |
Inherited | |
phaseSystemName="OnePhase" | Name of the phase system represented by the package |
n=2 | Number of independent voltage and current components |
m=1 | Number of reference angles |
Current | Current for connector |
Voltage | Voltage for connector |
ReferenceAngle | Reference angle for connector |
jj | Vectorized version of j |
Buildings.Electrical.PhaseSystems.OnePhase.j
Return vector rotated by 90 degrees
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.OnePhase.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.OnePhase.product
Multiply two complex numbers represented by vectors x[2] and y[2]
Information
Extends from (Multiply two vectors).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Real | x[n] | ||
Real | y[n] |
Outputs
Type | Name | Description |
---|---|---|
Real | z[n] |
Modelica definition
Buildings.Electrical.PhaseSystems.OnePhase.divide
Divide two complex numbers represented by vectors x[2] and y[2]
Information
Extends from (Divide two vectors).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Real | x[n] | ||
Real | y[n] |
Outputs
Type | Name | Description |
---|---|---|
Real | z[n] |
Modelica definition
Buildings.Electrical.PhaseSystems.OnePhase.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.OnePhase.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.OnePhase.phase
Return phase
Information
Inputs
Type | Name | Default | Description |
---|---|---|---|
Real | x[n] |
Outputs
Type | Name | Description |
---|---|---|
Angle | phase | [rad] |
Modelica definition
Buildings.Electrical.PhaseSystems.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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] |