Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.BaseClasses
This package contains base classes inherited by the examples
Information
This package contains base classes used by the examples that are part of the package Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
TransformerExample | This example represents the basic test for a transformer model |
Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.BaseClasses.TransformerExample
This example represents the basic test for a transformer model
Information
This model is the base classes used by the examples that are part of the package Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.
The model has a voltage source, a transformer and a load. The transformer model is replaceable so that different types of transformers can easily be tested.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Voltage | V_primary | 12470 | RMS Voltage on the primary side of the transformer [V] |
Voltage | V_secondary | 4160 | RMS Voltage on the secondary side of the transformer [V] |
PartialConverter | tra | redeclare Buildings.Electric... | Transformer model |
GeneralizedProbe | probe_2 | redeclare Sensors.BaseClasse... | Probe that measures the voltage at the secondary side |
Modelica definition
model TransformerExample
"This example represents the basic test for a transformer model"
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Voltage V_primary = 12470
"RMS Voltage on the primary side of the transformer";
parameter Modelica.SIunits.Voltage V_secondary = 4160
"RMS Voltage on the secondary side of the transformer";
Sources.FixedVoltage sou(
f=60,
V=V_primary) "Voltage source";
replaceable Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.BaseClasses.PartialConverter
tra "Transformer model";
Loads.Resistive load(
loadConn=Buildings.Electrical.Types.LoadConnection.wye_to_wyeg,
P_nominal=-1800e3,
V_nominal=V_secondary,
linearized=true) "Load model";
Sensors.ProbeWye probe_Y_1(perUnit=false, V_nominal = V_primary)
"Probe that measures the voltage in Y configuration, primary side";
Sensors.ProbeDelta probe_D_1(perUnit=false, V_nominal = V_primary)
"Probe that measures the voltage in D configuration, primary side";
replaceable Sensors.BaseClasses.GeneralizedProbe probe_2 constrainedby Sensors.BaseClasses.GeneralizedProbe
( perUnit=false,
V_nominal=V_secondary)
"Probe that measures the voltage at the secondary side";
equation
connect(sou.terminal, tra.terminal_n);
connect(probe_Y_1.term, tra.terminal_n);
connect(probe_D_1.term, tra.terminal_n);
connect(tra.terminal_p, load.terminal);
end TransformerExample;