Ticket #3274: test11.mo

File test11.mo, 1.8 KB (added by Rüdiger Franke, 9 years ago)
Line 
1model test11
2 inner PowerSystems.System system(sim = "st") annotation(Placement(visible = true, transformation(origin = {-80, 60}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
3 PowerSystems.AC3ph.Nodes.GroundOne grd1 annotation(Placement(visible = true, transformation(origin = {-80, 0}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
4 PowerSystems.AC3ph.Sources.PQsource PQsource1(V_nom = 24000, S_nom = 50000000) annotation(Placement(visible = true, transformation(origin = {-46, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
5 PowerSystems.AC3ph.Transformers.TrafoStray trafo(
6 redeclare model Topology_p = PowerSystems.AC3ph.Ports.Topology.Delta,
7 redeclare record Data = PowerSystems.AC3ph.Transformers.Parameters.TrafoStray(V_nom = {24000, 161000}, S_nom = 50000000, r = {0.022, 1}, x = {1.17, 52.65}))
8 annotation(Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
9 PowerSystems.AC3ph.Nodes.GroundOne grd11 annotation(Placement(visible = true, transformation(origin = {92, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
10 PowerSystems.AC3ph.Sources.InfBus infBus(V_nom = 161000) annotation(Placement(visible = true, transformation(origin = {54, 0}, extent = {{10, -10}, {-10, 10}}, rotation = 0)));
11equation
12 connect(trafo.term_n, infBus.term) annotation(Line(points = {{10, 0}, {44, 0}, {44, 0}, {44, 0}}, color = {0, 120, 120}));
13 connect(infBus.neutral, grd11.term) annotation(Line(points = {{64, 0}, {82, 0}, {82, 0}, {82, 0}, {82, 0}}, color = {0, 0, 255}));
14 connect(PQsource1.term, trafo.term_p) annotation(Line(points = {{-36, 0}, {-10, 0}, {-10, 0}, {-10, 0}}, color = {0, 120, 120}));
15 connect(grd1.term, PQsource1.neutral) annotation(Line(points = {{-70, 0}, {-56, 0}, {-56, 0}, {-56, 0}}, color = {0, 0, 255}));
16end test11;