Changeset 700
- Timestamp:
- 10/15/07 19:48:38 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Modelica/branches/maintenance/2.2.2/Modelica/Electrical/Machines.mo
r654 r700 1 1 within Modelica.Electrical; 2 2 3 package Machines "Library for electric machines" 3 4 extends Modelica.Icons.Library2; 4 5 annotation ( 5 version="1.8. 8", versionDate="2007-08-20",6 version="1.8.9", versionDate="2007-10-15", 6 7 Settings(NewStateSelection=true, Evaluate=true), 7 8 preferedView="info", Documentation(info="<HTML> … … 124 125 <li> v1.8.8 2007/08/20 Anton Haumer<br> 125 126 improved documentation</li> 127 <li> v1.8.9 2007/10/15 Anton Haumer<br> 128 solved a bug with replaceable airgap / partial machines</li> 126 129 </ul> 127 130 </HTML>"), … … 264 267 annotation (points=[-70, 90; -80, 90], style(color=3)); 265 268 connect(SineVoltage1.plug_n, Star1.plug_p) 266 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],269 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 267 270 style(color=3)); 268 271 connect(SineVoltage1.plug_p, IdealCloser1.plug_p) 269 annotation (points=[6.123 03e-016,50; 0,48; 1.22461e-015,46;270 6.123 03e-016,46; 6.12303e-016,40], style(color=3));272 annotation (points=[6.12323e-016,50; 0,48; 1.22461e-015,46; 273 6.12323e-016,46; 6.12323e-016,40], style(color=3)); 271 274 connect(AIMC1.flange_a, LoadInertia.flange_a) annotation (points=[0,-40; 272 275 40,-40], style(color=0, rgbcolor={0,0,0})); … … 291 294 fillPattern=1)); 292 295 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 293 points=[-10,-28; -10,-20; -6.123 03e-016,-20; -6.12303e-016,-10],296 points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 294 297 style( 295 298 color=3, … … 299 302 fillPattern=1)); 300 303 connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 301 -6.123 03e-016,20; -6.12303e-016,17; 6.12303e-016,17; 6.12303e-016,304 -6.12323e-016,20; -6.12323e-016,17; 6.12323e-016,17; 6.12323e-016, 302 305 10], style( 303 306 color=3, … … 371 374 annotation (points=[-70, 90; -80, 90], style(color=3)); 372 375 connect(SineVoltage1.plug_n, Star1.plug_p) 373 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],376 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 374 377 style(color=3)); 375 378 connect(SineVoltage1.plug_p, IdealCloser1.plug_p) 376 annotation (points=[6.123 03e-016,50; 0,48; 1.22461e-015,46;377 6.123 03e-016,46; 6.12303e-016,40], style(color=3));379 annotation (points=[6.12323e-016,50; 0,48; 1.22461e-015,46; 380 6.12323e-016,46; 6.12323e-016,40], style(color=3)); 378 381 connect(SwitchYD1.plug_NS, AIMC1.plug_sn) annotation (points=[-20,-30; 379 382 -16,-30], … … 394 397 -21,-20],style(color=5, rgbcolor={255,0,255})); 395 398 connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 396 -6.123 03e-016,20; -6.12303e-016,18; 6.12303e-016,18; 6.12303e-016,399 -6.12323e-016,20; -6.12323e-016,18; 6.12323e-016,18; 6.12323e-016, 397 400 10], style( 398 401 color=3, … … 402 405 fillPattern=1)); 403 406 connect(CurrentRMSsensor1.plug_n, SwitchYD1.plug_P) annotation (points=[ 404 -6.123 03e-016,-10; -6.12303e-016,-10; 0,-8; 0,-10], style(407 -6.12323e-016,-10; -6.12303e-016,-10; 0,-8; 0,-10], style( 405 408 color=3, 406 409 rgbcolor={0,0,255}, … … 487 490 annotation (points=[-70, 90; -80, 90], style(color=3)); 488 491 connect(SineVoltage1.plug_n, Star1.plug_p) 489 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],492 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 490 493 style(color=3)); 491 494 connect(SineVoltage1.plug_p, IdealCloser1.plug_p) 492 annotation (points=[6.123 03e-016,50; 0,48; 1.22461e-015,46;493 6.123 03e-016,46; 6.12303e-016,40], style(color=3));495 annotation (points=[6.12323e-016,50; 0,48; 1.22461e-015,46; 496 6.12323e-016,46; 6.12323e-016,40], style(color=3)); 494 497 connect(Star3.pin_n, Ground3.p) 495 498 annotation (points=[-70,-90; -80,-90], style(color=3)); … … 528 531 -59,-40; -48,-40], style(color=5, rgbcolor={255,0,255})); 529 532 connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 530 -6.123 03e-016,20; -6.12303e-016,16; 6.12303e-016,16; 6.12303e-016,533 -6.12323e-016,20; -6.12323e-016,16; 6.12323e-016,16; 6.12323e-016, 531 534 10], style( 532 535 color=3, … … 550 553 fillPattern=1)); 551 554 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 552 points=[-10,-28; -10,-20; -6.123 03e-016,-20; -6.12303e-016,-10],555 points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 553 556 style( 554 557 color=3, … … 613 616 equation 614 617 connect(SignalVoltage1.plug_n, Star1.plug_p) 615 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],618 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 616 619 style(color=3)); 617 620 connect(Star1.pin_n, Ground1.p) … … 626 629 annotation (points=[70,-40; 60,-40], style(color=0, rgbcolor={0,0,0})); 627 630 connect(SignalVoltage1.plug_p, CurrentRMSsensor1.plug_p) annotation (points=[ 628 6.123 03e-016,50; 6.12303e-016,40; 6.12303e-016,40; 6.12303e-016,30;629 6.12303e-016,10; 6.123 03e-016,10], style(color=3, rgbcolor={0,0,631 6.12323e-016,50; 6.12323e-016,40; 6.12303e-016,40; 6.12303e-016,30; 632 6.12303e-016,10; 6.12323e-016,10], style(color=3, rgbcolor={0,0, 630 633 255})); 631 634 connect(TerminalBox1.negativeMachinePlug, AIMC1.plug_sn) annotation ( … … 644 647 fillPattern=1)); 645 648 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 646 points=[-10,-28; -10,-20; -6.123 03e-016,-20; -6.12303e-016,-10],649 points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 647 650 style( 648 651 color=3, … … 711 714 equation 712 715 connect(SignalVoltage1.plug_n, Star1.plug_p) 713 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],716 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 714 717 style(color=3)); 715 718 connect(Star1.pin_n, Ground1.p) … … 724 727 annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 725 728 connect(CurrentRMSsensor1.plug_p, SignalVoltage1.plug_p) annotation ( 726 points=[6.123 03e-016,40; 6.12303e-016,42.5; 6.12303e-016,42.5;727 6.12303e-016,45; 6.12303e-016,50; 6.123 03e-016,50], style(color=3,729 points=[6.12323e-016,40; 6.12323e-016,42.5; 6.12303e-016,42.5; 730 6.12303e-016,45; 6.12303e-016,50; 6.12323e-016,50], style(color=3, 728 731 rgbcolor={0,0,255})); 729 732 connect(SMR1.plug_sn, RotorAngle1.plug_n) annotation (points=[-16,-30; … … 749 752 fillPattern=1)); 750 753 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 751 points=[-10,-28; -10,20; -6.123 03e-016,20], style(754 points=[-10,-28; -10,20; -6.12323e-016,20], style( 752 755 color=3, 753 756 rgbcolor={0,0,255}, … … 820 823 equation 821 824 connect(SignalVoltage1.plug_n, Star1.plug_p) 822 annotation (points=[-6.123 03e-016,70; -6.12303e-016,90; -50,90],825 annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 823 826 style(color=3)); 824 827 connect(Star1.pin_n, Ground1.p) … … 831 834 annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 832 835 connect(SignalVoltage1.plug_p, CurrentRMSsensor1.plug_p) annotation (points=[ 833 6.123 03e-016,50; 0,50; 0,40; 6.12303e-016,40], style(color=3,836 6.12323e-016,50; 0,50; 0,40; 6.12323e-016,40], style(color=3, 834 837 rgbcolor={0,0,255})); 835 838 connect(RotorAngle1.plug_n, SMPM1.plug_sn) annotation (points=[26,-30; … … 857 860 fillPattern=1)); 858 861 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 859 points=[-10,-28; -10,20; -6.123 03e-016,20], style(862 points=[-10,-28; -10,20; -6.12323e-016,20], style( 860 863 color=3, 861 864 rgbcolor={0,0,255}, … … 944 947 -40,90], style(color=3, rgbcolor={0,0,255})); 945 948 connect(ElectricalPowerSensor1.plug_ni, CurrentRMSsensor1.plug_p) 946 annotation (points=[6.123 03e-016,50; 1.76911e-022,46; 6.12303e-016,46;947 6.123 03e-016,40], style(color=3, rgbcolor={0,0,255}));949 annotation (points=[6.12323e-016,50; 1.76911e-022,46; 6.12323e-016,46; 950 6.12323e-016,40], style(color=3, rgbcolor={0,0,255})); 948 951 connect(SMEE1.flange_a, MechanicalPowerSensor1.flange_a) 949 952 annotation (points=[0,-40; 40,-40], style(color=0, rgbcolor={0,0,0})); … … 951 954 annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 952 955 connect(SineVoltage1.plug_p, ElectricalPowerSensor1.plug_p) annotation ( 953 points=[-20,90; -6.123 03e-016,90; -6.12303e-016,70], style(color=3,956 points=[-20,90; -6.12323e-016,90; -6.12323e-016,70], style(color=3, 954 957 rgbcolor={0,0,255})); 955 958 connect(RampCurrent1.p, Ground3.p) annotation (points=[-50,-50; -80,-50], … … 974 977 fillPattern=1)); 975 978 connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 976 points=[-10,-28; -10,20; -6.123 03e-016,20], style(979 points=[-10,-28; -10,20; -6.12323e-016,20], style( 977 980 color=3, 978 981 rgbcolor={0,0,255}, … … 1197 1200 Modelica.Electrical.MultiPhase.Basic.Delta deltaS 1198 1201 annotation (extent=[-50,-40; -30,-20], rotation=-90); 1199 Machines.BasicMachines.Transformers.Transformer transformer(1200 redeclare model transformer =1201 Machines.BasicMachines.Transformers.Yd.Yd01)1202 annotation (extent=[-20,-10; 20,30]);1203 1202 Modelica.Electrical.Analog.Basic.Resistor earth(R=1e6) 1204 1203 annotation (extent=[10,-50; -10,-30], rotation=-90); … … 1219 1218 Modelica.Electrical.Analog.Basic.Ground groundL 1220 1219 annotation (extent=[80,-80; 100,-60]); 1220 Utilities.TransformerData transformerData(C1= 1221 Modelica.Utilities.Strings.substring( 1222 transformer.VectorGroup,1,1), C2=Modelica.Utilities.Strings.substring( 1223 transformer.VectorGroup,2,2)) annotation (extent=[-10,40; 10,60]); 1224 BasicMachines.Transformers.Yd.Yd01 transformer( 1225 n=transformerData.n, 1226 R1=transformerData.R1, 1227 L1sigma=transformerData.L1sigma, 1228 R2=transformerData.R2, 1229 L2sigma=transformerData.L2sigma) annotation (extent=[-20,-10; 20,30]); 1221 1230 equation 1222 1231 connect(starS.pin_n, groundS.p) … … 1229 1238 annotation (points=[90,-20; 90,-30], style(color=3, rgbcolor={0,0,255})); 1230 1239 connect(earth.n,ground. p) 1231 annotation (points=[-6.123 03e-016,-50; 0,-50; 0,-60],style(color=3, rgbcolor={0,0,255}));1240 annotation (points=[-6.12323e-016,-50; 0,-50; 0,-60],style(color=3, rgbcolor={0,0,255})); 1232 1241 connect(electricalPowerSensorS.plug_nv, starS.plug_p) 1233 1242 annotation (points=[-80,0; -80,-30; -90,-30], style(color=3, rgbcolor={0,0,255})); … … 1252 1261 connect(deltaL.plug_p, voltageRMSsensorL.plug_n) 1253 1262 annotation (points=[40,-20; 40,-20], style(color=3, rgbcolor={0,0,255})); 1254 connect(currentRMSsensorS.plug_n, transformer.plug1)1255 annotation (points=[-40,10; -20,10],1256 style(color=3, rgbcolor={0,0,255}));1257 connect(transformer.plug2, currentRMSsensorL.plug_p)1258 annotation (points=[20,10; 40,10],1259 style(color=3, rgbcolor={0,0,255}));1260 1263 connect(deltaS.plug_n, voltageRMSsensorS.plug_p) 1261 1264 annotation (points=[-40,-40; -50,-40; -50,0; -40,0], style(color=3, rgbcolor={0,0,255})); 1262 1265 connect(deltaL.plug_n, voltageRMSsensorL.plug_p) 1263 1266 annotation (points=[40,-40; 50,-40; 50,0; 40,0], style(color=3, rgbcolor={0,0,255})); 1267 connect(currentRMSsensorS.plug_n, transformer.plug1) annotation (points=[-40,10; -20,10], style( 1268 color=3, 1269 rgbcolor={0,0,255}, 1270 smooth=0)); 1271 connect(transformer.plug2, currentRMSsensorL.plug_p) annotation (points=[20,10; 40,10], style( 1272 color=3, 1273 rgbcolor={0,0,255}, 1274 smooth=0)); 1264 1275 end TransformerTestbench; 1265 1276 … … 1292 1303 Modelica.Electrical.MultiPhase.Sensors.CurrentSensor currentSensor 1293 1304 annotation (extent=[-80,-10; -60,10]); 1294 Machines.BasicMachines.Transformers.Transformer transformer1(1295 redeclare model transformer =1296 Machines.BasicMachines.Transformers.Dy.Dy01)1297 annotation (extent=[-50,30; -30,50]);1298 1305 Modelica.Electrical.MultiPhase.Ideal.IdealDiode diode1(m=m) 1299 1306 annotation (extent=[-10,50; -30,70],rotation=90); … … 1312 1319 Modelica.Electrical.Analog.Basic.Ground groundDC 1313 1320 annotation (extent=[80,-20; 100,0]); 1321 Utilities.TransformerData transformerData1(C1= 1322 Modelica.Utilities.Strings.substring( 1323 transformer1.VectorGroup,1,1), C2=Modelica.Utilities.Strings.substring( 1324 transformer1.VectorGroup,2,2)) annotation (extent=[-60,60; -40,80]); 1325 BasicMachines.Transformers.Dy.Dy01 transformer1( 1326 n=transformerData1.n, 1327 R1=transformerData1.R1, 1328 L1sigma=transformerData1.L1sigma, 1329 R2=transformerData1.R2, 1330 L2sigma=transformerData1.L2sigma) annotation (extent=[-50,30; -30,50]); 1314 1331 equation 1315 1332 connect(cDC1.n, cDC2.p) … … 1337 1354 connect(star2.pin_n, cDC2.n) 1338 1355 annotation (points=[10,10; 20,10; 20,-70; 70,-70; 70,-30], style(color=3, rgbcolor={0,0,255})); 1339 connect(currentSensor.plug_n, transformer1.plug1) 1340 annotation (points=[-60,0; -60,40; -50,40], style(color=3, rgbcolor={0,0,255})); 1341 connect(diode1.plug_p, transformer1.plug2) 1342 annotation (points=[-20,50; -20,40; -30,40], style(color=3, rgbcolor={0,0,255})); 1356 connect(transformer1.plug1, currentSensor.plug_n) annotation (points=[-50,40; -60,40; -60,0], style( 1357 color=3, 1358 rgbcolor={0,0,255}, 1359 smooth=0)); 1360 connect(transformer1.plug2, diode1.plug_p) annotation (points=[-30,40; -20,40; -20,50], style( 1361 color=3, 1362 rgbcolor={0,0,255}, 1363 smooth=0)); 1343 1364 end Rectifier6pulse; 1344 1365 … … 1354 1375 experiment(StopTime=0.1), 1355 1376 experimentSetupOutput); 1356 Machines.BasicMachines.Transformers.Transformer transformer2(1357 redeclare model transformer =1358 Machines.BasicMachines.Transformers.Dd.Dd00)1359 annotation (extent=[-50,-50; -30,-30]);1360 1377 Modelica.Electrical.MultiPhase.Ideal.IdealDiode diode3(m=m) 1361 1378 annotation (extent=[-10,-30; -30,-10], rotation=90); … … 1366 1383 Modelica.Electrical.MultiPhase.Basic.Star star4(m=m) 1367 1384 annotation (extent=[-10,-60; 10,-80], rotation=0); 1385 BasicMachines.Transformers.Dd.Dd00 transformer2( 1386 n=transformerData2.n, 1387 R1=transformerData2.R1, 1388 L1sigma=transformerData2.L1sigma, 1389 R2=transformerData2.R2, 1390 L2sigma=transformerData2.L2sigma) annotation (extent=[-50,-50; -30,-30]); 1391 Utilities.TransformerData transformerData2(C1= 1392 Modelica.Utilities.Strings.substring( 1393 transformer2.VectorGroup,1,1), C2=Modelica.Utilities.Strings.substring( 1394 transformer2.VectorGroup,2,2)) annotation (extent=[-60,-80; -40,-60]); 1368 1395 equation 1369 1396 connect(diode3.plug_n, star3.plug_p) … … 1373 1400 connect(diode4.plug_n, diode3.plug_p) 1374 1401 annotation (points=[-20,-50; -20,-30], style(color=3, rgbcolor={0,0,255})); 1375 connect(diode3.plug_p, transformer2.plug2)1376 annotation (points=[-20,-30; -20,-40; -30,-40], style(color=3, rgbcolor={0,0,255}));1377 1402 connect(star4.pin_n, cDC2.n) 1378 1403 annotation (points=[10,-70; 70,-70; 70,-30], style(color=3, rgbcolor={0,0,255})); 1379 connect(transformer2.plug1, currentSensor.plug_n)1380 annotation (points=[-50,-40; -60,-40; -60,0], style(color=3, rgbcolor={0,0,255}));1381 1404 connect(star3.pin_n, cDC1.p) 1382 1405 annotation (points=[10,-10; 18,-10; 18,-8; 22,-8; 22,-10; 30,-10; 30,70; 70,70; 70,30], 1383 1406 style(color=3, rgbcolor={0,0,255})); 1407 connect(transformer2.plug1, currentSensor.plug_n) annotation (points=[-50, 1408 -40; -60,-40; -60,0], style( 1409 color=3, 1410 rgbcolor={0,0,255}, 1411 smooth=0)); 1412 connect(transformer2.plug2, diode4.plug_n) annotation (points=[-30,-40; 1413 -20,-40; -20,-50], style( 1414 color=3, 1415 rgbcolor={0,0,255}, 1416 smooth=0)); 1384 1417 end Rectifier12pulse; 1385 1418 … … 1479 1512 70; -20,83], style(color=5, rgbcolor={255,0,255})); 1480 1513 connect(plugToPin_p3.plug_p, plugToPin_p2.plug_p) 1481 annotation (points=[-30,-20; -10,-20], style(color=3, rgbcolor={0,0,255})); 1514 annotation (points=[-30,-12; -25,-12; -25,-4; -20,-4; -20,-20; -10,-20], 1515 style(color=3, rgbcolor={0,0,255})); 1482 1516 connect(plugToPin_p2.plug_p,plugToPin_p1. plug_p) 1483 annotation (points=[-10,-20; 10,-20], style(color=3, rgbcolor={0,0,255})); 1484 connect(plugToPin_p3.pin_p, SineVoltage1.n) annotation (points=[-30,0; -70,0; 1485 -70,90], style(color=3, rgbcolor={0,0,255})); 1517 annotation (points=[-10,-12; -5,-12; -5,-4; 0,-4; 0,-20; 10,-20], 1518 style(color=3, rgbcolor={0,0,255})); 1519 connect(plugToPin_p3.pin_p, SineVoltage1.n) annotation (points=[-30,-8; 1520 -70,-8; -70,90], style(color=3, rgbcolor={0,0,255})); 1486 1521 connect(IdealCloser1.n, plugToPin_p2.pin_p) 1487 annotation (points=[-10,90; -10, 0],style(color=3, rgbcolor={0,0,255}));1522 annotation (points=[-10,90; -10,-8],style(color=3, rgbcolor={0,0,255})); 1488 1523 connect(Crun.n, plugToPin_p1.pin_p) 1489 annotation (points=[10,10; 10, 0],style(color=3, rgbcolor={0,0,255}));1524 annotation (points=[10,10; 10,-8],style(color=3, rgbcolor={0,0,255})); 1490 1525 connect(LoadInertia.flange_b, QuadraticLoadTorque1.flange) 1491 1526 annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 1492 1527 connect(Crun.p, IdealCloser1.n) annotation (points=[10,30; 10,90; -10,90], 1493 1528 style(color=3, rgbcolor={0,0,255})); 1494 connect(plugToPin_p1.pin_p, Cstart.n) annotation (points=[10,0; 30,0; 30, 1495 10], style(color=3, rgbcolor={0,0,255})); 1529 connect(plugToPin_p1.pin_p, Cstart.n) annotation (points=[10,-8; 30, 1530 -8; 30,10], 1531 style(color=3, rgbcolor={0,0,255})); 1496 1532 connect(idealOpener1.n, Cstart.p) 1497 1533 annotation (points=[30,40; 30,30], style(color=3, rgbcolor={0,0,255})); … … 1505 1541 50,50; 37,50], style(color=5, rgbcolor={255,0,255})); 1506 1542 connect(plugToPin_p2.plug_p, TerminalBox1.plugToGrid) 1507 annotation (points=[-10,- 20; -10,-28], style(color=3, rgbcolor={0,0,255}));1543 annotation (points=[-10,-12; -10,-28], style(color=3, rgbcolor={0,0,255})); 1508 1544 end AIMC_Steinmetz; 1509 1545 … … 1702 1738 end TerminalBox; 1703 1739 1740 record TransformerData 1741 extends Modelica.Icons.Record; 1742 parameter Modelica.SIunits.Frequency f=50 "Nominal frequency"; 1743 parameter Modelica.SIunits.Voltage V1=100 1744 "Primary nominal line-to-line voltage (RMS)"; 1745 parameter String C1="Y" "Choose primary connection" 1746 annotation(choices(choice="Y" "Star connection", 1747 choice="D" "Delta connection")); 1748 parameter Modelica.SIunits.Voltage V2=100 1749 "Secondary open circuit line-to-line voltage (RMS) @ primary nominal voltage"; 1750 parameter String C2="y" "Choose secondary connection" 1751 annotation(choices(choice="y" "Star connection", 1752 choice="d" "Delta connection", 1753 choice="z" "zig-zag connection")); 1754 parameter Modelica.SIunits.ApparentPower SNominal=30E3 1755 "Nominal apparent power"; 1756 parameter Real v_sc(final min=0, final max=1)=0.05 1757 "Impedance voltage drop pu"; 1758 parameter Modelica.SIunits.Power P_sc=300 1759 "Short-circuit (copper) losses"; 1760 1761 parameter Real n = V1/V2 1762 "Primary voltage (line-to-line) / Secondary voltage (line-to-line)" 1763 annotation(Dialog(tab="Result", enable = false)); 1764 final parameter Modelica.SIunits.Voltage V1ph = V1/(if C1=="D" then 1 else sqrt(3)); 1765 final parameter Modelica.SIunits.Current I1ph = SNominal/(3*V1ph); 1766 final parameter Modelica.SIunits.Voltage V2ph = V2/(if C2=="d" then 1 else sqrt(3)); 1767 final parameter Modelica.SIunits.Current I2ph = SNominal/(3*V2ph); 1768 final parameter Modelica.SIunits.Impedance Z1ph = 0.5*v_sc*V1ph/I1ph; 1769 parameter Modelica.SIunits.Resistance R1= 0.5*P_sc/(3*I1ph^2) 1770 "Warm primary resistance per phase" 1771 annotation(Dialog(tab="Result", enable = false)); 1772 parameter Modelica.SIunits.Inductance L1sigma= sqrt(Z1ph^2-R1^2)/(2*Modelica.Constants.pi*f) 1773 "Primary stray inductance per phase" 1774 annotation(Dialog(tab="Result", enable = false)); 1775 final parameter Modelica.SIunits.Impedance Z2ph = 0.5*v_sc*V2ph/I2ph; 1776 parameter Modelica.SIunits.Resistance R2= 0.5*P_sc/(3*I2ph^2) 1777 "Warm secondary resistance per phase" 1778 annotation(Dialog(tab="Result", enable = false)); 1779 parameter Modelica.SIunits.Inductance L2sigma= sqrt(Z2ph^2-R2^2)/(2*Modelica.Constants.pi*f) 1780 "Secondary stray inductance per phase" 1781 annotation(Dialog(tab="Result", enable = false)); 1782 end TransformerData; 1704 1783 end Utilities; 1705 1784 end Examples; … … 1837 1916 model AIM_SquirrelCage 1838 1917 "Asynchronous induction machine with squirrel cage rotor" 1839 extends Machines.BasicMachines.Components.BasicAIM(airGapS(final Lm=Lm)); 1918 extends Machines.Interfaces.PartialBasicInductionMachine( 1919 final idq_ss = airGapS.i_ss, 1920 final idq_sr = airGapS.i_sr, 1921 final idq_rs = airGapS.i_rs, 1922 final idq_rr = airGapS.i_rr); 1923 replaceable Components.AirGapS airGapS(final p=p, final m=3, final Lm=Lm) extends 1924 Components.PartialAirGap 1925 annotation (extent=[-10,-10; 10,10], rotation=-90); 1840 1926 parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal) 1841 1927 "main field inductance" … … 1939 2025 </HTML>"), Diagram); 1940 2026 equation 1941 connect(airGapS.spacePhasor_r, squirrelCageR.spacePhasor_r) 1942 annotation (points=[10,-10; 10,-20], style(color=3, rgbcolor={0,0,255})); 2027 connect(squirrelCageR.spacePhasor_r, airGapS.spacePhasor_r) annotation ( 2028 points=[10,-20; 10,-10], style( 2029 color=3, 2030 rgbcolor={0,0,255}, 2031 smooth=0)); 2032 connect(airGapS.spacePhasor_s, spacePhasorS.spacePhasor) annotation (points=[ 2033 10,10; 10,20], style( 2034 color=3, 2035 rgbcolor={0,0,255}, 2036 smooth=0)); 2037 connect(airGapS.flange_a, inertiaRotor.flange_a) annotation (points=[10, 2038 6.12323e-016; 36,6.12323e-016; 36,-1.22465e-015; 60,-1.22465e-015], 2039 style( 2040 color=0, 2041 rgbcolor={0,0,0}, 2042 smooth=0)); 2043 connect(airGapS.support, internalSupport) annotation (points=[-10, 2044 -6.12323e-016; -90,-6.12323e-016; -90,-100; 20,-100], style( 2045 color=0, 2046 rgbcolor={0,0,0}, 2047 smooth=0)); 1943 2048 end AIM_SquirrelCage; 1944 2049 1945 2050 model AIM_SlipRing "Asynchronous induction machine with slipring rotor" 1946 extends Machines.BasicMachines.Components.BasicAIM(airGapS(final Lm=Lm)); 2051 extends Machines.Interfaces.PartialBasicInductionMachine( 2052 final idq_ss = airGapS.i_ss, 2053 final idq_sr = airGapS.i_sr, 2054 final idq_rs = airGapS.i_rs, 2055 final idq_rr = airGapS.i_rr); 2056 replaceable Components.AirGapS airGapS(final p=p, final m=3, final Lm=Lm) extends 2057 Components.PartialAirGap 2058 annotation (extent=[-10,-10; 10,10], rotation=-90); 1947 2059 parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal) 1948 2060 "main field inductance" … … 2114 2226 -80,-90; -80,60; -100,60], style(color=3, rgbcolor={0,0,255})); 2115 2227 connect(spacePhasorR.ground, spacePhasorR.zero) annotation (points=[-10,-20; 2116 -10,-14; -6.123 03e-016,-14; -6.12303e-016,-20], style(2228 -10,-14; -6.12323e-016,-14; -6.12323e-016,-20], style( 2117 2229 color=3, 2118 2230 rgbcolor={0,0,255}, … … 2122 2234 connect(airGapS.spacePhasor_r, spacePhasorR.spacePhasor) 2123 2235 annotation (points=[10,-10; 10,-20], style(color=3, rgbcolor={0,0,255})); 2236 connect(spacePhasorS.spacePhasor, airGapS.spacePhasor_s) annotation (points=[10, 2237 20; 10,10], style( 2238 color=3, 2239 rgbcolor={0,0,255}, 2240 smooth=0)); 2241 connect(airGapS.flange_a, inertiaRotor.flange_a) annotation (points=[10, 2242 6.12323e-016; 36,6.12323e-016; 36,-1.22465e-015; 60,-1.22465e-015], 2243 style( 2244 color=0, 2245 rgbcolor={0,0,0}, 2246 smooth=0)); 2247 connect(airGapS.support, internalSupport) annotation (points=[-10, 2248 -6.12323e-016; -56,-6.12323e-016; -56,0; -90,0; -90,-100; 20,-100], 2249 style( 2250 color=0, 2251 rgbcolor={0,0,0}, 2252 smooth=0)); 2124 2253 end AIM_SlipRing; 2125 2254 … … 2192 2321 model SM_PermanentMagnetDamperCage 2193 2322 "Permanent magnet synchronous induction machine" 2194 extends Machines. BasicMachines.Components.BasicSM(2323 extends Machines.Interfaces.PartialBasicInductionMachine( 2195 2324 Lssigma=0.1/(2*pi*fNominal), 2196 airGapR( 2197 final Lmd=Lmd, 2198 final Lmq=Lmq)); 2325 final idq_ss = airGapR.i_ss, 2326 final idq_sr = airGapR.i_sr, 2327 final idq_rs = airGapR.i_rs, 2328 final idq_rr = airGapR.i_rr); 2329 replaceable Components.AirGapR airGapR(final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq) extends 2330 Components.PartialAirGap 2331 annotation (extent=[-10,-10; 10,10], rotation=-90); 2199 2332 parameter Modelica.SIunits.Voltage V0=112.3 2200 2333 &nb
