Show
Ignore:
Timestamp:
10/15/07 19:48:38 (12 months ago)
Author:
AHaumer
Message:

solved bug with extends / replaceable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/maintenance/2.2.2/Modelica/Electrical/Machines.mo

    r654 r700  
    11within Modelica.Electrical; 
     2 
    23package Machines "Library for electric machines"  
    34  extends Modelica.Icons.Library2; 
    45  annotation ( 
    5   version="1.8.8", versionDate="2007-08-20", 
     6  version="1.8.9", versionDate="2007-10-15", 
    67  Settings(NewStateSelection=true, Evaluate=true), 
    78  preferedView="info", Documentation(info="<HTML> 
     
    124125  <li> v1.8.8 2007/08/20 Anton Haumer<br> 
    125126       improved documentation</li> 
     127  <li> v1.8.9 2007/10/15 Anton Haumer<br> 
     128       solved a bug with replaceable airgap / partial machines</li> 
    126129  </ul> 
    127130</HTML>"), 
     
    264267        annotation (points=[-70, 90; -80, 90], style(color=3)); 
    265268      connect(SineVoltage1.plug_n, Star1.plug_p)  
    266         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     269        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    267270                                                        style(color=3)); 
    268271      connect(SineVoltage1.plug_p, IdealCloser1.plug_p)  
    269         annotation (points=[6.12303e-016,50; 0,48; 1.22461e-015,46; 
    270             6.12303e-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)); 
    271274      connect(AIMC1.flange_a, LoadInertia.flange_a)  annotation (points=[0,-40; 
    272275            40,-40], style(color=0, rgbcolor={0,0,0})); 
     
    291294          fillPattern=1)); 
    292295      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    293           points=[-10,-28; -10,-20; -6.12303e-016,-20; -6.12303e-016,-10], 
     296          points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 
    294297          style( 
    295298          color=3, 
     
    299302          fillPattern=1)); 
    300303      connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 
    301             -6.12303e-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, 
    302305            10], style( 
    303306          color=3, 
     
    371374        annotation (points=[-70, 90; -80, 90], style(color=3)); 
    372375      connect(SineVoltage1.plug_n, Star1.plug_p)  
    373         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     376        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    374377                                                        style(color=3)); 
    375378      connect(SineVoltage1.plug_p, IdealCloser1.plug_p)  
    376         annotation (points=[6.12303e-016,50; 0,48; 1.22461e-015,46; 
    377             6.12303e-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)); 
    378381      connect(SwitchYD1.plug_NS, AIMC1.plug_sn)  annotation (points=[-20,-30; 
    379382            -16,-30], 
     
    394397            -21,-20],style(color=5, rgbcolor={255,0,255})); 
    395398      connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 
    396             -6.12303e-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, 
    397400            10], style( 
    398401          color=3, 
     
    402405          fillPattern=1)); 
    403406      connect(CurrentRMSsensor1.plug_n, SwitchYD1.plug_P) annotation (points=[ 
    404             -6.12303e-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( 
    405408          color=3, 
    406409          rgbcolor={0,0,255}, 
     
    487490        annotation (points=[-70, 90; -80, 90], style(color=3)); 
    488491      connect(SineVoltage1.plug_n, Star1.plug_p)  
    489         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     492        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    490493                                                        style(color=3)); 
    491494      connect(SineVoltage1.plug_p, IdealCloser1.plug_p)  
    492         annotation (points=[6.12303e-016,50; 0,48; 1.22461e-015,46; 
    493             6.12303e-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)); 
    494497      connect(Star3.pin_n, Ground3.p)  
    495498        annotation (points=[-70,-90; -80,-90],   style(color=3)); 
     
    528531            -59,-40; -48,-40], style(color=5, rgbcolor={255,0,255})); 
    529532      connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 
    530             -6.12303e-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, 
    531534            10], style( 
    532535          color=3, 
     
    550553          fillPattern=1)); 
    551554      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    552           points=[-10,-28; -10,-20; -6.12303e-016,-20; -6.12303e-016,-10], 
     555          points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 
    553556          style( 
    554557          color=3, 
     
    613616    equation  
    614617      connect(SignalVoltage1.plug_n, Star1.plug_p)  
    615         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     618        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    616619                                                        style(color=3)); 
    617620      connect(Star1.pin_n, Ground1.p)  
     
    626629        annotation (points=[70,-40; 60,-40], style(color=0, rgbcolor={0,0,0})); 
    627630      connect(SignalVoltage1.plug_p, CurrentRMSsensor1.plug_p) annotation (points=[ 
    628             6.12303e-016,50; 6.12303e-016,40; 6.12303e-016,40; 6.12303e-016,30; 
    629             6.12303e-016,10; 6.12303e-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, 
    630633              255})); 
    631634      connect(TerminalBox1.negativeMachinePlug, AIMC1.plug_sn) annotation ( 
     
    644647          fillPattern=1)); 
    645648      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    646           points=[-10,-28; -10,-20; -6.12303e-016,-20; -6.12303e-016,-10], 
     649          points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 
    647650          style( 
    648651          color=3, 
     
    711714    equation  
    712715      connect(SignalVoltage1.plug_n, Star1.plug_p)  
    713         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     716        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    714717                                                        style(color=3)); 
    715718      connect(Star1.pin_n, Ground1.p)  
     
    724727        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    725728      connect(CurrentRMSsensor1.plug_p, SignalVoltage1.plug_p) annotation ( 
    726           points=[6.12303e-016,40; 6.12303e-016,42.5; 6.12303e-016,42.5; 
    727             6.12303e-016,45; 6.12303e-016,50; 6.12303e-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, 
    728731            rgbcolor={0,0,255})); 
    729732      connect(SMR1.plug_sn, RotorAngle1.plug_n)  annotation (points=[-16,-30; 
     
    749752          fillPattern=1)); 
    750753      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    751           points=[-10,-28; -10,20; -6.12303e-016,20],        style( 
     754          points=[-10,-28; -10,20; -6.12323e-016,20],        style( 
    752755          color=3, 
    753756          rgbcolor={0,0,255}, 
     
    820823    equation  
    821824      connect(SignalVoltage1.plug_n, Star1.plug_p)  
    822         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     825        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    823826                                                        style(color=3)); 
    824827      connect(Star1.pin_n, Ground1.p)  
     
    831834        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    832835      connect(SignalVoltage1.plug_p, CurrentRMSsensor1.plug_p) annotation (points=[ 
    833             6.12303e-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, 
    834837            rgbcolor={0,0,255})); 
    835838      connect(RotorAngle1.plug_n, SMPM1.plug_sn)  annotation (points=[26,-30; 
     
    857860          fillPattern=1)); 
    858861      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    859           points=[-10,-28; -10,20; -6.12303e-016,20],        style( 
     862          points=[-10,-28; -10,20; -6.12323e-016,20],        style( 
    860863          color=3, 
    861864          rgbcolor={0,0,255}, 
     
    944947            -40,90], style(color=3, rgbcolor={0,0,255})); 
    945948      connect(ElectricalPowerSensor1.plug_ni, CurrentRMSsensor1.plug_p)  
    946         annotation (points=[6.12303e-016,50; 1.76911e-022,46; 6.12303e-016,46; 
    947             6.12303e-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})); 
    948951      connect(SMEE1.flange_a, MechanicalPowerSensor1.flange_a)  
    949952        annotation (points=[0,-40; 40,-40], style(color=0, rgbcolor={0,0,0})); 
     
    951954        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    952955      connect(SineVoltage1.plug_p, ElectricalPowerSensor1.plug_p) annotation ( 
    953           points=[-20,90; -6.12303e-016,90; -6.12303e-016,70], style(color=3, 
     956          points=[-20,90; -6.12323e-016,90; -6.12323e-016,70], style(color=3, 
    954957            rgbcolor={0,0,255})); 
    955958      connect(RampCurrent1.p, Ground3.p) annotation (points=[-50,-50; -80,-50], 
     
    974977          fillPattern=1)); 
    975978      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    976           points=[-10,-28; -10,20; -6.12303e-016,20],        style( 
     979          points=[-10,-28; -10,20; -6.12323e-016,20],        style( 
    977980          color=3, 
    978981          rgbcolor={0,0,255}, 
     
    11971200      Modelica.Electrical.MultiPhase.Basic.Delta deltaS  
    11981201        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]); 
    12031202      Modelica.Electrical.Analog.Basic.Resistor earth(R=1e6)  
    12041203        annotation (extent=[10,-50; -10,-30], rotation=-90); 
     
    12191218      Modelica.Electrical.Analog.Basic.Ground groundL  
    12201219        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]); 
    12211230    equation  
    12221231      connect(starS.pin_n, groundS.p)  
     
    12291238        annotation (points=[90,-20; 90,-30], style(color=3, rgbcolor={0,0,255})); 
    12301239      connect(earth.n,ground. p)  
    1231         annotation (points=[-6.12303e-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})); 
    12321241      connect(electricalPowerSensorS.plug_nv, starS.plug_p)  
    12331242        annotation (points=[-80,0; -80,-30; -90,-30],   style(color=3, rgbcolor={0,0,255})); 
     
    12521261      connect(deltaL.plug_p, voltageRMSsensorL.plug_n)  
    12531262        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})); 
    12601263      connect(deltaS.plug_n, voltageRMSsensorS.plug_p)  
    12611264        annotation (points=[-40,-40; -50,-40; -50,0; -40,0],     style(color=3, rgbcolor={0,0,255})); 
    12621265      connect(deltaL.plug_n, voltageRMSsensorL.plug_p)  
    12631266        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)); 
    12641275    end TransformerTestbench; 
    12651276     
     
    12921303      Modelica.Electrical.MultiPhase.Sensors.CurrentSensor currentSensor  
    12931304        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]); 
    12981305      Modelica.Electrical.MultiPhase.Ideal.IdealDiode diode1(m=m)  
    12991306        annotation (extent=[-10,50; -30,70],rotation=90); 
     
    13121319      Modelica.Electrical.Analog.Basic.Ground groundDC  
    13131320        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]); 
    13141331    equation  
    13151332      connect(cDC1.n, cDC2.p)  
     
    13371354      connect(star2.pin_n, cDC2.n)  
    13381355        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)); 
    13431364    end Rectifier6pulse; 
    13441365     
     
    13541375        experiment(StopTime=0.1), 
    13551376        experimentSetupOutput); 
    1356       Machines.BasicMachines.Transformers.Transformer transformer2( 
    1357                                             redeclare model transformer =  
    1358             Machines.BasicMachines.Transformers.Dd.Dd00)  
    1359         annotation (extent=[-50,-50; -30,-30]); 
    13601377      Modelica.Electrical.MultiPhase.Ideal.IdealDiode diode3(m=m)  
    13611378        annotation (extent=[-10,-30; -30,-10], rotation=90); 
     
    13661383      Modelica.Electrical.MultiPhase.Basic.Star star4(m=m)  
    13671384        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]); 
    13681395    equation  
    13691396      connect(diode3.plug_n, star3.plug_p)  
     
    13731400      connect(diode4.plug_n, diode3.plug_p)  
    13741401        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})); 
    13771402      connect(star4.pin_n, cDC2.n)  
    13781403        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})); 
    13811404      connect(star3.pin_n, cDC1.p)  
    13821405        annotation (points=[10,-10; 18,-10; 18,-8; 22,-8; 22,-10; 30,-10; 30,70; 70,70; 70,30], 
    13831406          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)); 
    13841417    end Rectifier12pulse; 
    13851418     
     
    14791512            70; -20,83], style(color=5, rgbcolor={255,0,255})); 
    14801513      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})); 
    14821516      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})); 
    14861521      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})); 
    14881523      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})); 
    14901525      connect(LoadInertia.flange_b, QuadraticLoadTorque1.flange)  
    14911526        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    14921527      connect(Crun.p, IdealCloser1.n)      annotation (points=[10,30; 10,90; -10,90], 
    14931528          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})); 
    14961532      connect(idealOpener1.n, Cstart.p)  
    14971533        annotation (points=[30,40; 30,30], style(color=3, rgbcolor={0,0,255})); 
     
    15051541            50,50; 37,50], style(color=5, rgbcolor={255,0,255})); 
    15061542      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})); 
    15081544    end AIMC_Steinmetz; 
    15091545     
     
    17021738      end TerminalBox; 
    17031739       
     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; 
    17041783    end Utilities; 
    17051784  end Examples; 
     
    18371916      model AIM_SquirrelCage  
    18381917        "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); 
    18401926        parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal)  
    18411927          "main field inductance"  
     
    19392025</HTML>"),       Diagram); 
    19402026      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)); 
    19432048      end AIM_SquirrelCage; 
    19442049       
    19452050      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); 
    19472059        parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal)  
    19482060          "main field inductance"  
     
    21142226              -80,-90; -80,60; -100,60],  style(color=3, rgbcolor={0,0,255})); 
    21152227        connect(spacePhasorR.ground, spacePhasorR.zero) annotation (points=[-10,-20; 
    2116               -10,-14; -6.12303e-016,-14; -6.12303e-016,-20],      style( 
     2228              -10,-14; -6.12323e-016,-14; -6.12323e-016,-20],      style( 
    21172229            color=3, 
    21182230            rgbcolor={0,0,255}, 
     
    21222234        connect(airGapS.spacePhasor_r, spacePhasorR.spacePhasor)  
    21232235          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)); 
    21242253      end AIM_SlipRing; 
    21252254       
     
    21922321      model SM_PermanentMagnetDamperCage  
    21932322        "Permanent magnet synchronous induction machine"  
    2194         extends Machines.BasicMachines.Components.BasicSM( 
     2323        extends Machines.Interfaces.PartialBasicInductionMachine( 
    21952324            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); 
    21992332        parameter Modelica.SIunits.Voltage V0=112.3  
    22002333          "no-load RMS voltage per phase @ fNominal"