LBL logo

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors

Package with sensor models for three-phase unbalanced AC systems

Information

This package contains models that represent different types of three phases unbalanced AC/AC sensors.

Extends from Modelica.Icons.SensorsPackage (Icon for packages containing sensors).

Package Content

Name Description
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples Examples Package with example models
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor GeneralizedSensor Sensor for power, voltage and current (3 wire system, no neutral cable)
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor_N GeneralizedSensor_N Sensor for power, voltage and current (4 wire system, with neutral cable)
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta ProbeDelta Model of a probe that measures voltage magnitude and angle (Delta configuration)
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye ProbeWye Model of a probe that measures voltage magnitude and angle (Wye configuration)
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye_N ProbeWye_N Model of a probe that measures voltage magnitude and angle (Wye configuration) witn neutral cable connection
Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses BaseClasses Package that contains base classes

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor

Sensor for power, voltage and current (3 wire system, no neutral cable)

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor

Information

Ideal sensor that measures power, voltage and current in a three-phase unbalanced system without a neutral cable. The two components of the power S are the active and reactive power for each phase.

Connectors

TypeNameDescription
Terminal_nterminal_nElectrical connector side N
Terminal_pterminal_pElectrical connector side P
output RealOutputV[3]Voltage [V]
output RealOutputI[3]Current [A]
output RealOutputS[3, terminal_n.phase[1].PhaseSystem.n]Phase powers [W]

Modelica definition

model GeneralizedSensor "Sensor for power, voltage and current (3 wire system, no neutral cable)" Interfaces.Terminal_n terminal_n "Electrical connector side N"; Interfaces.Terminal_p terminal_p "Electrical connector side P"; Modelica.Blocks.Interfaces.RealOutput V[3](each final quantity="ElectricPotential", each final unit="V") "Voltage"; Modelica.Blocks.Interfaces.RealOutput I[3](each final quantity="ElectricCurrent", each final unit="A") "Current"; Modelica.Blocks.Interfaces.RealOutput S[3,terminal_n.phase[1].PhaseSystem.n]( each final quantity="Power", each final unit="W") "Phase powers"; equation for i in 1:3 loop V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(terminal_n.phase[i].v); I[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemCurrent(terminal_n.phase[i].i); S[i,:] = Buildings.Electrical.PhaseSystems.OnePhase.phasePowers_vi(v=terminal_n.phase[i].v, i=terminal_n.phase[i].i); end for; connect(terminal_n, terminal_p); end GeneralizedSensor;

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor_N Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor_N

Sensor for power, voltage and current (4 wire system, with neutral cable)

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.GeneralizedSensor_N

Information

Ideal sensor that measures power, voltage and current in a three-phase unbalanced system with neutral cable. The two components of the power S are the active and reactive power for each phase.

Connectors

TypeNameDescription
Terminal4_nterminal_nElectrical connector side N
Terminal4_pterminal_pElectrical connector side P
output RealOutputV[4]Voltage [V]
output RealOutputI[4]Current [A]
output RealOutputS[4, terminal_n.phase[1].PhaseSystem.n]Phase powers [W]

Modelica definition

model GeneralizedSensor_N "Sensor for power, voltage and current (4 wire system, with neutral cable)" Interfaces.Terminal4_n terminal_n "Electrical connector side N"; Interfaces.Terminal4_p terminal_p "Electrical connector side P"; Modelica.Blocks.Interfaces.RealOutput V[4](each final quantity="ElectricPotential", each final unit="V") "Voltage"; Modelica.Blocks.Interfaces.RealOutput I[4](each final quantity="ElectricCurrent", each final unit="A") "Current"; Modelica.Blocks.Interfaces.RealOutput S[4,terminal_n.phase[1].PhaseSystem.n]( each final quantity="Power", each final unit="W") "Phase powers"; equation for i in 1:4 loop V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(terminal_n.phase[i].v); I[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemCurrent(terminal_n.phase[i].i); S[i,:] = Buildings.Electrical.PhaseSystems.OnePhase.phasePowers_vi(v=terminal_n.phase[i].v, i=terminal_n.phase[i].i); end for; connect(terminal_n, terminal_p); end GeneralizedSensor_N;

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta

Model of a probe that measures voltage magnitude and angle (Delta configuration)

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeDelta

Information

This model represents a probe that measures the RMS voltage and the angle of the voltage phasors at a given point. The probes are connected in the Wye (Y) grounded configuration.

Extends from Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe (Partial model of a generalized three-phase probe).

Parameters

TypeNameDefaultDescription
VoltageV_nominal RMS Nominal voltage (V_nominal >= 0) [V]
BooleanperUnittrueThis flag display voltage in p.u.

Connectors

TypeNameDescription
output RealOutputV[3]Voltage in per unit [1]
output RealOutputtheta[3]Angle [rad]
Terminal_ntermElectrical connector

Modelica definition

model ProbeDelta "Model of a probe that measures voltage magnitude and angle (Delta configuration)" extends Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe; Buildings.Electrical.AC.ThreePhasesUnbalanced.Interfaces.Terminal_n term "Electrical connector"; Interfaces.WyeToDelta wyeToDelta "Y to D transformation"; equation for i in 1:3 loop theta[i] = Buildings.Electrical.PhaseSystems.OnePhase.phase(wyeToDelta.delta.phase[i].v); if perUnit then V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(wyeToDelta.delta.phase[i].v)/V_nominal; else V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(wyeToDelta.delta.phase[i].v); end if; end for; connect(term, wyeToDelta.wye); end ProbeDelta;

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye

Model of a probe that measures voltage magnitude and angle (Wye configuration)

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye

Information

This model represents a probe that measures the RMS voltage and the angle of the voltage phasors at a given point. The probes are connected in the Wye (Y) grounded configuration.

Extends from Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe (Partial model of a generalized three-phase probe).

Parameters

TypeNameDefaultDescription
VoltageV_nominal RMS Nominal voltage (V_nominal >= 0) [V]
BooleanperUnittrueThis flag display voltage in p.u.

Connectors

TypeNameDescription
output RealOutputV[3]Voltage in per unit [1]
output RealOutputtheta[3]Angle [rad]
Terminal_ntermElectrical connector

Modelica definition

model ProbeWye "Model of a probe that measures voltage magnitude and angle (Wye configuration)" extends Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe; Buildings.Electrical.AC.ThreePhasesUnbalanced.Interfaces.Terminal_n term "Electrical connector"; Interfaces.WyeToWyeGround wyeToWyeGround "Y to Y grounded transformation"; equation for i in 1:3 loop theta[i] = Buildings.Electrical.PhaseSystems.OnePhase.phase(wyeToWyeGround.wyeg.phase[i].v); if perUnit then V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(wyeToWyeGround.wyeg.phase[i].v)/(V_nominal/sqrt(3)); else V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(wyeToWyeGround.wyeg.phase[i].v); end if; end for; connect(term, wyeToWyeGround.wye); end ProbeWye;

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye_N Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye_N

Model of a probe that measures voltage magnitude and angle (Wye configuration) witn neutral cable connection

Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.ProbeWye_N

Information

This model represents a probe that measures the RMS voltage and the angle of the voltage phasors at a given point. The probes are connected in the Wye (Y) grounded configuration.

Extends from Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe (Partial model of a generalized three-phase probe).

Parameters

TypeNameDefaultDescription
VoltageV_nominal RMS Nominal voltage (V_nominal >= 0) [V]
BooleanperUnittrueThis flag display voltage in p.u.

Connectors

TypeNameDescription
output RealOutputV[3]Voltage in per unit [1]
output RealOutputtheta[3]Angle [rad]
Terminal4_ntermElectrical connector

Modelica definition

model ProbeWye_N "Model of a probe that measures voltage magnitude and angle (Wye configuration) witn neutral cable connection" extends Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.BaseClasses.GeneralizedProbe; Buildings.Electrical.AC.ThreePhasesUnbalanced.Interfaces.Terminal4_n term "Electrical connector"; equation for i in 1:4 loop term.phase[i].i = zeros(Buildings.Electrical.PhaseSystems.OnePhase.n); end for; for i in 1:3 loop theta[i] = Buildings.Electrical.PhaseSystems.OnePhase.phase(term.phase[i].v - term.phase[4].v); if perUnit then V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(term.phase[i].v - term.phase[4].v)/(V_nominal/sqrt(3)); else V[i] = Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(term.phase[i].v - term.phase[4].v); end if; end for; end ProbeWye_N;

Automatically generated Mon May 4 10:19:25 2015.