@@ -268,7 +268,8 @@ and eddy current losses.</p>
268
268
annotation(Evaluate=true, Dialog(tab="Initialization" ));
269
269
parameter SI.Current i1_start = 0 "start value of primary current"
270
270
annotation(Dialog(tab="Initialization" ));
271
- parameter SI.Current i2_start = i1_start "start value of secondary current"
271
+ parameter SI.Current i2_start = i1_start
272
+ "start value of secondary current"
272
273
annotation(Dialog(tab="Initialization" ));
273
274
274
275
parameter Boolean dynTC= false "enable dynamic tap-changing" annotation(Evaluate=true, choices(__Dymola_checkBox=true));
@@ -308,9 +309,9 @@ and eddy current losses.</p>
308
309
annotation(Evaluate=true);
309
310
final parameter Real [:] W1= cat(1 , {1 }, par.v_tc1* V_base[1 ]/ par.V_nom[1 ]) annotation(Evaluate=true);
310
311
final parameter Real [:] W2= cat(1 , {1 }, par.v_tc2* V_base[2]/par.V_nom[2])*W_nom annotation(Evaluate=true);
311
- Real w1_set= if not use_tap_p then W1[ 1 ] else W1[1 + tap_p_internal]
312
+ Real w1_set= W1[1 + tap_p_internal]
312
313
"1: set voltage ratio to nominal primary" ;
313
- Real w2_set= if not use_tap_n then W2[ 1 ] else W2[1 + tap_n_internal]
314
+ Real w2_set= W2[1 + tap_n_internal]
314
315
"2: set voltage ratio to nominal primary" ;
315
316
316
317
initial equation
@@ -355,12 +356,11 @@ and eddy current losses.</p>
355
356
Text(
356
357
extent={{-120,80},{-80,40}},
357
358
lineColor={0,0,0},
358
- textString=
359
- "1" ),
359
+ textString="1" ),
360
360
Text(
361
361
extent={{80,80},{120,40}},
362
362
lineColor={0,0,0},
363
- textString= "2" ),
363
+ textString="2" ),
364
364
Line(
365
365
points={{-80,0},{-40,0}},
366
366
color={176,0,0},
@@ -531,11 +531,11 @@ For variable transformer ratio tap changer input needed.</p>
531
531
final parameter Real [:] W2a= cat(1 , {1 }, par.v_tc2a* V_base[2 ]/ par.V_nom[2 ])* Wa_nom
532
532
annotation(Evaluate=true);
533
533
final parameter Real [:] W2b= cat(1 , {1 }, par.v_tc2b* V_base[3]/par.V_nom[3])*Wb_nom annotation(Evaluate=true);
534
- Real w1_set= if not use_tap_p then W1[ 1 ] else W1[1 + tap_p_internal]
534
+ Real w1_set= W1[1 + tap_p_internal]
535
535
"1: set voltage ratio to nominal primary" ;
536
- Real w2a_set= if not use_tap_n then W2a[ 1 ] else W2a[1 + tap_n_internal[1 ]]
536
+ Real w2a_set= W2a[1 + tap_n_internal[1 ]]
537
537
"2a: set voltage ratio to nominal primary" ;
538
- Real w2b_set= if not use_tap_n then W2b[ 1 ] else W2b[1 + tap_n_internal[2 ]]
538
+ Real w2b_set= W2b[1 + tap_n_internal[2 ]]
539
539
"2b: set voltage ratio to nominal primary" ;
540
540
541
541
initial equation
@@ -583,12 +583,11 @@ For variable transformer ratio tap changer input needed.</p>
583
583
Text(
584
584
extent={{-120,80},{-80,40}},
585
585
lineColor={0,0,0},
586
- textString=
587
- "1" ),
586
+ textString="1" ),
588
587
Text(
589
588
extent={{80,20},{120,-20}},
590
589
lineColor={0,0,0},
591
- textString= "2" ),
590
+ textString="2" ),
592
591
Line(
593
592
points={{-80,0},{-40,0}},
594
593
color={176,0,0},
0 commit comments