Description: "Package with sensor models for three-phase unbalanced AC systems"

- Home > Modelica

## 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
--- | ---
Examples | Package with example models
GeneralizedSensor | Sensor for power, voltage and current (3 wire system, no neutral cable)
GeneralizedSensor_N | Sensor for power, voltage and current (4 wire system, with neutral cable)
ProbeDelta | Model of a probe that measures voltage magnitude and angle (Delta configuration)
ProbeWye | Model of a probe that measures voltage magnitude and angle (Wye configuration)
ProbeWye_N | Model of a probe that measures voltage magnitude and angle (Wye configuration) witn neutral cable connection
BaseClasses | Package that contains base classes

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

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

### 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

Type | Name | Description
--- | --- | ---
Terminal_n | terminal_n | Electrical connector side N
Terminal_p | terminal_p | Electrical connector side P
output RealOutput | V[3] | Voltage [V]
output RealOutput | I[3] | Current [A]
output RealOutput | S[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

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

### 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

Type | Name | Description
--- | --- | ---
Terminal4_n | terminal_n | Electrical connector side N
Terminal4_p | terminal_p | Electrical connector side P
output RealOutput | V[4] | Voltage [V]
output RealOutput | I[4] | Current [A]
output RealOutput | S[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

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

### 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

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_nominal |  | RMS Nominal voltage (V_nominal >= 0) [V]
Boolean | perUnit | true | This flag display voltage in p.u.

### Connectors

Type | Name | Description
--- | --- | ---
output RealOutput | V[3] | Voltage in per unit [1]
output RealOutput | theta[3] | Angle [rad]
Terminal_n | term | Electrical 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

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

### 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

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_nominal |  | RMS Nominal voltage (V_nominal >= 0) [V]
Boolean | perUnit | true | This flag display voltage in p.u.

### Connectors

Type | Name | Description
--- | --- | ---
output RealOutput | V[3] | Voltage in per unit [1]
output RealOutput | theta[3] | Angle [rad]
Terminal_n | term | Electrical 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

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

### 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

Type | Name | Default | Description
--- | --- | --- | ---
Voltage | V_nominal |  | RMS Nominal voltage (V_nominal >= 0) [V]
Boolean | perUnit | true | This flag display voltage in p.u.

### Connectors

Type | Name | Description
--- | --- | ---
output RealOutput | V[3] | Voltage in per unit [1]
output RealOutput | theta[3] | Angle [rad]
Terminal4_n | term | Electrical 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;