Changeset 701
- Timestamp:
- 10/15/2007 07:49:04 PM (15 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/Electrical/Machines.mo (modified) (112 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/Electrical/Machines.mo
r692 r701 1 1 within Modelica.Electrical; 2 3 2 4 3 package Machines "Library for electric machines" 5 4 extends Modelica.Icons.Library2; 6 5 annotation ( 7 version="1.9. 0", versionDate="2007-08-24",6 version="1.9.1", versionDate="2007-10-15", 8 7 Settings(NewStateSelection=true, Evaluate=true), 9 8 preferedView="info", Documentation(info="<HTML> … … 128 127 <li> v1.9.0 2007/08/24 Anton Haumer<br> 129 128 removed redeclare type SignalType</li> 129 <li> v1.9.1 2007/10/15 Anton Haumer<br> 130 solved a bug with replaceable airgap / partial machines</li> 130 131 </ul> 131 132 </HTML>"), 132 Icon(graphics={ 133 Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100, 134 100}}), graphics={ 133 135 Rectangle( 134 136 extent={{-60,60},{60,-60}}, … … 198 200 introduced Utilities.TerminalBox</li> 199 201 </ul> 200 </HTML>"), Icon(graphics={Ellipse(extent={{-80,44},{60,-96}}, lineColor={95,95, 201 95}), Polygon( 202 </HTML>"), Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, 203 {100,100}}), graphics={Ellipse(extent={{-80,44},{60,-96}}, 204 lineColor={95,95,95}), Polygon( 202 205 points={{-40,36},{-40,-88},{60,-26},{-40,36}}, 203 206 lineColor={95,95,95}, … … 239 242 rotation=0))); 240 243 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 241 annotation (Placement(transformation( 242 origin={0,0}, 243 extent={{-10,10},{10,-10}}, 244 rotation=270))); 244 annotation (Placement(transformation(extent={{10,10},{-10,-10}}, 245 rotation=-90))); 245 246 Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 246 247 final m=m, 247 248 freqHz=fill(fNominal, m), 248 249 V=fill(sqrt(2/3)*VNominal, m)) 249 annotation (Placement(transformation( 250 origin={0,60}, 251 extent={{10,-10},{-10,10}}, 252 rotation=270))); 250 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 251 rotation=-90))); 253 252 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 254 253 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 255 254 rotation=0))); 256 255 Modelica.Electrical.Analog.Basic.Ground Ground1 257 annotation (Placement(transformation( 258 origin={-90,90}, 259 extent={{-10,-10},{10,10}}, 260 rotation=270))); 256 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 257 rotation=-90))); 261 258 Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1) 262 259 annotation (Placement(transformation(extent={{-80,30},{-60,50}}, 263 260 rotation=0))); 264 261 Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m) 265 annotation (Placement(transformation( 266 origin={0,30}, 267 extent={{-10,10},{10,-10}}, 268 rotation=270))); 262 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 263 rotation=-90))); 269 264 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 270 265 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 352 347 rotation=0))); 353 348 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 354 annotation (Placement(transformation( 355 origin={0,0}, 356 extent={{-10,10},{10,-10}}, 357 rotation=270))); 349 annotation (Placement(transformation(extent={{10,10},{-10,-10}}, 350 rotation=-90))); 358 351 Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 359 352 final m=m, 360 353 freqHz=fill(fNominal, m), 361 354 V=fill(sqrt(2/3)*VNominal, m)) 362 annotation (Placement(transformation( 363 origin={0,60}, 364 extent={{10,-10},{-10,10}}, 365 rotation=270))); 355 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 356 rotation=-90))); 366 357 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 367 358 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 368 359 rotation=0))); 369 360 Modelica.Electrical.Analog.Basic.Ground Ground1 370 annotation (Placement(transformation( 371 origin={-90,90}, 372 extent={{-10,-10},{10,10}}, 373 rotation=270))); 361 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 362 rotation=-90))); 374 363 Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1) 375 364 annotation (Placement(transformation(extent={{-80,30},{-60,50}}, 376 365 rotation=0))); 377 366 Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m) 378 annotation (Placement(transformation( 379 origin={0,30}, 380 extent={{-10,10},{10,-10}}, 381 rotation=270))); 367 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 368 rotation=-90))); 382 369 Machines.Examples.Utilities.SwitchYD SwitchYD1 383 370 annotation (Placement( … … 468 455 rotation=0))); 469 456 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 470 annotation (Placement(transformation( 471 origin={0,0}, 472 extent={{-10,10},{10,-10}}, 473 rotation=270))); 457 annotation (Placement(transformation(extent={{10,10},{-10,-10}}, 458 rotation=-90))); 474 459 Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 475 460 final m=m, 476 461 freqHz=fill(fNominal, m), 477 462 V=fill(sqrt(2/3)*VNominal, m)) 478 annotation (Placement(transformation( 479 origin={0,60}, 480 extent={{10,-10},{-10,10}}, 481 rotation=270))); 463 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 464 rotation=-90))); 482 465 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 483 466 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 484 467 rotation=0))); 485 468 Modelica.Electrical.Analog.Basic.Ground Ground1 486 annotation (Placement(transformation( 487 origin={-90,90}, 488 extent={{-10,-10},{10,10}}, 489 rotation=270))); 469 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 470 rotation=-90))); 490 471 Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1) 491 472 annotation (Placement(transformation(extent={{-80,30},{-60,50}}, 492 473 rotation=0))); 493 474 Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m) 494 annotation (Placement(transformation( 495 origin={0,30}, 496 extent={{-10,10},{10,-10}}, 497 rotation=270))); 475 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 476 rotation=-90))); 498 477 Modelica.Electrical.MultiPhase.Basic.Star Star3(final m=m) 499 478 annotation (Placement(transformation(extent={{-50,-100},{-70,-80}}, 500 479 rotation=0))); 501 480 Modelica.Electrical.Analog.Basic.Ground Ground3 502 annotation (Placement(transformation( 503 origin={-90,-90}, 504 extent={{-10,-10},{10,10}}, 505 rotation=270))); 481 annotation (Placement(transformation(extent={{-80,-100},{-100,-80}}, 482 rotation=-90))); 506 483 Modelica.Electrical.MultiPhase.Ideal.IdealCommutingSwitch 507 484 IdealCommutingSwitch1(m=m) 508 annotation (Placement(transformation( 509 origin={-40,-40}, 510 extent={{-10,10},{10,-10}}, 511 rotation=270))); 485 annotation (Placement(transformation(extent={{-30,-30},{-50,-50}}, 486 rotation=-90))); 512 487 Modelica.Electrical.MultiPhase.Basic.Resistor Resistor1(m=m, R=fill(Rstart, m)) 513 488 annotation (Placement(transformation(extent={{-50,-80},{-70,-60}}, … … 625 600 rotation=0))); 626 601 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 627 annotation (Placement(transformation( 628 origin={0,0}, 629 extent={{-10,10},{10,-10}}, 630 rotation=270))); 602 annotation (Placement(transformation(extent={{10,10},{-10,-10}}, 603 rotation=-90))); 631 604 Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp) 632 605 annotation (Placement(transformation(extent={{-80,50},{-60,70}}, … … 638 611 {-20,70}}, rotation=0))); 639 612 Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m) 640 annotation (Placement(transformation( 641 origin={0,60}, 642 extent={{10,-10},{-10,10}}, 643 rotation=270))); 613 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 614 rotation=-90))); 644 615 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 645 616 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 646 617 rotation=0))); 647 618 Modelica.Electrical.Analog.Basic.Ground Ground1 648 annotation (Placement(transformation( 649 origin={-90,90}, 650 extent={{-10,-10},{10,10}}, 651 rotation=270))); 619 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 620 rotation=-90))); 652 621 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 653 622 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 729 698 rotation=0))); 730 699 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 731 annotation (Placement(transformation( 732 origin={0,30}, 733 extent={{-10,10},{10,-10}}, 734 rotation=270))); 700 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 701 rotation=-90))); 735 702 Machines.Sensors.RotorAngle RotorAngle1(p=SMR1.p) 736 annotation (Placement(transformation( 737 origin={20,-40}, 738 extent={{10,-10},{-10,10}}, 739 rotation=90))); 703 annotation (Placement(transformation(extent={{30,-30},{10,-50}}, 704 rotation=90))); 740 705 Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp) 741 706 annotation (Placement(transformation(extent={{-80,50},{-60,70}}, … … 747 712 {-20,70}}, rotation=0))); 748 713 Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m) 749 annotation (Placement(transformation( 750 origin={0,60}, 751 extent={{10,-10},{-10,10}}, 752 rotation=270))); 714 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 715 rotation=-90))); 753 716 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 754 717 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 755 718 rotation=0))); 756 719 Modelica.Electrical.Analog.Basic.Ground Ground1 757 annotation (Placement(transformation( 758 origin={-90,90}, 759 extent={{-10,-10},{10,10}}, 760 rotation=270))); 720 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 721 rotation=-90))); 761 722 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 762 723 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 847 808 rotation=0))); 848 809 Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1 849 annotation (Placement(transformation( 850 origin={0,30}, 851 extent={{-10,10},{10,-10}}, 852 rotation=270))); 810 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 811 rotation=-90))); 853 812 Machines.Sensors.RotorAngle RotorAngle1(p=SMPM1.p) 854 annotation (Placement(transformation( 855 origin={20,-40}, 856 extent={{-10,10},{10,-10}}, 857 rotation=270))); 813 annotation (Placement(transformation(extent={{30,-30},{10,-50}}, 814 rotation=-90))); 858 815 Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp) 859 816 annotation (Placement(transformation(extent={{-80,50},{-60,70}}, … … 867 824 rotation=0))); 868 825 Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m) 869 annotation (Placement(transformation( 870 origin={0,60}, 871 extent={{10,-10},{-10,10}}, 872 rotation=270))); 826 annotation (Placement(transformation(extent={{-10,70},{10,50}}, 827 rotation=-90))); 873 828 Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m) 874 829 annotation (Placement(transformation(extent={{-50,80},{-70,100}}, 875 830 rotation=0))); 876 831 Modelica.Electrical.Analog.Basic.Ground Ground1 877 annotation (Placement(transformation( 878 origin={-90,90}, 879 extent={{-10,-10},{10,10}}, 880 rotation=270))); 832 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 833 rotation=-90))); 881 834 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 882 835 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 966 919 rotation=0))); 967 920 Machines.Sensors.RotorAngle RotorAngle1(p=SMEE1.p) 968 annotation (Placement(transformation( 969 origin={20,-40}, 970 extent={{-10,10},{10,-10}}, 971 rotation=270))); 921 annotation (Placement(transformation(extent={{30,-30},{10,-50}}, 922 rotation=-90))); 972 923 Modelica.Electrical.Analog.Basic.Ground Ground3 973 annotation (Placement(transformation( 974 origin={-90,-50}, 975 extent={{-10,-10},{10,10}}, 976 rotation=270))); 924 annotation (Placement(transformation(extent={{-80,-60},{-100,-40}}, 925 rotation=-90))); 977 926 Modelica.Mechanics.Rotational.ConstantSpeed ConstantSpeed1(final w_fixed= 978 927 Modelica.SIunits.Conversions.from_rpm(rpm)) … … 983 932 rotation=0))); 984 933 Sensors.ElectricalPowerSensor ElectricalPowerSensor1 985 annotation (Placement(transformation( 986 origin={0,60}, 987 extent={{-10,-10},{10,10}}, 988 rotation=270))); 934 annotation (Placement(transformation(extent={{10,50},{-10,70}}, 935 rotation=-90))); 989 936 Sensors.CurrentRMSsensor CurrentRMSsensor1 990 annotation (Placement(transformation( 991 origin={0,30}, 992 extent={{-10,10},{10,-10}}, 993 rotation=270))); 937 annotation (Placement(transformation(extent={{10,40},{-10,20}}, 938 rotation=-90))); 994 939 Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 995 940 final m=m, … … 1003 948 rotation=0))); 1004 949 Modelica.Electrical.Analog.Basic.Ground Ground1 1005 annotation (Placement(transformation( 1006 origin={-90,90}, 1007 extent={{-10,-10},{10,10}}, 1008 rotation=270))); 950 annotation (Placement(transformation(extent={{-80,80},{-100,100}}, 951 rotation=-90))); 1009 952 Modelica.Electrical.Analog.Sources.RampCurrent RampCurrent1( 1010 953 duration=0.1, 1011 954 I=Ie - Ie0, 1012 offset=Ie0) annotation (Placement(transformation( 1013 origin={-50,-40}, 1014 extent={{-10,-10},{10,10}}, 1015 rotation=90))); 955 offset=Ie0) annotation (Placement(transformation(extent={{-60, 956 -30},{-40,-50}}, rotation=90))); 1016 957 Utilities.TerminalBox TerminalBox1 annotation (Placement(transformation( 1017 958 extent={{-20,-30},{0,-10}}, rotation=0))); … … 1099 1040 =0))); 1100 1041 Modelica.Electrical.Analog.Basic.Ground Ground1 1101 annotation (Placement(transformation( 1102 origin={-70,40}, 1103 extent={{-10,-10},{10,10}}, 1104 rotation=270))); 1042 annotation (Placement(transformation(extent={{-60,30},{-80,50}}, 1043 rotation=-90))); 1105 1044 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 1106 1045 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 1163 1102 =0))); 1164 1103 Modelica.Electrical.Analog.Basic.Ground Grounda 1165 annotation (Placement(transformation( 1166 origin={-70,40}, 1167 extent={{-10,-10},{10,10}}, 1168 rotation=270))); 1104 annotation (Placement(transformation(extent={{-60,30},{-80,50}}, 1105 rotation=-90))); 1169 1106 Modelica.Electrical.Analog.Sources.ConstantVoltage ConstantVoltage1(V=Ve) 1170 annotation (Placement(transformation( 1171 origin={-40,-40}, 1172 extent={{-10,-10},{10,10}}, 1173 rotation=270))); 1107 annotation (Placement(transformation(extent={{-30,-50},{-50,-30}}, 1108 rotation=270))); 1174 1109 Modelica.Electrical.Analog.Basic.Ground Grounde 1175 annotation (Placement(transformation( 1176 origin={-70,-50}, 1177 extent={{-10,-10},{10,10}}, 1178 rotation=270))); 1110 annotation (Placement(transformation(extent={{-60,-60},{-80,-40}}, 1111 rotation=-90))); 1179 1112 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 1180 1113 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 1242 1175 =0))); 1243 1176 Modelica.Electrical.Analog.Basic.Ground Grounda 1244 annotation (Placement(transformation( 1245 origin={-70,40}, 1246 extent={{-10,-10},{10,10}}, 1247 rotation=270))); 1177 annotation (Placement(transformation(extent={{-60,30},{-80,50}}, 1178 rotation=-90))); 1248 1179 Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load) 1249 1180 annotation (Placement(transformation(extent={{40,-50},{60,-30}}, … … 1284 1215 even though the source's or load's starpoint are grounded; you may use a reasonable high earthing resistance. 1285 1216 </HTML>"), 1286 Diagram(graphics), 1217 Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, 1218 {100,100}}), graphics), 1287 1219 experiment(StopTime=0.1), 1288 1220 experimentSetupOutput); … … 1290 1222 V=fill(sqrt(2/3)*100, 3)) 1291 1223 annotation (Placement(transformation( 1292 origin={-90,-10},1293 extent={{-10,10},{10,-10}},1294 rotation=270)));1224 extent={{10,10},{-10,-10}}, 1225 rotation=-90, 1226 origin={-90,-10}))); 1295 1227 Modelica.Electrical.MultiPhase.Basic.Star starS 1296 1228 annotation (Placement(transformation( 1297 origin={-90,-40},1298 extent={{-10,-10},{10,10}},1299 rotation=270)));1229 extent={{10,-10},{-10,10}}, 1230 rotation=-90, 1231 origin={-90,-40}))); 1300 1232 Modelica.Electrical.Analog.Basic.Ground groundS 1301 1233 annotation (Placement(transformation(extent={{-100,-80},{-80,-60}}, … … 1309 1241 Sensors.VoltageRMSsensor voltageRMSsensorS 1310 1242 annotation (Placement(transformation( 1311 origin={-40,-10},1312 extent={{-10,10},{10,-10}},1313 rotation=270)));1243 extent={{10,10},{-10,-10}}, 1244 rotation=-90, 1245 origin={-40,-10}))); 1314 1246 Modelica.Electrical.MultiPhase.Basic.Delta deltaS 1315 1247 annotation (Placement(transformation( 1316 origin={-40,-30}, 1317 extent={{-10,-10},{10,10}}, 1318 rotation=270))); 1319 Machines.BasicMachines.Transformers.Transformer transformer( 1320 redeclare model transformer = 1321 Machines.BasicMachines.Transformers.Yd.Yd01) 1322 annotation (Placement(transformation(extent={{-20,-10},{20,30}}, 1323 rotation=0))); 1248 extent={{10,-10},{-10,10}}, 1249 rotation=-90, 1250 origin={-40,-30}))); 1324 1251 Modelica.Electrical.Analog.Basic.Resistor earth(R=1e6) 1325 1252 annotation (Placement(transformation( 1326 origin={0,-40},1327 extent={{-10,10},{10,-10}},1328 rotation=270)));1253 extent={{10,10},{-10,-10}}, 1254 rotation=-90, 1255 origin={0,-40}))); 1329 1256 Modelica.Electrical.Analog.Basic.Ground ground 1330 1257 annotation (Placement(transformation(extent={{-10,-80},{10,-60}}, … … 1332 1259 Sensors.VoltageRMSsensor voltageRMSsensorL 1333 1260 annotation (Placement(transformation( 1334 origin={40,-10},1335 extent={{-10,-10},{10,10}},1336 rotation=270)));1261 extent={{10,-10},{-10,10}}, 1262 rotation=-90, 1263 origin={40,-10}))); 1337 1264 Modelica.Electrical.MultiPhase.Basic.Delta deltaL 1338 1265 annotation (Placement(transformation( 1339 origin={40,-30},1340 extent={{-10,10},{10,-10}},1341 rotation=270)));1266 extent={{10,10},{-10,-10}}, 1267 rotation=-90, 1268 origin={40,-30}))); 1342 1269 Sensors.CurrentRMSsensor currentRMSsensorL 1343 1270 annotation (Placement(transformation(extent={{40,20},{60,0}}, rotation= … … 1348 1275 Modelica.Electrical.MultiPhase.Basic.Resistor load(R=RL) 1349 1276 annotation (Placement(transformation( 1350 origin={90,-10},1351 extent={{-10,10},{10,-10}},1352 rotation=270)));1277 extent={{10,10},{-10,-10}}, 1278 rotation=-90, 1279 origin={90,-10}))); 1353 1280 Modelica.Electrical.MultiPhase.Basic.Star starL 1354 1281 annotation (Placement(transformation( 1355 origin={90,-40},1356 extent={{-10,10},{10,-10}},1357 rotation=270)));1282 extent={{10,10},{-10,-10}}, 1283 rotation=-90, 1284 origin={90,-40}))); 1358 1285 Modelica.Electrical.Analog.Basic.Ground groundL 1359 1286 annotation (Placement(transformation(extent={{80,-80},{100,-60}}, 1360 1287 rotation=0))); 1288 Utilities.TransformerData transformerData(C1= 1289 Modelica.Utilities.Strings.substring( 1290 transformer.VectorGroup,1,1), C2=Modelica.Utilities.Strings.substring( 1291 transformer.VectorGroup,2,2)) annotation (Placement( 1292 transformation(extent={{-10,40},{10,60}}, rotation=0))); 1293 BasicMachines.Transformers.Yd.Yd01 transformer( 1294 n=transformerData.n, 1295 R1=transformerData.R1, 1296 L1sigma=transformerData.L1sigma, 1297 R2=transformerData.R2, 1298 L2sigma=transformerData.L2sigma) annotation (Placement(transformation( 1299 extent={{-20,-10},{20,30}}, rotation=0))); 1361 1300 equation 1362 1301 connect(starS.pin_n, groundS.p) 1363 annotation (Line(points={{-90,- 50},{-90,-60}}, color={0,0,255}));1302 annotation (Line(points={{-90,-30},{-90,-60}}, color={0,0,255})); 1364 1303 connect(source.plug_n, starS.plug_p) 1365 annotation (Line(points={{-90, -20},{-90,-30}}, color={0,0,255}));1304 annotation (Line(points={{-90,0},{-90,-50}}, color={0,0,255})); 1366 1305 connect(starL.pin_n, groundL.p) 1367 annotation (Line(points={{90,- 50},{90,-60}}, color={0,0,255}));1306 annotation (Line(points={{90,-30},{90,-60}}, color={0,0,255})); 1368 1307 connect(load.plug_n, starL.plug_p) 1369 annotation (Line(points={{90, -20},{90,-30}}, color={0,0,255}));1308 annotation (Line(points={{90,0},{90,-50}}, color={0,0,255})); 1370 1309 connect(earth.n,ground. p) 1371 annotation (Line(points={{ -6.12303e-016,-50},{0,-50},{0,-60}}, color={0,1310 annotation (Line(points={{1.83697e-015,-30},{0,-30},{0,-60}}, color={0, 1372 1311 0,255})); 1373 1312 connect(electricalPowerSensorS.plug_nv, starS.plug_p) 1374 annotation (Line(points={{-80,0},{-80,- 30},{-90,-30}}, color={0,0,255}));1313 annotation (Line(points={{-80,0},{-80,-50},{-90,-50}}, color={0,0,255})); 1375 1314 connect(source.plug_p, electricalPowerSensorS.plug_p) 1376 annotation (Line(points={{-90, 0},{-90,10}}, color={0,0,255}));1315 annotation (Line(points={{-90,-20},{-90,10}}, color={0,0,255})); 1377 1316 connect(electricalPowerSensorS.plug_ni, currentRMSsensorS.plug_p) 1378 1317 annotation (Line(points={{-70,10},{-60,10}}, color={0,0,255})); … … 1380 1319 annotation (Line(points={{60,10},{70,10}}, color={0,0,255})); 1381 1320 connect(electricalPowerSensorL.plug_ni, load.plug_p) 1382 annotation (Line(points={{90,10},{90, 0}}, color={0,0,255}));1321 annotation (Line(points={{90,10},{90,-20}}, color={0,0,255})); 1383 1322 connect(currentRMSsensorS.plug_n, voltageRMSsensorS.plug_p) 1384 annotation (Line(points={{-40,10},{-40, 0}}, color={0,0,255}));1323 annotation (Line(points={{-40,10},{-40,-20}}, color={0,0,255})); 1385 1324 connect(currentRMSsensorL.plug_p, voltageRMSsensorL.plug_p) 1386 annotation (Line(points={{40,10},{40, 0}}, color={0,0,255}));1325 annotation (Line(points={{40,10},{40,-20}}, color={0,0,255})); 1387 1326 connect(electricalPowerSensorL.plug_nv, starL.plug_p) 1388 annotation (Line(points={{80,0},{80,- 30},{90,-30}}, color={0,0,255}));1327 annotation (Line(points={{80,0},{80,-50},{90,-50}}, color={0,0,255})); 1389 1328 connect(voltageRMSsensorS.plug_n, deltaS.plug_p) 1390 annotation (Line(points={{-40, -20},{-40,-20}}, color={0,0,255}));1329 annotation (Line(points={{-40,0},{-40,-40}}, color={0,0,255})); 1391 1330 connect(deltaL.plug_p, voltageRMSsensorL.plug_n) 1392 annotation (Line(points={{40,-20},{40,-20}}, color={0,0,255})); 1393 connect(currentRMSsensorS.plug_n, transformer.plug1) 1394 annotation (Line(points={{-40,10},{-20,10}}, color={0,0,255})); 1395 connect(transformer.plug2, currentRMSsensorL.plug_p) 1396 annotation (Line(points={{20,10},{40,10}}, color={0,0,255})); 1331 annotation (Line(points={{40,-40},{40,0}}, color={0,0,255})); 1397 1332 connect(deltaS.plug_n, voltageRMSsensorS.plug_p) 1398 annotation (Line(points={{-40,-40},{-50,-40},{-50,0},{-40,0}}, color={0, 1333 annotation (Line(points={{-40,-20},{-50,-20},{-50,-20},{-40,-20}}, 1334 color={0,0,255})); 1335 connect(deltaL.plug_n, voltageRMSsensorL.plug_p) 1336 annotation (Line(points={{40,-20},{50,-20},{50,-20},{40,-20}}, color={0, 1399 1337 0,255})); 1400 connect(deltaL.plug_n, voltageRMSsensorL.plug_p) 1401 annotation (Line(points={{40,-40},{50,-40},{50,0},{40,0}}, color={0,0, 1402 255})); 1338 connect(currentRMSsensorS.plug_n, transformer.plug1) annotation (Line( 1339 points={{-40,10},{-20,10}}, 1340
