Buildings.Electrical.PhaseSystems.TwoConductor

Two conductors for DC components

Information

This package declares the functions that are used to implement the DC models with double conductors.

Extends from PartialPhaseSystem (Base package of all phase systems).

Package Content

Name Description
Buildings.Electrical.PhaseSystems.TwoConductor.j j Direct current has no complex component
Buildings.Electrical.PhaseSystems.TwoConductor.rotate rotate Rotate a vector of an angle theta (anti-counterclock)
Buildings.Electrical.PhaseSystems.TwoConductor.thetaRel thetaRel Return absolute angle of rotating system as offset to thetaRef
Buildings.Electrical.PhaseSystems.TwoConductor.thetaRef thetaRef Return absolute angle of rotating reference system
Buildings.Electrical.PhaseSystems.TwoConductor.phase phase Return phase
Buildings.Electrical.PhaseSystems.TwoConductor.phaseVoltages phaseVoltages Return phase to neutral voltages
Buildings.Electrical.PhaseSystems.TwoConductor.phaseCurrents phaseCurrents Return phase currents
Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers phasePowers Return phase powers
Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers_vi phasePowers_vi Return phase powers
Buildings.Electrical.PhaseSystems.TwoConductor.systemVoltage systemVoltage Return system voltage as function of phase voltages
Buildings.Electrical.PhaseSystems.TwoConductor.systemCurrent systemCurrent Return system current as function of phase currents
Buildings.Electrical.PhaseSystems.TwoConductor.activePower activePower Return total power as function of phase powers
Inherited
phaseSystemName="UnspecifiedPhaseSystem" Name of the phase system represented by the package
n Number of independent voltage and current components
m Number of reference angles
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.Current Current Current for connector
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.Voltage Voltage Voltage for connector
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.ReferenceAngle ReferenceAngle Reference angle for connector
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.jj jj Vectorized version of j
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.product product Multiply two vectors
Buildings.Electrical.PhaseSystems.PartialPhaseSystem.divide divide Divide two vectors

Buildings.Electrical.PhaseSystems.TwoConductor.j Buildings.Electrical.PhaseSystems.TwoConductor.j

Direct current has no complex component

Information

Extends from (Return vector rotated by 90 degrees).

Inputs

TypeNameDefaultDescription
Realx[n]  

Outputs

TypeNameDescription
Realy[n] 

Modelica definition

redeclare function extends j "Direct current has no complex component" algorithm y := zeros(n); end j;

Buildings.Electrical.PhaseSystems.TwoConductor.rotate Buildings.Electrical.PhaseSystems.TwoConductor.rotate

Rotate a vector of an angle theta (anti-counterclock)

Information

Extends from (Rotate a vector of an angle theta (anti-counterclock)).

Inputs

TypeNameDefaultDescription
Realx[n]  
Angletheta [rad]

Outputs

TypeNameDescription
Realy[n] 

Modelica definition

redeclare function extends rotate "Rotate a vector of an angle theta (anti-counterclock)" algorithm y[n] := x[n]; end rotate;

Buildings.Electrical.PhaseSystems.TwoConductor.thetaRel Buildings.Electrical.PhaseSystems.TwoConductor.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

TypeNameDefaultDescription
Angletheta[m] [rad]

Outputs

TypeNameDescription
AnglethetaRel[rad]

Modelica definition

redeclare function extends thetaRel "Return absolute angle of rotating system as offset to thetaRef" algorithm thetaRel := 0; end thetaRel;

Buildings.Electrical.PhaseSystems.TwoConductor.thetaRef Buildings.Electrical.PhaseSystems.TwoConductor.thetaRef

Return absolute angle of rotating reference system

Information

Extends from (Return absolute angle of rotating reference system).

Inputs

TypeNameDefaultDescription
Angletheta[m] [rad]

Outputs

TypeNameDescription
AnglethetaRef[rad]

Modelica definition

redeclare function extends thetaRef "Return absolute angle of rotating reference system" algorithm thetaRef := 0; end thetaRef;

Buildings.Electrical.PhaseSystems.TwoConductor.phase Buildings.Electrical.PhaseSystems.TwoConductor.phase

Return phase

Information

Extends from (Return phase).

Inputs

TypeNameDefaultDescription
Realx[n]  

Outputs

TypeNameDescription
Anglephase[rad]

Modelica definition

redeclare function extends phase "Return phase" algorithm phase := 0; end phase;

Buildings.Electrical.PhaseSystems.TwoConductor.phaseVoltages Buildings.Electrical.PhaseSystems.TwoConductor.phaseVoltages

Return phase to neutral voltages

Information

Extends from (Return phase to neutral voltages).

Inputs

TypeNameDefaultDescription
VoltageV system voltage [V]
Anglephi0phase angle [rad]

Outputs

TypeNameDescription
Voltagev[n]phase to neutral voltages [V]

Modelica definition

redeclare replaceable function extends phaseVoltages "Return phase to neutral voltages" algorithm v := 0.5*{V, -V}; end phaseVoltages;

Buildings.Electrical.PhaseSystems.TwoConductor.phaseCurrents Buildings.Electrical.PhaseSystems.TwoConductor.phaseCurrents

Return phase currents

Information

Extends from (Return phase currents).

Inputs

TypeNameDefaultDescription
CurrentI system current [A]
Anglephi0phase angle [rad]

Outputs

TypeNameDescription
Currenti[n]phase currents [A]

Modelica definition

redeclare function extends phaseCurrents "Return phase currents" algorithm i := {I, -I}; end phaseCurrents;

Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers

Return phase powers

Information

Extends from (Return phase powers).

Inputs

TypeNameDefaultDescription
ActivePowerP active system power [W]
Anglephi0phase angle [rad]

Outputs

TypeNameDescription
Powerp[n]phase powers [W]

Modelica definition

redeclare function extends phasePowers "Return phase powers" algorithm p := {P, 0}; end phasePowers;

Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers_vi Buildings.Electrical.PhaseSystems.TwoConductor.phasePowers_vi

Return phase powers

Information

Extends from (Return phase powers).

Inputs

TypeNameDefaultDescription
Voltagev[n] phase voltages [V]
Currenti[n] phase currents [A]

Outputs

TypeNameDescription
Powerp[n]phase powers [W]

Modelica definition

redeclare function extends phasePowers_vi "Return phase powers" algorithm p := v.*i; end phasePowers_vi;

Buildings.Electrical.PhaseSystems.TwoConductor.systemVoltage Buildings.Electrical.PhaseSystems.TwoConductor.systemVoltage

Return system voltage as function of phase voltages

Information

Extends from (Return system voltage as function of phase voltages).

Inputs

TypeNameDefaultDescription
Voltagev[n] [V]

Outputs

TypeNameDescription
VoltageV[V]

Modelica definition

redeclare replaceable function extends systemVoltage "Return system voltage as function of phase voltages" algorithm V := v[1] - v[2]; end systemVoltage;

Buildings.Electrical.PhaseSystems.TwoConductor.systemCurrent Buildings.Electrical.PhaseSystems.TwoConductor.systemCurrent

Return system current as function of phase currents

Information

Extends from (Return system current as function of phase currents).

Inputs

TypeNameDefaultDescription
Currenti[n] [A]

Outputs

TypeNameDescription
CurrentI[A]

Modelica definition

redeclare function extends systemCurrent "Return system current as function of phase currents" algorithm I := (i[1] - i[2])/2; end systemCurrent;

Buildings.Electrical.PhaseSystems.TwoConductor.activePower Buildings.Electrical.PhaseSystems.TwoConductor.activePower

Return total power as function of phase powers

Information

Extends from (Return total power as function of phase powers).

Inputs

TypeNameDefaultDescription
Voltagev[n] phase voltages [V]
Currenti[n] phase currents [A]

Outputs

TypeNameDescription
ActivePowerPactive system power [W]

Modelica definition

redeclare function extends activePower "Return total power as function of phase powers" algorithm P := v*i; end activePower;