Description: "Package with sensors models for three-phase balanced AC systems"

- Home > Modelica

## Buildings.Electrical.AC.ThreePhasesBalanced.Sensors

Package with sensors models for three-phase balanced AC systems

### Information

This package contains models for voltage, current and power sensors.

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

### Package Content

Name | Description
--- | ---
GeneralizedSensor | Sensor for power, voltage and current
Probe | Model of a probe that measures RMS voltage and angle
Examples | Package with example models

## Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.GeneralizedSensor

Sensor for power, voltage and current

### Information

Ideal sensor that measures power, voltage and current. The two components of the power S are the active and reactive power.

Extends from Buildings.Electrical.Icons.GeneralizedSensor (Icon representing a generalized sensor that measures voltage, current and power), Buildings.Electrical.Interfaces.PartialTwoPort (Model of a generic two port component with phase systems).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package PhaseSystem_p | Phase system of terminal p
replaceable package PhaseSystem_n | Phase system of terminal n
output RealOutput | V | Voltage [V]
output RealOutput | I | Current [A]
output RealOutput | S[PhaseSystems.OnePhase.n] | Phase powers [W]

### Modelica definition

model GeneralizedSensor "Sensor for power, voltage and current" extends Buildings.Electrical.Icons.GeneralizedSensor; extends Buildings.Electrical.Interfaces.PartialTwoPort( redeclare package PhaseSystem_p = PhaseSystems.OnePhase, redeclare package PhaseSystem_n = PhaseSystems.OnePhase, redeclare Interfaces.Terminal_n terminal_n(redeclare package PhaseSystem = PhaseSystem_n), redeclare Interfaces.Terminal_p terminal_p(redeclare package PhaseSystem = PhaseSystem_p)); Modelica.Blocks.Interfaces.RealOutput V( final quantity="ElectricPotential", final unit="V")= Buildings.Electrical.PhaseSystems.OnePhase.systemVoltage(terminal_n.v) "Voltage"; Modelica.Blocks.Interfaces.RealOutput I( final quantity="ElectricCurrent", final unit="A")= Buildings.Electrical.PhaseSystems.OnePhase.systemCurrent(terminal_n.i) "Current"; Modelica.Blocks.Interfaces.RealOutput S[PhaseSystems.OnePhase.n]( each final quantity="Power", each final unit="W")= Buildings.Electrical.PhaseSystems.OnePhase.phasePowers_vi(v=terminal_n.v, i=terminal_n.i) "Phase powers"; equation connect(terminal_n, terminal_p); end GeneralizedSensor;

## Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Probe

Model of a probe that measures RMS voltage and angle

### Information

This model represents a probe that measures the RMS voltage and the angle of the voltage phasor at a given point.

Extends from OnePhase.Sensors.Probe (Model of a probe that measures RMS voltage and angle).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Boolean | perUnit | true | If true, display voltage in p.u.

### Connectors

Type | Name | Description
--- | --- | ---
output RealOutput | V | Voltage phasor magnitude [1V]
output RealOutput | theta | Voltage phasor angle [rad]

### Modelica definition

model Probe "Model of a probe that measures RMS voltage and angle" extends OnePhase.Sensors.Probe( redeclare Buildings.Electrical.AC.ThreePhasesBalanced.Interfaces.Terminal_n term, V_nominal(start=480)); end Probe;