Description: "Package with example models"

- Home > Modelica

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples

Package with example models

### Information

This package contains examples for the use of models that can be found in Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

### Package Content

Name | Description
--- | ---
Sensors | Test models for sensors and probes

## Buildings.Electrical.AC.ThreePhasesUnbalanced.Sensors.Examples.Sensors

Test models for sensors and probes

### Information

This example shows how different types of sensors and probes can be used to measure the voltages, currents and powers in a three-phase unbalanced system.

In this example all the loads are directly connected to the sources, avoiding voltage losses. The loads are all resistive and they start by consuming 10 kW for each phase, while at the end of the simulation they all produce 10 kW.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Modelica definition

model Sensors "Test models for sensors and probes" extends Modelica.Icons.Example; Sources.FixedVoltage source(f=60,V=480) "Voltage source without neutral cable"; Loads.Resistive load(V_nominal=480, mode=Buildings.Electrical.Types.Load.VariableZ_P_input, P_nominal=-1e4) "Load model"; ProbeWye probeWye(V_nominal=480) "Probe that measures the phase voltages"; ProbeDelta probeDelta(V_nominal=480) "Probe that measures the line voltages"; Sources.FixedVoltage_N source_N(f=60, V=480) "Voltage source with neutral cable"; Loads.Resistive_N load_N(V_nominal=480, mode=Buildings.Electrical.Types.Load.VariableZ_P_input, P_nominal=-1e4) "Load model"; ProbeWye_N probeWye_N(V_nominal=480); GeneralizedSensor sen "Generalized sensor withour neutral cable"; GeneralizedSensor_N sen_N "Generalized sensor with neutral cable"; Modelica.Blocks.Sources.Ramp ramp( height=2e4, duration=0.5, offset=-1e4, startTime=0.25); equation connect(probeWye.term, source.terminal); connect(probeDelta.term, source.terminal); connect(source_N.terminal, probeWye_N.term); connect(source_N.terminal, sen_N.terminal_n); connect(sen_N.terminal_p, load_N.terminal); connect(sen.terminal_p, load.terminal); connect(sen.terminal_n, source.terminal); connect(ramp.y, load.Pow1); connect(ramp.y, load.Pow2); connect(ramp.y, load.Pow3); connect(ramp.y, load_N.Pow1); connect(ramp.y, load_N.Pow2); connect(ramp.y, load_N.Pow3); end Sensors;