@@ -18,7 +18,7 @@ package Generic "Simple components for basic investigations"
18
18
if PhaseSystem.m > 0 then
19
19
terminal_p.theta = terminal_n.theta;
20
20
end if ;
21
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
21
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
22
22
extent={{-100,-100},{100,100}}), graphics={
23
23
Rectangle(
24
24
extent={{-70,30},{70,-30}},
@@ -28,11 +28,11 @@ package Generic "Simple components for basic investigations"
28
28
Line(points={{-100,0},{-70,0}}, color={0,120,120}),
29
29
Line(points={{70,0},{100,0}}, color={0,120,120}),
30
30
Text(
31
- extent={{-144 ,-60},{144 ,-100}},
31
+ extent={{-150 ,-60},{150 ,-100}},
32
32
lineColor={0,0,0},
33
- textString="R=%R% , L=%L% " ),
33
+ textString="R=%R, L=%L" ),
34
34
Text(
35
- extent={{-144,40 },{144 ,100}},
35
+ extent={{-150,60 },{150 ,100}},
36
36
lineColor={0,0,0},
37
37
textString="%name" ),
38
38
Rectangle(
@@ -58,7 +58,7 @@ package Generic "Simple components for basic investigations"
58
58
if PhaseSystem.m > 0 then
59
59
terminal_p.theta = terminal_n.theta;
60
60
end if ;
61
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
61
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
62
62
extent={{-100,-100},{100,100}}), graphics={
63
63
Rectangle(
64
64
extent={{-70,30},{70,-30}},
@@ -68,11 +68,11 @@ package Generic "Simple components for basic investigations"
68
68
Line(points={{-100,0},{-70,0}}, color={0,120,120}),
69
69
Line(points={{70,0},{100,0}}, color={0,120,120}),
70
70
Text(
71
- extent={{-144 ,-60},{144 ,-100}},
71
+ extent={{-150 ,-60},{150 ,-100}},
72
72
lineColor={0,0,0},
73
- textString="G=%G% , C=%C% " ),
73
+ textString="G=%G, C=%C" ),
74
74
Text(
75
- extent={{-144,40 },{144 ,100}},
75
+ extent={{-150,60 },{150 ,100}},
76
76
lineColor={0,0,0},
77
77
textString="%name" ),
78
78
Rectangle(
@@ -96,16 +96,16 @@ package Generic "Simple components for basic investigations"
96
96
if PhaseSystem.m > 0 then
97
97
terminal_p.theta = terminal_n.theta;
98
98
end if ;
99
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
99
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
100
100
extent={{-100,-100},{100,100}}), graphics={
101
101
Line(points={{-100,0},{-70,0}}, color={0,0,0}),
102
102
Line(points={{70,0},{100,0}}, color={0,0,0}),
103
103
Text(
104
- extent={{-144 ,-60},{144 ,-100}},
104
+ extent={{-150 ,-60},{150 ,-100}},
105
105
lineColor={0,0,0},
106
- textString="%ratio% " ),
106
+ textString="%ratio" ),
107
107
Text(
108
- extent={{-144 ,60},{144,120 }},
108
+ extent={{-150 ,60},{150,100 }},
109
109
lineColor={0,0,0},
110
110
textString="%name" ),
111
111
Ellipse(
@@ -131,7 +131,11 @@ package Generic "Simple components for basic investigations"
131
131
Line(points={{-80,-60},{80,-60}}, color={0,120,120}),
132
132
Line(points={{-50,-80},{50,-80}}, color={0,120,120}),
133
133
Line(points={{-20,-100},{20,-100}}, color={0,120,120}),
134
- Line(points={{-100,0},{0,0}}, color={0,120,120})}));
134
+ Line(points={{-100,0},{0,0}}, color={0,120,120}),
135
+ Text(
136
+ extent={{-150,60},{150,100}},
137
+ lineColor={0,0,0},
138
+ textString="%name" )}));
135
139
end Ground;
136
140
137
141
model Generator "Basic transformation of rotational to electrical power"
@@ -171,16 +175,16 @@ package Generic "Simple components for basic investigations"
171
175
end if ;
172
176
0 = PhaseSystem.activePower(terminal .v, terminal .i) + w* flange.tau;
173
177
terminal .v = PhaseSystem.phaseVoltages(V, thetaRel);
174
- annotation ( Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,
178
+ annotation (Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,
175
179
-100},{100,100}}), graphics={
176
180
Line(points={{-100,0},{-50,0}}, color={0,120,120}),
177
181
Line(points={{50,0},{100,0}}, color={0,120,120}),
178
182
Text(
179
- extent={{-144 ,-60},{144 ,-100}},
183
+ extent={{-150 ,-60},{150 ,-100}},
180
184
lineColor={0,0,0},
181
185
textString="V=%V_ref V" ),
182
186
Text(
183
- extent={{-144,40 },{144 ,100}},
187
+ extent={{-150,60 },{150 ,100}},
184
188
lineColor={0,0,0},
185
189
textString="%name" ),
186
190
Ellipse(
@@ -241,7 +245,7 @@ package Generic "Simple components for basic investigations"
241
245
terminal .i = PhaseSystem.phaseCurrents(I, thetaRel);
242
246
0 = PhaseSystem_dc.activePower(terminal_dc.v, terminal_dc.i)
243
247
+ PhaseSystem.activePower(terminal .v, terminal .i);
244
- annotation ( Icon(coordinateSystem(preserveAspectRatio=true,
248
+ annotation (Icon(coordinateSystem(preserveAspectRatio=true,
245
249
extent={{-100,-100},{100,100}}), graphics={
246
250
Rectangle(
247
251
extent={{-90,90},{90,-90}},
@@ -277,7 +281,7 @@ package Generic "Simple components for basic investigations"
277
281
fillPattern=FillPattern.Solid,
278
282
textString="~" ),
279
283
Text(
280
- extent={{-142,98 },{146,158 }},
284
+ extent={{-150,100 },{150,140 }},
281
285
lineColor={0,0,0},
282
286
textString="%name" )}));
283
287
end Inverter;
@@ -308,7 +312,7 @@ package Generic "Simple components for basic investigations"
308
312
fillColor={255,255,255},
309
313
fillPattern=FillPattern.CrossDiag),
310
314
Text(
311
- extent={{-142,98 },{146,158 }},
315
+ extent={{-150,100 },{150,140 }},
312
316
lineColor={0,0,0},
313
317
textString="%name" )}));
314
318
end FixedVoltageSource;
@@ -319,7 +323,7 @@ package Generic "Simple components for basic investigations"
319
323
parameter Modelica.SIunits.Angle phi = 0 "phase angle" ;
320
324
equation
321
325
PhaseSystem.phasePowers_vi(terminal .v, terminal .i) = PhaseSystem.phasePowers(P, phi);
322
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
326
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
323
327
extent={{-100,-100},{100,100}}), graphics={Rectangle(
324
328
extent={{-90,90},{90,-90}},
325
329
lineColor={0,120,120},
@@ -329,7 +333,10 @@ package Generic "Simple components for basic investigations"
329
333
lineColor={0,0,0},
330
334
fillColor={255,255,255},
331
335
fillPattern=FillPattern.Solid,
332
- textString="VA" )}));
336
+ textString="VA" ), Text(
337
+ extent={{-150,100},{150,140}},
338
+ lineColor={0,0,0},
339
+ textString="%name" )}));
333
340
end FixedLoad;
334
341
335
342
model FixedCurrent
@@ -339,7 +346,7 @@ package Generic "Simple components for basic investigations"
339
346
annotation (Dialog(group="Reference Parameters" , enable = definiteReference));
340
347
equation
341
348
terminal .i = PhaseSystem.phaseCurrents(I, phi);
342
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
349
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
343
350
extent={{-100,-100},{100,100}}), graphics={
344
351
Rectangle(
345
352
extent={{-90,90},{90,-90}},
@@ -351,13 +358,17 @@ package Generic "Simple components for basic investigations"
351
358
lineColor={0,0,0},
352
359
fillColor={255,255,255},
353
360
fillPattern=FillPattern.Solid,
354
- textString="%I% A" ),
361
+ textString="%I A" ),
355
362
Text(
356
363
extent={{-38,-74},{38,-32}},
357
364
lineColor={0,0,0},
358
365
fillColor={255,255,255},
359
366
fillPattern=FillPattern.Solid,
360
- textString="%phi%" )}));
367
+ textString="%phi" ),
368
+ Text(
369
+ extent={{-150,100},{150,140}},
370
+ lineColor={0,0,0},
371
+ textString="%name" )}));
361
372
end FixedCurrent;
362
373
363
374
model PrescribedPowerSource "Prescribed power source"
@@ -383,17 +394,15 @@ package Generic "Simple components for basic investigations"
383
394
end if ;
384
395
terminal .i = PhaseSystem.phaseCurrents(I, thetaRel);
385
396
0 = PhaseSystem.activePower(terminal .v, terminal .i) + P;
386
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
397
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
387
398
extent={{-100,-100},{100,100}}), graphics={Rectangle(
388
399
extent={{-90,90},{90,-90}},
389
400
lineColor={0,120,120},
390
401
fillColor={255,255,255},
391
402
fillPattern=FillPattern.Solid), Text(
392
- extent={{-90,-132 },{90,-90 }},
403
+ extent={{-150,100 },{150,140 }},
393
404
lineColor={0,0,0},
394
- fillColor={255,255,255},
395
- fillPattern=FillPattern.Solid,
396
- textString="%name%" )}));
405
+ textString="%name" )}));
397
406
end PrescribedPowerSource;
398
407
399
408
model PrescribedPowerLoad "Prescribed power load"
@@ -403,17 +412,15 @@ package Generic "Simple components for basic investigations"
403
412
transformation(extent={{130,-20},{90,20}})));
404
413
equation
405
414
PhaseSystem.phasePowers_vi(terminal .v, terminal .i) = PhaseSystem.phasePowers(P, phi);
406
- annotation ( Icon(coordinateSystem(preserveAspectRatio=false,
415
+ annotation (Icon(coordinateSystem(preserveAspectRatio=false,
407
416
extent={{-100,-100},{100,100}}), graphics={Rectangle(
408
417
extent={{-90,90},{90,-90}},
409
418
lineColor={0,120,120},
410
419
fillColor={255,255,255},
411
420
fillPattern=FillPattern.Solid), Text(
412
- extent={{-90,-132 },{90,-90 }},
421
+ extent={{-150,100 },{150,140 }},
413
422
lineColor={0,0,0},
414
- fillColor={255,255,255},
415
- fillPattern=FillPattern.Solid,
416
- textString="%name%" )}));
423
+ textString="%name" )}));
417
424
end PrescribedPowerLoad;
418
425
419
426
package Ports "Interfaces for generic components"
@@ -426,10 +433,8 @@ package Generic "Simple components for basic investigations"
426
433
lineColor={0,120,120},
427
434
fillColor={0,120,120},
428
435
fillPattern=FillPattern.Solid), Text(
429
- extent={{-150,110 },{150,50 }},
436
+ extent={{-150,60 },{150,100 }},
430
437
lineColor={0,0,0},
431
- fillColor={0,0,0},
432
- fillPattern=FillPattern.Solid,
433
438
textString="%name" )}), Icon(coordinateSystem(
434
439
preserveAspectRatio=false, extent={{-100,-100},{100,100}}),
435
440
graphics={Polygon(
@@ -444,10 +449,8 @@ package Generic "Simple components for basic investigations"
444
449
annotation (Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,
445
450
-100},{100,100}}), graphics={
446
451
Text(
447
- extent={{-150,110 },{150,50 }},
452
+ extent={{-150,60 },{150,100 }},
448
453
lineColor={0,0,0},
449
- fillColor={0,0,0},
450
- fillPattern=FillPattern.Solid,
451
454
textString="%name" ), Rectangle(
452
455
extent={{-60,60},{60,-60}},
453
456
lineColor={0,120,120},
@@ -581,7 +584,7 @@ package Generic "Simple components for basic investigations"
581
584
thickness=0.5),
582
585
Ellipse(extent={{-20,20},{20,-20}}, lineColor={135,135,135}),
583
586
Text(
584
- extent={{-149,-114 },{151,-154 }},
587
+ extent={{-150,-130 },{150,-90 }},
585
588
lineColor={0,0,0},
586
589
textString="%name" ),
587
590
Ellipse(
0 commit comments