Changeset 701

Show
Ignore:
Timestamp:
10/15/2007 07:49:04 PM (15 months ago)
Author:
AHaumer
Message:

solved bug with extends / replaceable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/trunk/Modelica/Electrical/Machines.mo

    r692 r701  
    11within Modelica.Electrical; 
    2  
    32 
    43package Machines "Library for electric machines"  
    54  extends Modelica.Icons.Library2; 
    65  annotation ( 
    7   version="1.9.0", versionDate="2007-08-24", 
     6  version="1.9.1", versionDate="2007-10-15", 
    87  Settings(NewStateSelection=true, Evaluate=true), 
    98  preferedView="info", Documentation(info="<HTML> 
     
    128127  <li> v1.9.0 2007/08/24 Anton Haumer<br> 
    129128       removed redeclare type SignalType</li> 
     129  <li> v1.9.1 2007/10/15 Anton Haumer<br> 
     130       solved a bug with replaceable airgap / partial machines</li> 
    130131  </ul> 
    131132</HTML>"), 
    132     Icon(graphics={ 
     133    Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100, 
     134            100}}), graphics={ 
    133135        Rectangle( 
    134136          extent={{-60,60},{60,-60}},  
     
    198200       introduced Utilities.TerminalBox</li> 
    199201  </ul> 
    200 </HTML>"), Icon(graphics={Ellipse(extent={{-80,44},{60,-96}}, lineColor={95,95, 
    201                 95}), Polygon( 
     202</HTML>"), Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, 
     203              {100,100}}), graphics={Ellipse(extent={{-80,44},{60,-96}},  
     204              lineColor={95,95,95}), Polygon( 
    202205            points={{-40,36},{-40,-88},{60,-26},{-40,36}},  
    203206            lineColor={95,95,95},  
     
    239242              rotation=0))); 
    240243      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    241         annotation (Placement(transformation( 
    242             origin={0,0},  
    243             extent={{-10,10},{10,-10}},  
    244             rotation=270))); 
     244        annotation (Placement(transformation(extent={{10,10},{-10,-10}},  
     245              rotation=-90))); 
    245246      Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 
    246247        final m=m, 
    247248        freqHz=fill(fNominal, m), 
    248249        V=fill(sqrt(2/3)*VNominal, m))  
    249         annotation (Placement(transformation( 
    250             origin={0,60},  
    251             extent={{10,-10},{-10,10}},  
    252             rotation=270))); 
     250        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     251              rotation=-90))); 
    253252      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    254253        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    255254              rotation=0))); 
    256255      Modelica.Electrical.Analog.Basic.Ground Ground1  
    257         annotation (Placement(transformation( 
    258             origin={-90,90},  
    259             extent={{-10,-10},{10,10}},  
    260             rotation=270))); 
     256        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     257              rotation=-90))); 
    261258      Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1)  
    262259        annotation (Placement(transformation(extent={{-80,30},{-60,50}},  
    263260              rotation=0))); 
    264261      Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m)  
    265         annotation (Placement(transformation( 
    266             origin={0,30},  
    267             extent={{-10,10},{10,-10}},  
    268             rotation=270))); 
     262        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     263              rotation=-90))); 
    269264      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    270265        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    352347              rotation=0))); 
    353348      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    354         annotation (Placement(transformation( 
    355             origin={0,0},  
    356             extent={{-10,10},{10,-10}},  
    357             rotation=270))); 
     349        annotation (Placement(transformation(extent={{10,10},{-10,-10}},  
     350              rotation=-90))); 
    358351      Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 
    359352        final m=m, 
    360353        freqHz=fill(fNominal, m), 
    361354        V=fill(sqrt(2/3)*VNominal, m))  
    362         annotation (Placement(transformation( 
    363             origin={0,60},  
    364             extent={{10,-10},{-10,10}},  
    365             rotation=270))); 
     355        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     356              rotation=-90))); 
    366357      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    367358        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    368359              rotation=0))); 
    369360      Modelica.Electrical.Analog.Basic.Ground Ground1  
    370         annotation (Placement(transformation( 
    371             origin={-90,90},  
    372             extent={{-10,-10},{10,10}},  
    373             rotation=270))); 
     361        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     362              rotation=-90))); 
    374363      Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1)  
    375364        annotation (Placement(transformation(extent={{-80,30},{-60,50}},  
    376365              rotation=0))); 
    377366      Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m)  
    378         annotation (Placement(transformation( 
    379             origin={0,30},  
    380             extent={{-10,10},{10,-10}},  
    381             rotation=270))); 
     367        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     368              rotation=-90))); 
    382369      Machines.Examples.Utilities.SwitchYD SwitchYD1  
    383370                                            annotation (Placement( 
     
    468455              rotation=0))); 
    469456      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    470         annotation (Placement(transformation( 
    471             origin={0,0},  
    472             extent={{-10,10},{10,-10}},  
    473             rotation=270))); 
     457        annotation (Placement(transformation(extent={{10,10},{-10,-10}},  
     458              rotation=-90))); 
    474459      Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 
    475460        final m=m, 
    476461        freqHz=fill(fNominal, m), 
    477462        V=fill(sqrt(2/3)*VNominal, m))  
    478         annotation (Placement(transformation( 
    479             origin={0,60},  
    480             extent={{10,-10},{-10,10}},  
    481             rotation=270))); 
     463        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     464              rotation=-90))); 
    482465      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    483466        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    484467              rotation=0))); 
    485468      Modelica.Electrical.Analog.Basic.Ground Ground1  
    486         annotation (Placement(transformation( 
    487             origin={-90,90},  
    488             extent={{-10,-10},{10,10}},  
    489             rotation=270))); 
     469        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     470              rotation=-90))); 
    490471      Modelica.Blocks.Sources.BooleanStep BooleanStep1[m](each startTime=tStart1)  
    491472        annotation (Placement(transformation(extent={{-80,30},{-60,50}},  
    492473              rotation=0))); 
    493474      Modelica.Electrical.MultiPhase.Ideal.IdealClosingSwitch IdealCloser1(final m=m)  
    494         annotation (Placement(transformation( 
    495             origin={0,30},  
    496             extent={{-10,10},{10,-10}},  
    497             rotation=270))); 
     475        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     476              rotation=-90))); 
    498477      Modelica.Electrical.MultiPhase.Basic.Star Star3(final m=m)  
    499478        annotation (Placement(transformation(extent={{-50,-100},{-70,-80}},  
    500479              rotation=0))); 
    501480      Modelica.Electrical.Analog.Basic.Ground Ground3  
    502         annotation (Placement(transformation( 
    503             origin={-90,-90},  
    504             extent={{-10,-10},{10,10}},  
    505             rotation=270))); 
     481        annotation (Placement(transformation(extent={{-80,-100},{-100,-80}},  
     482              rotation=-90))); 
    506483      Modelica.Electrical.MultiPhase.Ideal.IdealCommutingSwitch  
    507484        IdealCommutingSwitch1(m=m)  
    508         annotation (Placement(transformation( 
    509             origin={-40,-40},  
    510             extent={{-10,10},{10,-10}},  
    511             rotation=270))); 
     485        annotation (Placement(transformation(extent={{-30,-30},{-50,-50}},  
     486              rotation=-90))); 
    512487      Modelica.Electrical.MultiPhase.Basic.Resistor Resistor1(m=m, R=fill(Rstart, m))  
    513488        annotation (Placement(transformation(extent={{-50,-80},{-70,-60}},  
     
    625600              rotation=0))); 
    626601      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    627         annotation (Placement(transformation( 
    628             origin={0,0},  
    629             extent={{-10,10},{10,-10}},  
    630             rotation=270))); 
     602        annotation (Placement(transformation(extent={{10,10},{-10,-10}},  
     603              rotation=-90))); 
    631604      Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp)  
    632605        annotation (Placement(transformation(extent={{-80,50},{-60,70}},  
     
    638611                {-20,70}}, rotation=0))); 
    639612      Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m)  
    640         annotation (Placement(transformation( 
    641             origin={0,60},  
    642             extent={{10,-10},{-10,10}},  
    643             rotation=270))); 
     613        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     614              rotation=-90))); 
    644615      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    645616        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    646617              rotation=0))); 
    647618      Modelica.Electrical.Analog.Basic.Ground Ground1  
    648         annotation (Placement(transformation( 
    649             origin={-90,90},  
    650             extent={{-10,-10},{10,10}},  
    651             rotation=270))); 
     619        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     620              rotation=-90))); 
    652621      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    653622        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    729698              rotation=0))); 
    730699      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    731         annotation (Placement(transformation( 
    732             origin={0,30},  
    733             extent={{-10,10},{10,-10}},  
    734             rotation=270))); 
     700        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     701              rotation=-90))); 
    735702      Machines.Sensors.RotorAngle RotorAngle1(p=SMR1.p)  
    736         annotation (Placement(transformation( 
    737             origin={20,-40},  
    738             extent={{10,-10},{-10,10}},  
    739             rotation=90))); 
     703        annotation (Placement(transformation(extent={{30,-30},{10,-50}},  
     704              rotation=90))); 
    740705      Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp)  
    741706        annotation (Placement(transformation(extent={{-80,50},{-60,70}},  
     
    747712                {-20,70}}, rotation=0))); 
    748713      Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m)  
    749         annotation (Placement(transformation( 
    750             origin={0,60},  
    751             extent={{10,-10},{-10,10}},  
    752             rotation=270))); 
     714        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     715              rotation=-90))); 
    753716      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    754717        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    755718              rotation=0))); 
    756719      Modelica.Electrical.Analog.Basic.Ground Ground1  
    757         annotation (Placement(transformation( 
    758             origin={-90,90},  
    759             extent={{-10,-10},{10,10}},  
    760             rotation=270))); 
     720        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     721              rotation=-90))); 
    761722      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    762723        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    847808              rotation=0))); 
    848809      Machines.Sensors.CurrentRMSsensor CurrentRMSsensor1  
    849         annotation (Placement(transformation( 
    850             origin={0,30},  
    851             extent={{-10,10},{10,-10}},  
    852             rotation=270))); 
     810        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     811              rotation=-90))); 
    853812      Machines.Sensors.RotorAngle RotorAngle1(p=SMPM1.p)  
    854         annotation (Placement(transformation( 
    855             origin={20,-40},  
    856             extent={{-10,10},{10,-10}},  
    857             rotation=270))); 
     813        annotation (Placement(transformation(extent={{30,-30},{10,-50}},  
     814              rotation=-90))); 
    858815      Modelica.Blocks.Sources.Ramp Ramp1(height=f, duration=tRamp)  
    859816        annotation (Placement(transformation(extent={{-80,50},{-60,70}},  
     
    867824              rotation=0))); 
    868825      Modelica.Electrical.MultiPhase.Sources.SignalVoltage SignalVoltage1(final m=m)  
    869         annotation (Placement(transformation( 
    870             origin={0,60},  
    871             extent={{10,-10},{-10,10}},  
    872             rotation=270))); 
     826        annotation (Placement(transformation(extent={{-10,70},{10,50}},  
     827              rotation=-90))); 
    873828      Modelica.Electrical.MultiPhase.Basic.Star Star1(final m=m)  
    874829        annotation (Placement(transformation(extent={{-50,80},{-70,100}},  
    875830              rotation=0))); 
    876831      Modelica.Electrical.Analog.Basic.Ground Ground1  
    877         annotation (Placement(transformation( 
    878             origin={-90,90},  
    879             extent={{-10,-10},{10,10}},  
    880             rotation=270))); 
     832        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     833              rotation=-90))); 
    881834      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    882835        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    966919              rotation=0))); 
    967920      Machines.Sensors.RotorAngle RotorAngle1(p=SMEE1.p)  
    968         annotation (Placement(transformation( 
    969             origin={20,-40},  
    970             extent={{-10,10},{10,-10}},  
    971             rotation=270))); 
     921        annotation (Placement(transformation(extent={{30,-30},{10,-50}},  
     922              rotation=-90))); 
    972923      Modelica.Electrical.Analog.Basic.Ground Ground3  
    973         annotation (Placement(transformation( 
    974             origin={-90,-50},  
    975             extent={{-10,-10},{10,10}},  
    976             rotation=270))); 
     924        annotation (Placement(transformation(extent={{-80,-60},{-100,-40}},  
     925              rotation=-90))); 
    977926      Modelica.Mechanics.Rotational.ConstantSpeed ConstantSpeed1(final w_fixed= 
    978927            Modelica.SIunits.Conversions.from_rpm(rpm))  
     
    983932              rotation=0))); 
    984933      Sensors.ElectricalPowerSensor ElectricalPowerSensor1  
    985         annotation (Placement(transformation( 
    986             origin={0,60},  
    987             extent={{-10,-10},{10,10}},  
    988             rotation=270))); 
     934        annotation (Placement(transformation(extent={{10,50},{-10,70}},  
     935              rotation=-90))); 
    989936      Sensors.CurrentRMSsensor CurrentRMSsensor1  
    990         annotation (Placement(transformation( 
    991             origin={0,30},  
    992             extent={{-10,10},{10,-10}},  
    993             rotation=270))); 
     937        annotation (Placement(transformation(extent={{10,40},{-10,20}},  
     938              rotation=-90))); 
    994939      Modelica.Electrical.MultiPhase.Sources.SineVoltage SineVoltage1( 
    995940        final m=m, 
     
    1003948              rotation=0))); 
    1004949      Modelica.Electrical.Analog.Basic.Ground Ground1  
    1005         annotation (Placement(transformation( 
    1006             origin={-90,90},  
    1007             extent={{-10,-10},{10,10}},  
    1008             rotation=270))); 
     950        annotation (Placement(transformation(extent={{-80,80},{-100,100}},  
     951              rotation=-90))); 
    1009952      Modelica.Electrical.Analog.Sources.RampCurrent RampCurrent1( 
    1010953        duration=0.1, 
    1011954        I=Ie - Ie0, 
    1012         offset=Ie0)        annotation (Placement(transformation( 
    1013             origin={-50,-40},  
    1014             extent={{-10,-10},{10,10}},  
    1015             rotation=90))); 
     955        offset=Ie0)        annotation (Placement(transformation(extent={{-60, 
     956                -30},{-40,-50}}, rotation=90))); 
    1016957      Utilities.TerminalBox TerminalBox1 annotation (Placement(transformation( 
    1017958              extent={{-20,-30},{0,-10}}, rotation=0))); 
     
    10991040              =0))); 
    11001041      Modelica.Electrical.Analog.Basic.Ground Ground1  
    1101         annotation (Placement(transformation( 
    1102             origin={-70,40},  
    1103             extent={{-10,-10},{10,10}},  
    1104             rotation=270))); 
     1042        annotation (Placement(transformation(extent={{-60,30},{-80,50}},  
     1043              rotation=-90))); 
    11051044      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    11061045        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    11631102              =0))); 
    11641103      Modelica.Electrical.Analog.Basic.Ground Grounda  
    1165         annotation (Placement(transformation( 
    1166             origin={-70,40},  
    1167             extent={{-10,-10},{10,10}},  
    1168             rotation=270))); 
     1104        annotation (Placement(transformation(extent={{-60,30},{-80,50}},  
     1105              rotation=-90))); 
    11691106      Modelica.Electrical.Analog.Sources.ConstantVoltage ConstantVoltage1(V=Ve)  
    1170         annotation (Placement(transformation( 
    1171             origin={-40,-40},  
    1172             extent={{-10,-10},{10,10}},  
    1173             rotation=270))); 
     1107        annotation (Placement(transformation(extent={{-30,-50},{-50,-30}},  
     1108              rotation=270))); 
    11741109      Modelica.Electrical.Analog.Basic.Ground Grounde  
    1175         annotation (Placement(transformation( 
    1176             origin={-70,-50},  
    1177             extent={{-10,-10},{10,10}},  
    1178             rotation=270))); 
     1110        annotation (Placement(transformation(extent={{-60,-60},{-80,-40}},  
     1111              rotation=-90))); 
    11791112      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    11801113        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    12421175              =0))); 
    12431176      Modelica.Electrical.Analog.Basic.Ground Grounda  
    1244         annotation (Placement(transformation( 
    1245             origin={-70,40},  
    1246             extent={{-10,-10},{10,10}},  
    1247             rotation=270))); 
     1177        annotation (Placement(transformation(extent={{-60,30},{-80,50}},  
     1178              rotation=-90))); 
    12481179      Modelica.Mechanics.Rotational.Inertia LoadInertia(J=J_Load)  
    12491180        annotation (Placement(transformation(extent={{40,-50},{60,-30}},  
     
    12841215even though the source's or load's starpoint are grounded; you may use a reasonable high earthing resistance. 
    12851216</HTML>"), 
    1286         Diagram(graphics), 
     1217        Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100}, 
     1218                {100,100}}), graphics), 
    12871219        experiment(StopTime=0.1), 
    12881220        experimentSetupOutput); 
     
    12901222          V=fill(sqrt(2/3)*100, 3))  
    12911223        annotation (Placement(transformation( 
    1292             origin={-90,-10},  
    1293             extent={{-10,10},{10,-10}},  
    1294             rotation=270))); 
     1224            extent={{10,10},{-10,-10}},  
     1225            rotation=-90,  
     1226            origin={-90,-10}))); 
    12951227      Modelica.Electrical.MultiPhase.Basic.Star starS  
    12961228        annotation (Placement(transformation( 
    1297             origin={-90,-40},  
    1298             extent={{-10,-10},{10,10}},  
    1299             rotation=270))); 
     1229            extent={{10,-10},{-10,10}},  
     1230            rotation=-90,  
     1231            origin={-90,-40}))); 
    13001232      Modelica.Electrical.Analog.Basic.Ground groundS  
    13011233        annotation (Placement(transformation(extent={{-100,-80},{-80,-60}},  
     
    13091241      Sensors.VoltageRMSsensor voltageRMSsensorS  
    13101242        annotation (Placement(transformation( 
    1311             origin={-40,-10},  
    1312             extent={{-10,10},{10,-10}},  
    1313             rotation=270))); 
     1243            extent={{10,10},{-10,-10}},  
     1244            rotation=-90,  
     1245            origin={-40,-10}))); 
    13141246      Modelica.Electrical.MultiPhase.Basic.Delta deltaS  
    13151247        annotation (Placement(transformation( 
    1316             origin={-40,-30},  
    1317             extent={{-10,-10},{10,10}},  
    1318             rotation=270))); 
    1319       Machines.BasicMachines.Transformers.Transformer transformer( 
    1320                                            redeclare model transformer =  
    1321             Machines.BasicMachines.Transformers.Yd.Yd01)  
    1322         annotation (Placement(transformation(extent={{-20,-10},{20,30}},  
    1323               rotation=0))); 
     1248            extent={{10,-10},{-10,10}},  
     1249            rotation=-90,  
     1250            origin={-40,-30}))); 
    13241251      Modelica.Electrical.Analog.Basic.Resistor earth(R=1e6)  
    13251252        annotation (Placement(transformation( 
    1326             origin={0,-40},  
    1327             extent={{-10,10},{10,-10}},  
    1328             rotation=270))); 
     1253            extent={{10,10},{-10,-10}},  
     1254            rotation=-90,  
     1255            origin={0,-40}))); 
    13291256      Modelica.Electrical.Analog.Basic.Ground ground  
    13301257        annotation (Placement(transformation(extent={{-10,-80},{10,-60}},  
     
    13321259      Sensors.VoltageRMSsensor voltageRMSsensorL  
    13331260        annotation (Placement(transformation( 
    1334             origin={40,-10},  
    1335             extent={{-10,-10},{10,10}},  
    1336             rotation=270))); 
     1261            extent={{10,-10},{-10,10}},  
     1262            rotation=-90,  
     1263            origin={40,-10}))); 
    13371264      Modelica.Electrical.MultiPhase.Basic.Delta deltaL  
    13381265        annotation (Placement(transformation( 
    1339             origin={40,-30},  
    1340             extent={{-10,10},{10,-10}},  
    1341             rotation=270))); 
     1266            extent={{10,10},{-10,-10}},  
     1267            rotation=-90,  
     1268            origin={40,-30}))); 
    13421269      Sensors.CurrentRMSsensor currentRMSsensorL  
    13431270        annotation (Placement(transformation(extent={{40,20},{60,0}}, rotation= 
     
    13481275      Modelica.Electrical.MultiPhase.Basic.Resistor load(R=RL)  
    13491276        annotation (Placement(transformation( 
    1350             origin={90,-10},  
    1351             extent={{-10,10},{10,-10}},  
    1352             rotation=270))); 
     1277            extent={{10,10},{-10,-10}},  
     1278            rotation=-90,  
     1279            origin={90,-10}))); 
    13531280      Modelica.Electrical.MultiPhase.Basic.Star starL  
    13541281        annotation (Placement(transformation( 
    1355             origin={90,-40},  
    1356             extent={{-10,10},{10,-10}},  
    1357             rotation=270))); 
     1282            extent={{10,10},{-10,-10}},  
     1283            rotation=-90,  
     1284            origin={90,-40}))); 
    13581285      Modelica.Electrical.Analog.Basic.Ground groundL  
    13591286        annotation (Placement(transformation(extent={{80,-80},{100,-60}},  
    13601287              rotation=0))); 
     1288      Utilities.TransformerData transformerData(C1= 
     1289            Modelica.Utilities.Strings.substring( 
     1290                transformer.VectorGroup,1,1), C2=Modelica.Utilities.Strings.substring( 
     1291                transformer.VectorGroup,2,2)) annotation (Placement( 
     1292            transformation(extent={{-10,40},{10,60}}, rotation=0))); 
     1293      BasicMachines.Transformers.Yd.Yd01 transformer( 
     1294        n=transformerData.n, 
     1295        R1=transformerData.R1, 
     1296        L1sigma=transformerData.L1sigma, 
     1297        R2=transformerData.R2, 
     1298        L2sigma=transformerData.L2sigma) annotation (Placement(transformation( 
     1299              extent={{-20,-10},{20,30}}, rotation=0))); 
    13611300    equation  
    13621301      connect(starS.pin_n, groundS.p)  
    1363         annotation (Line(points={{-90,-50},{-90,-60}}, color={0,0,255})); 
     1302        annotation (Line(points={{-90,-30},{-90,-60}}, color={0,0,255})); 
    13641303      connect(source.plug_n, starS.plug_p)  
    1365         annotation (Line(points={{-90,-20},{-90,-30}}, color={0,0,255})); 
     1304        annotation (Line(points={{-90,0},{-90,-50}}, color={0,0,255})); 
    13661305      connect(starL.pin_n, groundL.p)  
    1367         annotation (Line(points={{90,-50},{90,-60}}, color={0,0,255})); 
     1306        annotation (Line(points={{90,-30},{90,-60}}, color={0,0,255})); 
    13681307      connect(load.plug_n, starL.plug_p)  
    1369         annotation (Line(points={{90,-20},{90,-30}}, color={0,0,255})); 
     1308        annotation (Line(points={{90,0},{90,-50}}, color={0,0,255})); 
    13701309      connect(earth.n,ground. p)  
    1371         annotation (Line(points={{-6.12303e-016,-50},{0,-50},{0,-60}}, color={0, 
     1310        annotation (Line(points={{1.83697e-015,-30},{0,-30},{0,-60}}, color={0, 
    13721311              0,255})); 
    13731312      connect(electricalPowerSensorS.plug_nv, starS.plug_p)  
    1374         annotation (Line(points={{-80,0},{-80,-30},{-90,-30}}, color={0,0,255})); 
     1313        annotation (Line(points={{-80,0},{-80,-50},{-90,-50}}, color={0,0,255})); 
    13751314      connect(source.plug_p, electricalPowerSensorS.plug_p)  
    1376         annotation (Line(points={{-90,0},{-90,10}}, color={0,0,255})); 
     1315        annotation (Line(points={{-90,-20},{-90,10}}, color={0,0,255})); 
    13771316      connect(electricalPowerSensorS.plug_ni, currentRMSsensorS.plug_p)  
    13781317        annotation (Line(points={{-70,10},{-60,10}}, color={0,0,255})); 
     
    13801319        annotation (Line(points={{60,10},{70,10}}, color={0,0,255})); 
    13811320      connect(electricalPowerSensorL.plug_ni, load.plug_p)  
    1382         annotation (Line(points={{90,10},{90,0}}, color={0,0,255})); 
     1321        annotation (Line(points={{90,10},{90,-20}}, color={0,0,255})); 
    13831322      connect(currentRMSsensorS.plug_n, voltageRMSsensorS.plug_p)  
    1384         annotation (Line(points={{-40,10},{-40,0}}, color={0,0,255})); 
     1323        annotation (Line(points={{-40,10},{-40,-20}}, color={0,0,255})); 
    13851324      connect(currentRMSsensorL.plug_p, voltageRMSsensorL.plug_p)  
    1386         annotation (Line(points={{40,10},{40,0}}, color={0,0,255})); 
     1325        annotation (Line(points={{40,10},{40,-20}}, color={0,0,255})); 
    13871326      connect(electricalPowerSensorL.plug_nv, starL.plug_p)  
    1388         annotation (Line(points={{80,0},{80,-30},{90,-30}}, color={0,0,255})); 
     1327        annotation (Line(points={{80,0},{80,-50},{90,-50}}, color={0,0,255})); 
    13891328      connect(voltageRMSsensorS.plug_n, deltaS.plug_p)  
    1390         annotation (Line(points={{-40,-20},{-40,-20}}, color={0,0,255})); 
     1329        annotation (Line(points={{-40,0},{-40,-40}}, color={0,0,255})); 
    13911330      connect(deltaL.plug_p, voltageRMSsensorL.plug_n)  
    1392         annotation (Line(points={{40,-20},{40,-20}}, color={0,0,255})); 
    1393       connect(currentRMSsensorS.plug_n, transformer.plug1)  
    1394         annotation (Line(points={{-40,10},{-20,10}}, color={0,0,255})); 
    1395       connect(transformer.plug2, currentRMSsensorL.plug_p)  
    1396         annotation (Line(points={{20,10},{40,10}}, color={0,0,255})); 
     1331        annotation (Line(points={{40,-40},{40,0}}, color={0,0,255})); 
    13971332      connect(deltaS.plug_n, voltageRMSsensorS.plug_p)  
    1398         annotation (Line(points={{-40,-40},{-50,-40},{-50,0},{-40,0}}, color={0, 
     1333        annotation (Line(points={{-40,-20},{-50,-20},{-50,-20},{-40,-20}},  
     1334            color={0,0,255})); 
     1335      connect(deltaL.plug_n, voltageRMSsensorL.plug_p)  
     1336        annotation (Line(points={{40,-20},{50,-20},{50,-20},{40,-20}}, color={0, 
    13991337              0,255})); 
    1400       connect(deltaL.plug_n, voltageRMSsensorL.plug_p)  
    1401         annotation (Line(points={{40,-40},{50,-40},{50,0},{40,0}}, color={0,0, 
    1402               255})); 
     1338      connect(currentRMSsensorS.plug_n, transformer.plug1) annotation (Line( 
     1339          points={{-40,10},{-20,10}},  
     1340