Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples
Package with example models
Information
This package contains examples for the use of models that can be found in Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
GeneralizedSensor | Example model for generalized sensor |
Probe | This example illustrates how to use the probe model |
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor
Example model for generalized sensor
Information
This example illustrates the use of the generalized sensor.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model GeneralizedSensor "Example model for generalized sensor"
extends Modelica.Icons.Example;
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.GeneralizedSensor
sen "Sensor model";
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Capacitive loa(
V_nominal=480, P_nominal=-100) "Constant load";
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage
sou(f=60, V=480) "Voltage source";
equation
connect(sen.terminal_p, loa.terminal);
connect(sen.terminal_n, sou.terminal);
end GeneralizedSensor;
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.Probe
This example illustrates how to use the probe model
Information
This example illustrates the use of the probe model.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model Probe "This example illustrates how to use the probe model"
extends Modelica.Icons.Example;
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Capacitive loaRC(
mode=Buildings.Electrical.Types.Load.FixedZ_steady_state,
P_nominal=-10000,
V_nominal=480) "Constant load";
Buildings.Electrical.AC.ThreePhasesBalanced.Sources.FixedVoltage sou(f=60, V=
480) "Voltage source";
Buildings.Electrical.AC.ThreePhasesBalanced.Lines.TwoPortResistance res1(R=0.1)
"First line resistance";
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Probe probe_source(V_nominal=
480) "Probe that measures at the voltage source";
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Probe probe_loadRC(V_nominal=
480) "Probe that measures at the RC load";
Buildings.Electrical.AC.ThreePhasesBalanced.Lines.TwoPortResistance res2(R=0.1)
"Second line resistance";
Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Inductive loaRL(
mode=Buildings.Electrical.Types.Load.FixedZ_steady_state,
P_nominal=-10000,
V_nominal=480) "Constant load";
Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Probe probe_loadRL(V_nominal=
480) "Probe that measures at the RL load";
equation
connect(sou.terminal, res1.terminal_n);
connect(res1.terminal_p, loaRC.terminal);
connect(sou.terminal, probe_source.term);
connect(loaRC.terminal, probe_loadRC.term);
connect(sou.terminal, res2.terminal_n);
connect(res2.terminal_p, loaRL.terminal);
connect(loaRL.terminal, probe_loadRL.term);
end Probe;