Changeset 772

Show
Ignore:
Timestamp:
11/07/07 18:40:52 (13 months ago)
Author:
AHaumer
Message:

fixed a minor bug in Examples

Files:
1 modified

Legend:

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

    r586 r772  
    481481        annotation (points=[-70, 90; -80, 90], style(color=3)); 
    482482      connect(SineVoltage1.plug_n, Star1.plug_p)  
    483         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     483        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    484484                                                        style(color=3)); 
    485485      connect(SineVoltage1.plug_p, IdealCloser1.plug_p)  
    486         annotation (points=[6.12303e-016,50; 0,48; 1.22461e-015,46; 
    487             6.12303e-016,46; 6.12303e-016,40], style(color=3)); 
     486        annotation (points=[6.12323e-016,50; 0,48; 1.22461e-015,46;  
     487            6.12323e-016,46; 6.12323e-016,40], style(color=3)); 
    488488      connect(Star3.pin_n, Ground3.p)  
    489489        annotation (points=[-70,-90; -80,-90],   style(color=3)); 
     
    522522            -59,-40; -48,-40], style(color=5, rgbcolor={255,0,255})); 
    523523      connect(IdealCloser1.plug_n, CurrentRMSsensor1.plug_p) annotation (points=[ 
    524             -6.12303e-016,20; -6.12303e-016,16; 6.12303e-016,16; 6.12303e-016, 
     524            -6.12323e-016,20; -6.12323e-016,16; 6.12323e-016,16; 6.12323e-016, 
    525525            10], style( 
    526526          color=3, 
     
    544544          fillPattern=1)); 
    545545      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    546           points=[-10,-28; -10,-20; -6.12303e-016,-20; -6.12303e-016,-10], 
     546          points=[-10,-28; -10,-20; -6.12323e-016,-20; -6.12323e-016,-10], 
    547547          style( 
    548548          color=3, 
     
    704704    equation  
    705705      connect(SignalVoltage1.plug_n, Star1.plug_p)  
    706         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     706        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    707707                                                        style(color=3)); 
    708708      connect(Star1.pin_n, Ground1.p)  
     
    717717        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    718718      connect(CurrentRMSsensor1.plug_p, SignalVoltage1.plug_p) annotation ( 
    719           points=[6.12303e-016,40; 6.12303e-016,42.5; 6.12303e-016,42.5; 
    720             6.12303e-016,45; 6.12303e-016,50; 6.12303e-016,50], style(color=3, 
     719          points=[6.12323e-016,40; 6.12323e-016,42.5; 6.12303e-016,42.5;  
     720            6.12303e-016,45; 6.12303e-016,50; 6.12323e-016,50], style(color=3, 
    721721            rgbcolor={0,0,255})); 
    722722      connect(SMR1.plug_sn, RotorAngle1.plug_n)  annotation (points=[-16,-30; 
    723723            -16,-20], style(color=3, rgbcolor={0,0,255})); 
    724724      connect(SMR1.plug_sp, RotorAngle1.plug_p)  annotation (points=[-4,-30; -4, 
    725             -25; -4,-20; -4,-20], style(color=3, rgbcolor={0,0,255})); 
     725            -20],                style(color=3, rgbcolor={0,0,255})); 
    726726      connect(SMR1.flange_a, RotorAngle1.flange)  
    727727        annotation (points=[0,-40; 0,-10], style(color=0, rgbcolor={0,0,0})); 
     
    741741          fillPattern=1)); 
    742742      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    743           points=[-10,-28; 12,-28; 12,20; -6.12303e-016,20], style( 
     743          points=[-10,-28; 12,-28; 12,20; -6.12323e-016,20], style( 
    744744          color=3, 
    745745          rgbcolor={0,0,255}, 
     
    811811    equation  
    812812      connect(SignalVoltage1.plug_n, Star1.plug_p)  
    813         annotation (points=[-6.12303e-016,70; -6.12303e-016,90; -50,90], 
     813        annotation (points=[-6.12323e-016,70; -6.12323e-016,90; -50,90], 
    814814                                                        style(color=3)); 
    815815      connect(Star1.pin_n, Ground1.p)  
     
    822822        annotation (points=[60,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    823823      connect(SignalVoltage1.plug_p, CurrentRMSsensor1.plug_p) annotation (points=[ 
    824             6.12303e-016,50; 0,50; 0,40; 6.12303e-016,40], style(color=3, 
     824            6.12323e-016,50; 0,50; 0,40; 6.12323e-016,40], style(color=3, 
    825825            rgbcolor={0,0,255})); 
    826826      connect(RotorAngle1.plug_n, SMPM1.plug_sn)  annotation (points=[-16,-20; 
    827827            -16,-30], style(color=3, rgbcolor={0,0,255})); 
    828       connect(RotorAngle1.plug_p, SMPM1.plug_sp)  annotation (points=[-4,-20; 
    829             -4,-25; -4,-25; -4,-30], style(color=3, rgbcolor={0,0,255})); 
     828      connect(RotorAngle1.plug_p, SMPM1.plug_sp)  annotation (points=[-4,-20;  
     829            -4,-30],                style(color=3, rgbcolor={0,0,255})); 
    830830      connect(RotorAngle1.flange, SMPM1.flange_a)  
    831831        annotation (points=[0,-10; 0,-40], style(color=0, rgbcolor={0,0,0})); 
     
    847847          fillPattern=1)); 
    848848      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    849           points=[-10,-28; 12,-28; 12,20; -6.12303e-016,20], style( 
     849          points=[-10,-28; 12,-28; 12,20; -6.12323e-016,20], style( 
    850850          color=3, 
    851851          rgbcolor={0,0,255}, 
     
    889889</HTML>")); 
    890890      Machines.BasicMachines.SynchronousInductionMachines.SM_ElectricalExcitedDamperCage 
    891         SMEE1(phi_mechanical(start=-(Modelica.Constants.pi + 
    892               Modelica.SIunits.Conversions.from_deg(gamma0))/SMEE1.p))  
     891        SMEE1(phi_mechanical(start=-(Modelica.Constants.pi +  
     892              Modelica.SIunits.Conversions.from_deg(gamma0))/SMEE1.p, fixed= 
     893              true))  
    893894        annotation (extent=[-20,-50; 0,-30],     rotation=0); 
    894895      Machines.Sensors.RotorAngle RotorAngle1(p=SMEE1.p)  
     
    923924      connect(RotorAngle1.plug_n, SMEE1.plug_sn)  annotation (points=[-16,-20; 
    924925            -16,-30], style(color=3, rgbcolor={0,0,255})); 
    925       connect(RotorAngle1.plug_p, SMEE1.plug_sp)  annotation (points=[-4,-20; 
     926      connect(RotorAngle1.plug_p, SMEE1.plug_sp)  annotation (points=[-4,-20;  
    926927            -4,-25; -4,-25; -4,-30], style(color=3, rgbcolor={0,0,255})); 
    927928      connect(RotorAngle1.flange, SMEE1.flange_a)  
     
    932933            -40,90], style(color=3, rgbcolor={0,0,255})); 
    933934      connect(ElectricalPowerSensor1.plug_ni, CurrentRMSsensor1.plug_p)  
    934         annotation (points=[6.12303e-016,50; 1.76911e-022,46; 6.12303e-016,46; 
    935             6.12303e-016,40], style(color=3, rgbcolor={0,0,255})); 
     935        annotation (points=[6.12323e-016,50; 1.76911e-022,46; 6.12323e-016,46;  
     936            6.12323e-016,40], style(color=3, rgbcolor={0,0,255})); 
    936937      connect(SMEE1.flange_a, MechanicalPowerSensor1.flange_a)  
    937938        annotation (points=[0,-40; 10,-40], style(color=0, rgbcolor={0,0,0})); 
     
    939940        annotation (points=[30,-40; 70,-40], style(color=0, rgbcolor={0,0,0})); 
    940941      connect(SineVoltage1.plug_p, ElectricalPowerSensor1.plug_p) annotation ( 
    941           points=[-20,90; -6.12303e-016,90; -6.12303e-016,70], style(color=3, 
     942          points=[-20,90; -6.12323e-016,90; -6.12323e-016,70], style(color=3, 
    942943            rgbcolor={0,0,255})); 
    943944      connect(RampCurrent1.p, Ground3.p) annotation (points=[-50,-50; -80,-50], 
     
    962963          fillPattern=1)); 
    963964      connect(TerminalBox1.plugToGrid, CurrentRMSsensor1.plug_n) annotation ( 
    964           points=[-10,-28; 10,-28; 10,20; -6.12303e-016,20], style( 
     965          points=[-10,-28; 10,-28; 10,20; -6.12323e-016,20], style( 
    965966          color=3, 
    966967          rgbcolor={0,0,255}, 
     
    21692170        connect(spacePhasorS.plug_n, plug_sn) annotation (points=[-10,40; -10, 
    21702171              60; -60,60; -60,100],     style(color=3, rgbcolor={0,0,255})); 
    2171         connect(spacePhasorS.ground, spacePhasorS.zero) annotation (points=[-10,20;  
     2172        connect(spacePhasorS.ground, spacePhasorS.zero) annotation (points=[-10,20; 
    21722173              -10,14; -6.12303e-016,14; -6.12303e-016,20], style( 
    21732174            color=3,