Show
Ignore:
Timestamp:
10/17/07 16:38:04 (11 months ago)
Author:
AHaumer
Message:

managed to get the partials backwards compatible

Files:
1 modified

Legend:

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

    r713 r716  
    1 within ; 
    2              // Modelica.Electrical; 
     1within Modelica.Electrical; 
    32 
    43 
    54package Machines "Library for electric machines"  
    65  extends Modelica.Icons.Library2; 
    7   annotation (uses(Modelica(version="2.2.2")), 
    8   version="1.8.9a", versionDate="2007-10-16", 
     6  annotation ( 
     7  version="1.8.9b", versionDate="2007-10-17", 
    98  Settings(NewStateSelection=true, Evaluate=true), 
    109  preferedView="info", Documentation(info="<HTML> 
     
    132131       removed replaceable from airgaps<br> 
    133132       removed cardinality from support, using a boolean parameter</li> 
     133  <li> v1.8.9b 2007/10/16 Anton Haumer<br> 
     134       changes in PartialMachines for backwards comatibility</li> 
    134135  </ul> 
    135136</HTML>"), 
     
    19211922      model AIM_SquirrelCage  
    19221923        "Asynchronous induction machine with squirrel cage rotor"  
    1923         extends Machines.Interfaces.PartialBasicInductionMachine( 
    1924           final idq_ss = airGapS.i_ss, 
    1925           final idq_sr = airGapS.i_sr, 
    1926           final idq_rs = airGapS.i_rs, 
    1927           final idq_rr = airGapS.i_rr); 
    1928         Components.AirGapS airGapS(            final p=p, final m=3, final Lm=Lm)  
    1929           annotation (extent=[-10,-10; 10,10], rotation=-90); 
     1924        extends Machines.Interfaces.PartialBasicInductionMachine; 
     1925        parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"; 
     1926        parameter Modelica.SIunits.Resistance Rs=0.03  
     1927          "warm stator resistance per phase"  
     1928           annotation(Dialog(group="Nominal resistances and inductances")); 
     1929        parameter Modelica.SIunits.Inductance Lssigma=3*(1 - sqrt(1 - 0.0667))/(2*pi*fNominal)  
     1930          "stator stray inductance per phase"  
     1931           annotation(Dialog(group="Nominal resistances and inductances")); 
    19301932        parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal)  
    19311933          "main field inductance"  
     
    19371939          "warm rotor resistance (equivalent three phase winding)"  
    19381940           annotation(Dialog(group="Nominal resistances and inductances")); 
     1941        output Modelica.SIunits.Current i_0_s( stateSelect=StateSelect.prefer) = spacePhasorS.zero.i  
     1942          "stator zero-sequence current"; 
     1943        output Modelica.SIunits.Current idq_ss[2] = airGapS.i_ss  
     1944          "stator space phasor current / stator fixed frame"; 
     1945        output Modelica.SIunits.Current idq_sr[2](each stateSelect=StateSelect.prefer) = airGapS.i_sr  
     1946          "stator space phasor current / rotor fixed frame"; 
     1947        output Modelica.SIunits.Current idq_rs[2] = airGapS.i_rs  
     1948          "rotor space phasor current / stator fixed frame"; 
     1949        output Modelica.SIunits.Current idq_rr[2](each stateSelect=StateSelect.prefer) = airGapS.i_rr  
     1950          "rotor space phasor current / rotor fixed frame"; 
     1951        Components.AirGapS airGapS(            final p=p, final m=3, final Lm=Lm)  
     1952          annotation (extent=[-10,-10; 10,10], rotation=-90); 
    19391953        Machines.BasicMachines.Components.SquirrelCage squirrelCageR(final  
    19401954            Lrsigma =                                                              Lrsigma, final Rr=Rr)  
     
    20282042</table> 
    20292043</HTML>"),       Diagram); 
     2044        Modelica.Electrical.MultiPhase.Basic.Resistor rs(final m=m, final R=fill(Rs, m))  
     2045          annotation (extent=[60,50; 40,70]); 
     2046        Modelica.Electrical.MultiPhase.Basic.Inductor lssigma(final m=m, final L=fill(Lssigma, m))  
     2047          annotation (extent=[30,50; 10,70]); 
     2048        SpacePhasors.Components.SpacePhasor spacePhasorS  
     2049          annotation (extent=[10,40; -10,20],   rotation=90); 
    20302050      equation  
    20312051        connect(squirrelCageR.spacePhasor_r, airGapS.spacePhasor_r) annotation ( 
     
    20342054            rgbcolor={0,0,255}, 
    20352055            smooth=0)); 
    2036         connect(airGapS.spacePhasor_s, spacePhasorS.spacePhasor) annotation (points=[ 
    2037               10,10; 10,20], style( 
     2056        connect(airGapS.spacePhasor_s, spacePhasorS.spacePhasor) annotation (points=[10,10;  
     2057              10,20],        style( 
    20382058            color=3, 
    20392059            rgbcolor={0,0,255}, 
     
    20502070            rgbcolor={0,0,0}, 
    20512071            smooth=0)); 
     2072        connect(plug_sp,rs. plug_p) annotation (points=[60,100; 60,60], 
     2073            style( 
     2074            color=3, 
     2075            rgbcolor={0,0,255}, 
     2076            smooth=0)); 
     2077        connect(rs.plug_n,lssigma. plug_p) annotation (points=[40,60; 30,60], 
     2078            style( 
     2079            color=3, 
     2080            rgbcolor={0,0,255}, 
     2081            smooth=0)); 
     2082        connect(lssigma.plug_n,spacePhasorS. plug_p) annotation (points=[10,60;  
     2083              10,40], style( 
     2084            color=3, 
     2085            rgbcolor={0,0,255}, 
     2086            smooth=0)); 
     2087        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
     2088              60; -60,60; -60,100], 
     2089                                style( 
     2090            color=3, 
     2091            rgbcolor={0,0,255}, 
     2092            smooth=0)); 
     2093        connect(spacePhasorS.ground,spacePhasorS. zero) annotation (points=[-10,20;  
     2094              -10,14; -6.12323e-016,14; -6.12323e-016,20],     style( 
     2095            color=3, 
     2096            rgbcolor={0,0,255}, 
     2097            fillColor=3, 
     2098            rgbfillColor={0,0,255}, 
     2099            fillPattern=1)); 
    20522100      end AIM_SquirrelCage; 
    20532101       
    20542102      model AIM_SlipRing "Asynchronous induction machine with slipring rotor"  
    2055         extends Machines.Interfaces.PartialBasicInductionMachine( 
    2056           final idq_ss = airGapS.i_ss, 
    2057           final idq_sr = airGapS.i_sr, 
    2058           final idq_rs = airGapS.i_rs, 
    2059           final idq_rr = airGapS.i_rr); 
    2060         Components.AirGapS airGapS(            final p=p, final m=3, final Lm=Lm)  
    2061           annotation (extent=[-10,-10; 10,10], rotation=-90); 
     2103        extends Machines.Interfaces.PartialBasicInductionMachine; 
     2104        parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"; 
     2105        parameter Modelica.SIunits.Resistance Rs=0.03  
     2106          "warm stator resistance per phase"  
     2107           annotation(Dialog(group="Nominal resistances and inductances")); 
     2108        parameter Modelica.SIunits.Inductance Lssigma=3*(1 - sqrt(1 - 0.0667))/(2*pi*fNominal)  
     2109          "stator stray inductance per phase"  
     2110           annotation(Dialog(group="Nominal resistances and inductances")); 
    20622111        parameter Modelica.SIunits.Inductance Lm=3*sqrt(1 - 0.0667)/(2*pi*fNominal)  
    20632112          "main field inductance"  
     
    20872136        output Modelica.SIunits.Current ir[m] = plug_rp.pin.i  
    20882137          "rotor instantaneous currents"; 
     2138        output Modelica.SIunits.Current i_0_s( stateSelect=StateSelect.prefer) = spacePhasorS.zero.i  
     2139          "stator zero-sequence current"; 
     2140        output Modelica.SIunits.Current idq_ss[2] = airGapS.i_ss  
     2141          "stator space phasor current / stator fixed frame"; 
     2142        output Modelica.SIunits.Current idq_sr[2](each stateSelect=StateSelect.prefer) = airGapS.i_sr  
     2143          "stator space phasor current / rotor fixed frame"; 
     2144        output Modelica.SIunits.Current idq_rs[2] = airGapS.i_rs  
     2145          "rotor space phasor current / stator fixed frame"; 
     2146        output Modelica.SIunits.Current idq_rr[2](each stateSelect=StateSelect.prefer) = airGapS.i_rr  
     2147          "rotor space phasor current / rotor fixed frame"; 
    20892148      protected  
    20902149        final parameter Real internalTurnsRatio=if useTurnsRatio then TurnsRatio else  
    20912150          VsNom/Vr_LR*(2*pi*fNominal*Lm)/sqrt(Rs^2+(2*pi*fNominal*(Lm+Lssigma))^2); 
    20922151      public  
     2152        Components.AirGapS airGapS(            final p=p, final m=3, final Lm=Lm)  
     2153          annotation (extent=[-10,-10; 10,10], rotation=-90); 
    20932154        Machines.SpacePhasors.Components.SpacePhasor spacePhasorR  
    20942155          annotation (extent=[10, -40; -10, -20], rotation=90); 
     
    22102271                    0,255})), Line(points=[-100,-50; -100,-20; -60,-20], style( 
    22112272                  color=3, rgbcolor={0,0,255})))); 
     2273        Modelica.Electrical.MultiPhase.Basic.Resistor rs(final m=m, final R=fill(Rs, m))  
     2274          annotation (extent=[60,50; 40,70]); 
     2275        Modelica.Electrical.MultiPhase.Basic.Inductor lssigma(final m=m, final L=fill(Lssigma, m))  
     2276          annotation (extent=[30,50; 10,70]); 
     2277        SpacePhasors.Components.SpacePhasor spacePhasorS  
     2278          annotation (extent=[10,40; -10,20],   rotation=90); 
    22122279      equation  
    22132280        connect(rr.plug_n, lrsigma.plug_p)  
     
    22282295        connect(rr.plug_p, plug_rp)        annotation (points=[60,-80; 60,-90; 
    22292296              -80,-90; -80,60; -100,60],  style(color=3, rgbcolor={0,0,255})); 
    2230         connect(spacePhasorR.ground, spacePhasorR.zero) annotation (points=[-10,-20; 
     2297        connect(spacePhasorR.ground, spacePhasorR.zero) annotation (points=[-10,-20;  
    22312298              -10,-14; -6.12323e-016,-14; -6.12323e-016,-20],      style( 
    22322299            color=3, 
     
    22372304        connect(airGapS.spacePhasor_r, spacePhasorR.spacePhasor)  
    22382305          annotation (points=[10,-10; 10,-20], style(color=3, rgbcolor={0,0,255})); 
    2239         connect(spacePhasorS.spacePhasor, airGapS.spacePhasor_s) annotation (points=[10, 
    2240               20; 10,10], style( 
     2306        connect(spacePhasorS.spacePhasor, airGapS.spacePhasor_s) annotation (points=[10,20;  
     2307              10,10],    style( 
    22412308            color=3, 
    22422309            rgbcolor={0,0,255}, 
     
    22542321            rgbcolor={0,0,0}, 
    22552322            smooth=0)); 
     2323        connect(plug_sp,rs. plug_p) annotation (points=[60,100; 60,60], 
     2324            style( 
     2325            color=3, 
     2326            rgbcolor={0,0,255}, 
     2327            smooth=0)); 
     2328        connect(rs.plug_n,lssigma. plug_p) annotation (points=[40,60; 30,60], 
     2329            style( 
     2330            color=3, 
     2331            rgbcolor={0,0,255}, 
     2332            smooth=0)); 
     2333        connect(lssigma.plug_n,spacePhasorS. plug_p) annotation (points=[10,60;  
     2334              10,40], style( 
     2335            color=3, 
     2336            rgbcolor={0,0,255}, 
     2337            smooth=0)); 
     2338        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
     2339              60; -60,60; -60,100], 
     2340                                style( 
     2341            color=3, 
     2342            rgbcolor={0,0,255}, 
     2343            smooth=0)); 
     2344        connect(spacePhasorS.ground,spacePhasorS. zero) annotation (points=[-10,20;  
     2345              -10,14; -6.12323e-016,14; -6.12323e-016,20],     style( 
     2346            color=3, 
     2347            rgbcolor={0,0,255}, 
     2348            fillColor=3, 
     2349            rgbfillColor={0,0,255}, 
     2350            fillPattern=1)); 
    22562351      end AIM_SlipRing; 
    22572352       
     
    23242419      model SM_PermanentMagnetDamperCage  
    23252420        "Permanent magnet synchronous induction machine"  
    2326         extends Machines.Interfaces.PartialBasicInductionMachine( 
    2327             Lssigma=0.1/(2*pi*fNominal), 
    2328             final idq_ss = airGapR.i_ss, 
    2329             final idq_sr = airGapR.i_sr, 
    2330             final idq_rs = airGapR.i_rs, 
    2331             final idq_rr = airGapR.i_rr); 
    2332         Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
    2333           annotation (extent=[-10,-10; 10,10], rotation=-90); 
    2334         parameter Modelica.SIunits.Voltage V0=112.3  
     2421        extends Machines.Interfaces.PartialBasicInductionMachine; 
     2422        parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"; 
     2423        parameter Modelica.SIunits.Resistance Rs=0.03  
     2424          "warm stator resistance per phase"  
     2425           annotation(Dialog(group="Nominal resistances and inductances")); 
     2426        parameter Modelica.SIunits.Inductance Lssigma=0.1/(2*pi*fNominal)  
     2427          "stator stray inductance per phase"  
     2428           annotation(Dialog(group="Nominal resistances and inductances")); 
     2429       parameter Modelica.SIunits.Voltage V0=112.3  
    23352430          "no-load RMS voltage per phase @ fNominal"  
    23362431           annotation(Dialog(group="Excitation")); 
     
    23582453          damperCage.spacePhasor_r.i_ if DamperCage  
    23592454          "damper space phasor current / rotor fixed frame"; 
     2455        output Modelica.SIunits.Current i_0_s( stateSelect=StateSelect.prefer) = spacePhasorS.zero.i  
     2456          "stator zero-sequence current"; 
     2457        output Modelica.SIunits.Current idq_ss[2] = airGapR.i_ss  
     2458          "stator space phasor current / stator fixed frame"; 
     2459        output Modelica.SIunits.Current idq_sr[2](each stateSelect=StateSelect.prefer) = airGapR.i_sr  
     2460          "stator space phasor current / rotor fixed frame"; 
     2461        output Modelica.SIunits.Current idq_rs[2] = airGapR.i_rs  
     2462          "rotor space phasor current / stator fixed frame"; 
     2463        output Modelica.SIunits.Current idq_rr[2](each stateSelect=StateSelect.prefer) = airGapR.i_rr  
     2464          "rotor space phasor current / rotor fixed frame"; 
    23602465      protected  
    23612466        final parameter Modelica.SIunits.Current Ie=sqrt(2)*V0/(Lmd*2*pi*fNominal)  
    23622467          "equivalent excitation current"; 
    23632468      public  
    2364         Machines.BasicMachines.Components.PermanentMagnet permanentMagnet(Ie=Ie)  
     2469        Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
     2470          annotation (extent=[-10,-10; 10,10], rotation=-90); 
     2471        Components.PermanentMagnet permanentMagnet(Ie=Ie)  
    23652472          annotation (extent=[-10, -70; 10, -50], rotation=-90); 
    23662473        Components.DamperCage damperCage( 
     
    25022609</table> 
    25032610</HTML>")); 
     2611        Modelica.Electrical.MultiPhase.Basic.Resistor rs(final m=m, final R=fill(Rs, m))  
     2612          annotation (extent=[60,50; 40,70]); 
     2613        Modelica.Electrical.MultiPhase.Basic.Inductor lssigma(final m=m, final L=fill(Lssigma, m))  
     2614          annotation (extent=[30,50; 10,70]); 
     2615        SpacePhasors.Components.SpacePhasor spacePhasorS  
     2616          annotation (extent=[10,40; -10,20],   rotation=90); 
    25042617      equation  
    25052618        connect(airGapR.spacePhasor_r, damperCage.spacePhasor_r) annotation ( 
     
    25082621          annotation (points=[10,-10; 20,-10; 20,-50; 10,-50], style(color=3, 
    25092622              rgbcolor={0,0,255})); 
    2510         connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[ 
    2511               10,20; 10,10], style( 
     2623        connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[10,20;  
     2624              10,10],        style( 
    25122625            color=3, 
    25132626            rgbcolor={0,0,255}, 
     
    25252638            rgbcolor={0,0,0}, 
    25262639            smooth=0)); 
     2640        connect(plug_sp,rs. plug_p) annotation (points=[60,100; 60,60], 
     2641            style( 
     2642            color=3, 
     2643            rgbcolor={0,0,255}, 
     2644            smooth=0)); 
     2645        connect(rs.plug_n,lssigma. plug_p) annotation (points=[40,60; 30,60], 
     2646            style( 
     2647            color=3, 
     2648            rgbcolor={0,0,255}, 
     2649            smooth=0)); 
     2650        connect(lssigma.plug_n,spacePhasorS. plug_p) annotation (points=[10,60;  
     2651              10,40], style( 
     2652            color=3, 
     2653            rgbcolor={0,0,255}, 
     2654            smooth=0)); 
     2655        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
     2656              60; -60,60; -60,100], 
     2657                                style( 
     2658            color=3, 
     2659            rgbcolor={0,0,255}, 
     2660            smooth=0)); 
     2661        connect(spacePhasorS.ground,spacePhasorS. zero) annotation (points=[-10,20;  
     2662              -10,14; -6.12323e-016,14; -6.12323e-016,20],     style( 
     2663            color=3, 
     2664            rgbcolor={0,0,255}, 
     2665            fillColor=3, 
     2666            rgbfillColor={0,0,255}, 
     2667            fillPattern=1)); 
    25272668      end SM_PermanentMagnetDamperCage; 
    25282669       
    25292670      model SM_ElectricalExcitedDamperCage  
    25302671        "Electrical excited synchronous induction machine with damper cage"  
    2531         extends Machines.Interfaces.PartialBasicInductionMachine( 
    2532             Lssigma=0.1/(2*pi*fNominal), 
    2533             final idq_ss = airGapR.i_ss, 
    2534             final idq_sr = airGapR.i_sr, 
    2535             final idq_rs = airGapR.i_rs, 
    2536             final idq_rr = airGapR.i_rr); 
    2537         Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
    2538           annotation (extent=[-10,-10; 10,10], rotation=-90); 
     2672        extends Machines.Interfaces.PartialBasicInductionMachine; 
     2673        parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"; 
     2674        parameter Modelica.SIunits.Resistance Rs=0.03  
     2675          "warm stator resistance per phase"  
     2676           annotation(Dialog(group="Nominal resistances and inductances")); 
     2677        parameter Modelica.SIunits.Inductance Lssigma=0.1/(2*pi*fNominal)  
     2678          "stator stray inductance per phase"  
     2679           annotation(Dialog(group="Nominal resistances and inductances")); 
    25392680        parameter Modelica.SIunits.Inductance Lmd=1.5/(2*pi*fNominal)  
    25402681          "main field inductance in d-axis"  
     
    25602701          "nominal stator RMS voltage per phase"  
    25612702           annotation(Dialog(group="Excitation")); 
    2562         parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"  
    2563            annotation(Dialog(group="Excitation")); 
    25642703        parameter Modelica.SIunits.Current Ie0=10  
    25652704          "no-load excitation current @ nominal voltage and frequency"  
     
    25772716          "excitation voltage"; 
    25782717        output Modelica.SIunits.Current ie = pin_ep.i "excitation current"; 
     2718        output Modelica.SIunits.Current i_0_s( stateSelect=StateSelect.prefer) = spacePhasorS.zero.i  
     2719          "stator zero-sequence current"; 
     2720        output Modelica.SIunits.Current idq_ss[2] = airGapR.i_ss  
     2721          "stator space phasor current / stator fixed frame"; 
     2722        output Modelica.SIunits.Current idq_sr[2](each stateSelect=StateSelect.prefer) = airGapR.i_sr  
     2723          "stator space phasor current / rotor fixed frame"; 
     2724        output Modelica.SIunits.Current idq_rs[2] = airGapR.i_rs  
     2725          "rotor space phasor current / stator fixed frame"; 
     2726        output Modelica.SIunits.Current idq_rr[2](each stateSelect=StateSelect.prefer) = airGapR.i_rr  
     2727          "rotor space phasor current / rotor fixed frame"; 
    25792728      protected  
    25802729        final parameter Real TurnsRatio = sqrt(2)*VNominal/(2*pi*fNominal*Lmd*Ie0)  
     
    25822731        final parameter Modelica.SIunits.Inductance Lesigma = Lmd*TurnsRatio^2*3/2 * sigmae/(1-sigmae); 
    25832732      public  
     2733        Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
     2734          annotation (extent=[-10,-10; 10,10], rotation=-90); 
    25842735        Components.DamperCage damperCage( 
    25852736          final Lrsigma=Lrsigma, 
     
    27462897</table> 
    27472898</HTML>")); 
     2899        Modelica.Electrical.MultiPhase.Basic.Resistor rs(final m=m, final R=fill(Rs, m))  
     2900          annotation (extent=[60,50; 40,70]); 
     2901        Modelica.Electrical.MultiPhase.Basic.Inductor lssigma(final m=m, final L=fill(Lssigma, m))  
     2902          annotation (extent=[30,50; 10,70]); 
     2903        SpacePhasors.Components.SpacePhasor spacePhasorS  
     2904          annotation (extent=[10,40; -10,20],   rotation=90); 
    27482905      equation  
    27492906        connect(electricalExcitation.pin_en, pin_en) annotation (points=[-10,-70; -70, 
     
    27602917          annotation (points=[10,-10; 20,-10; 20,-50; 10,-50], 
    27612918                                               style(color=3, rgbcolor={0,0,255})); 
    2762         connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[10, 
    2763               20; 10,10], style( 
     2919        connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[10,20;  
     2920              10,10],    style( 
    27642921            color=3, 
    27652922            rgbcolor={0,0,255}, 
     
    27772934            rgbcolor={0,0,0}, 
    27782935            smooth=0)); 
     2936        connect(plug_sp,rs. plug_p) annotation (points=[60,100; 60,60], 
     2937            style( 
     2938            color=3, 
     2939            rgbcolor={0,0,255}, 
     2940            smooth=0)); 
     2941        connect(rs.plug_n,lssigma. plug_p) annotation (points=[40,60; 30,60], 
     2942            style( 
     2943            color=3, 
     2944            rgbcolor={0,0,255}, 
     2945            smooth=0)); 
     2946        connect(lssigma.plug_n,spacePhasorS. plug_p) annotation (points=[10,60;  
     2947              10,40], style( 
     2948            color=3, 
     2949            rgbcolor={0,0,255}, 
     2950            smooth=0)); 
     2951        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
     2952              60; -60,60; -60,100], 
     2953                                style( 
     2954            color=3, 
     2955            rgbcolor={0,0,255}, 
     2956            smooth=0)); 
     2957        connect(spacePhasorS.ground,spacePhasorS. zero) annotation (points=[-10,20;  
     2958              -10,14; -6.12323e-016,14; -6.12323e-016,20],     style( 
     2959            color=3, 
     2960            rgbcolor={0,0,255}, 
     2961            fillColor=3, 
     2962            rgbfillColor={0,0,255}, 
     2963            fillPattern=1)); 
    27792964      end SM_ElectricalExcitedDamperCage; 
    27802965       
    27812966      model SM_ReluctanceRotorDamperCage  
    27822967        "Synchronous induction machine with reluctance rotor and damper cage"  
    2783         extends Machines.Interfaces.PartialBasicInductionMachine( 
    2784             Lssigma=0.1/(2*pi*fNominal), 
    2785             final idq_ss = airGapR.i_ss, 
    2786             final idq_sr = airGapR.i_sr, 
    2787             final idq_rs = airGapR.i_rs, 
    2788             final idq_rr = airGapR.i_rr); 
    2789         Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
    2790           annotation (extent=[-10,-10; 10,10], rotation=-90); 
     2968        extends Machines.Interfaces.PartialBasicInductionMachine; 
     2969        parameter Modelica.SIunits.Frequency fNominal=50 "nominal frequency"; 
     2970        parameter Modelica.SIunits.Resistance Rs=0.03  
     2971          "warm stator resistance per phase"  
     2972           annotation(Dialog(group="Nominal resistances and inductances")); 
     2973        parameter Modelica.SIunits.Inductance Lssigma=0.1/(2*pi*fNominal)  
     2974          "stator stray inductance per phase"  
     2975           annotation(Dialog(group="Nominal resistances and inductances")); 
    27912976        parameter Modelica.SIunits.Inductance Lmd=2.9/(2*pi*fNominal)  
    27922977          "main field inductance in d-axis"  
     
    28092994          "warm damper resistance in q-axis"  
    28102995          annotation(Dialog(group = "DamperCage", enable = DamperCage)); 
     2996        output Modelica.SIunits.Current i_0_s( stateSelect=StateSelect.prefer) = spacePhasorS.zero.i  
     2997          "stator zero-sequence current"; 
     2998        output Modelica.SIunits.Current idq_ss[2] = airGapR.i_ss  
     2999          "stator space phasor current / stator fixed frame"; 
     3000        output Modelica.SIunits.Current idq_sr[2](each stateSelect=StateSelect.prefer) = airGapR.i_sr  
     3001          "stator space phasor current / rotor fixed frame"; 
     3002        output Modelica.SIunits.Current idq_rs[2] = airGapR.i_rs  
     3003          "rotor space phasor current / stator fixed frame"; 
     3004        output Modelica.SIunits.Current idq_rr[2](each stateSelect=StateSelect.prefer) = airGapR.i_rr  
     3005          "rotor space phasor current / rotor fixed frame"; 
     3006        Components.AirGapR airGapR(            final p=p, final m=3, final Lmd=Lmd, final Lmq=Lmq)  
     3007          annotation (extent=[-10,-10; 10,10], rotation=-90); 
    28113008        Components.DamperCage damperCage( 
    28123009          final Lrsigma=Lrsigma, 
     
    29373134</table> 
    29383135</HTML>")); 
     3136        Modelica.Electrical.MultiPhase.Basic.Resistor rs(final m=m, final R=fill(Rs, m))  
     3137          annotation (extent=[60,50; 40,70]); 
     3138        Modelica.Electrical.MultiPhase.Basic.Inductor lssigma(final m=m, final L=fill(Lssigma, m))  
     3139          annotation (extent=[30,50; 10,70]); 
     3140        SpacePhasors.Components.SpacePhasor spacePhasorS  
     3141          annotation (extent=[10,40; -10,20],   rotation=90); 
    29393142      equation  
    29403143        connect(airGapR.spacePhasor_r, damperCage.spacePhasor_r)  
    29413144          annotation (points=[10,-10; 10,-20], style(color=3, rgbcolor={0,0,255})); 
    2942         connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[10, 
    2943               20; 10,10], style( 
     3145        connect(spacePhasorS.spacePhasor, airGapR.spacePhasor_s) annotation (points=[10,20;  
     3146              10,10],    style( 
    29443147            color=3, 
    29453148            rgbcolor={0,0,255}, 
     
    29573160            rgbcolor={0,0,0}, 
    29583161            smooth=0)); 
     3162        connect(plug_sp,rs. plug_p) annotation (points=[60,100; 60,60], 
     3163            style( 
     3164            color=3, 
     3165            rgbcolor={0,0,255}, 
     3166            smooth=0)); 
     3167        connect(rs.plug_n,lssigma. plug_p) annotation (points=[40,60; 30,60], 
     3168            style( 
     3169            color=3, 
     3170            rgbcolor={0,0,255}, 
     3171            smooth=0)); 
     3172        connect(lssigma.plug_n,spacePhasorS. plug_p) annotation (points=[10,60;  
     3173              10,40], style( 
     3174            color=3, 
     3175            rgbcolor={0,0,255}, 
     3176            smooth=0)); 
     3177        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
     3178              60; -60,60; -60,100], 
     3179                                style( 
     3180            color=3, 
     3181            rgbcolor={0,0,255}, 
     3182            smooth=0)); 
     3183        connect(spacePhasorS.ground,spacePhasorS. zero) annotation (points=[-10,20;  
     3184              -10,14; -6.12323e-016,14; -6.12323e-016,20],     style( 
     3185            color=3, 
     3186            rgbcolor={0,0,255}, 
     3187            fillColor=3, 
     3188            rgbfillColor={0,0,255}, 
     3189            fillPattern=1)); 
    29593190      end SM_ReluctanceRotorDamperCage; 
    29603191    end SynchronousInductionMachines; 
     
    30023233       
    30033234      model DC_PermanentMagnet "Permanent magnet DC machine"  
    3004         extends Machines.Interfaces.PartialBasicDCMachine( 
    3005         final TurnsRatio=(VaNominal-Ra*IaNominal)/(Modelica.SIunits.Conversions.from_rpm(rpmNominal)*Le*IeNominal)); 
     3235        extends Machines.Interfaces.PartialBasicDCMachine; 
     3236        parameter Modelica.SIunits.Voltage VaNominal=100  
     3237          "nominal armature voltage"  
     3238           annotation(Dialog(group="Nominal parameters")); 
     3239        parameter Modelica.SIunits.Current IaNominal=100  
     3240          "nominal armature current"  
     3241           annotation(Dialog(group="Nominal parameters")); 
     3242        parameter Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpm  
     3243          rpmNominal =  1425 "nominal speed"  
     3244           annotation(Dialog(group="Nominal parameters")); 
     3245        parameter Modelica.SIunits.Resistance Ra=0.05  
     3246          "warm armature resistance"  
     3247           annotation(Dialog(group="Nominal resistances and inductances")); 
     3248        parameter Modelica.SIunits.Inductance La=0.0015 "armature inductance"  
     3249           annotation(Dialog(group="Nominal resistances and inductances")); 
     3250        parameter Real TurnsRatio=(VaNominal-Ra*IaNominal)/(Modelica.SIunits.Conversions.from_rpm(rpmNominal)*Le*IeNominal)  
     3251          "Ratio of armature turns over number of turns of the excitation winding"; 
    30063252        Components.AirGapDC airGapDC(            final TurnsRatio=TurnsRatio, final Le=Le)  
    30073253                                     annotation (extent=[-10,-10; 10,10], rotation=-90); 
     
    30803326Armature resistance resp. inductance include resistance resp. inductance of commutating pole winding and compensation windig, if present. 
    30813327</HTML>")); 
     3328        Modelica.Electrical.Analog.Basic.Inductor la(final L=La)  
     3329          annotation (extent=[30,50; 10,70]); 
     3330        Modelica.Electrical.Analog.Basic.Resistor ra(final R=Ra)  
     3331          annotation (extent=[60,50; 40,70]); 
    30823332      equation  
    30833333        assert(VaNominal > Ra*IaNominal, "VaNominal has to be > Ra*IaNominal"); 
     
    31093359            rgbcolor={0,0,255}, 
    31103360            smooth=0)); 
     3361        connect(la.p,ra. n)  
     3362          annotation (points=[30,60; 40,60], style(color=3, rgbcolor={0,0,255})); 
     3363        connect(pin_ap,ra. p)  
     3364          annotation (points=[60,100; 60,60], style(color=3, rgbcolor={0,0,255})); 
    31113365      end DC_PermanentMagnet; 
    31123366       
    31133367      model DC_ElectricalExcited  
    31143368        "Electrical shunt/separate excited linear DC machine"  
    3115         extends Machines.Interfaces.PartialBasicDCMachine( 
    3116           final TurnsRatio=(VaNominal-Ra*IaNominal)/(Modelica.SIunits.Conversions.from_rpm(rpmNominal)*Le*IeNominal)); 
     3369        extends Machines.Interfaces.PartialBasicDCMachine; 
     3370        parameter Modelica.SIunits.Voltage VaNominal=100  
     3371          "nominal armature voltage"  
     3372           annotation(Dialog(group="Nominal parameters")); 
     3373        parameter Modelica.SIunits.Current IaNominal=100  
     3374          "nominal armature current"  
     3375           annotation(Dialog(group="Nominal parameters")); 
     3376        parameter Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpm  
     3377          rpmNominal =  1425 "nominal speed"  
     3378           annotation(Dialog(group="Nominal parameters")); 
     3379        parameter Modelica.SIunits.Resistance Ra=0.05  
     3380          "warm armature resistance"  
     3381           annotation(Dialog(group="Nominal resistances and inductances")); 
     3382        parameter Modelica.SIunits.Inductance La=0.0015 "armature inductance"  
     3383           annotation(Dialog(group="Nominal resistances and inductances")); 
     3384        parameter Real TurnsRatio=(VaNominal-Ra*IaNominal)/