Skip to content

Commit ccf796c

Browse files
committed
Merge pull request #3 from sjoelund/eachFixes
Add missing each keyword
2 parents 5bf6ed6 + d803f2c commit ccf796c

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

PowerSystems/AC1ph_DC/Breakers.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ if it is mechanically fully 'open' (after a given opening duration) and the corr
582582
extends Ports.Port_pn;
583583
extends Basic.Nominal.NominalVI;
584584

585-
parameter Real[2] eps(final min={0,0}, unit="1")={1e-4,1e-4}
585+
parameter Real[2] eps(final min={0,0}, each unit="1")={1e-4,1e-4}
586586
"{resistance 'closed', conductance 'open'}";
587587
protected
588588
final parameter SI.Resistance epsR=eps[1]*V_nom/I_nom;

PowerSystems/AC3ph/Breakers.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Electrically the switch is on if it is 'closed', whereas it is switched off, if
419419
extends PowerSystems.Basic.Nominal.NominalVI;
420420

421421
parameter Integer n=3 "number of independent switches";
422-
parameter Real[2] eps(final min={0,0}, unit="1")={1e-4,1e-4}
422+
parameter Real[2] eps(final min={0,0}, each unit="1")={1e-4,1e-4}
423423
"{resistance 'closed', conductance 'open'}";
424424
SI.Voltage[3] v;
425425
SI.Current[3] i;

PowerSystems/AC3ph/Drives.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,13 @@ package Drives "AC-drives dqo"
480480
annotation (Placement(transformation(extent={{-110,
481481
-10},{-90,10}}, rotation=0)));
482482
Modelica.Blocks.Interfaces.RealOutput[2] i_meas(
483-
final unit="1") "measured current {i_d, i_q} pu"
483+
each final unit="1") "measured current {i_d, i_q} pu"
484484
annotation (Placement(transformation(
485485
origin={-60,100},
486486
extent={{-10,-10},{10,10}},
487487
rotation=90)));
488488
Modelica.Blocks.Interfaces.RealInput[2] i_act(
489-
final unit="1") "actuated current {i_d, i_q} pu"
489+
each final unit="1") "actuated current {i_d, i_q} pu"
490490
annotation (Placement(transformation(
491491
origin={60,100},
492492
extent={{10,-10},{-10,10}},

PowerSystems/AC3ph/Generation.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,13 +798,13 @@ Constant setpoint values can be obtained at (steady-state) initialisation when u
798798
"rotor generator" annotation (Placement(transformation(extent=
799799
{{-20,-10},{0,10}}, rotation=0)));
800800
Modelica.Blocks.Interfaces.RealOutput[2] i_meas(
801-
final unit="1") "measured current {i_d, i_q} pu"
801+
each final unit="1") "measured current {i_d, i_q} pu"
802802
annotation (Placement(transformation(
803803
origin={60,100},
804804
extent={{-10,-10},{10,10}},
805805
rotation=90)));
806806
Modelica.Blocks.Interfaces.RealInput[2] i_act(
807-
final unit="1") "actuated current {i_d, i_q} pu"
807+
each final unit="1") "actuated current {i_d, i_q} pu"
808808
annotation (Placement(transformation(
809809
origin={-60,100},
810810
extent={{10,-10},{-10,10}},

PowerSystems/AC3ph/Loads.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,10 @@ Consumes the desired active and reactive power at steady state and <b>nominal</b
623623
"= true if p0 defined by parameter p0_set otherwise by input signal p_set"
624624
annotation(Evaluate=true, choices(__Dymola_checkBox=true));
625625

626-
parameter SIpu.Power[2] p0_set(min=0)={sqrt(3),1}/2
626+
parameter SIpu.Power[2] p0_set(each min=0)={sqrt(3),1}/2
627627
"{active, reactive} power, (start val if signal inp)" annotation(Dialog(enable=scType_par));
628628
parameter SIpu.Resistance r_n=0 "resistance neutral to grd";
629-
Modelica.Blocks.Interfaces.RealInput[2] p_set(min=0) if not scType_par
629+
Modelica.Blocks.Interfaces.RealInput[2] p_set(each min=0) if not scType_par
630630
"desired {active, reactive} power" annotation (Placement(
631631
transformation(
632632
origin={0,100},

PowerSystems/AC3ph/Machines.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,13 @@ The mapping from current demand to voltage demand is based on the steady-state e
408408
PowerSystems.AC3ph.Machines.Parameters.Synchron3rd_pm par);
409409

410410
Modelica.Blocks.Interfaces.RealOutput[2] i_meas(
411-
final unit="1") "measured current {i_d, i_q} pu"
411+
each final unit="1") "measured current {i_d, i_q} pu"
412412
annotation (Placement(transformation(
413413
origin={-60,100},
414414
extent={{-10,-10},{10,10}},
415415
rotation=90)));
416416
Modelica.Blocks.Interfaces.RealInput[2] i_act(
417-
final unit="1") "actuated current {i_d, i_q} pu"
417+
each final unit="1") "actuated current {i_d, i_q} pu"
418418
annotation (Placement(transformation(
419419
origin={60,100},
420420
extent={{10,-10},{-10,10}},

PowerSystems/Basic/Types.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ package Types
124124
"));
125125
end SInotused;
126126

127-
type Color = Integer[3] (min=0, max=255) "RGB color" annotation (choices(
127+
type Color = Integer[3] (each min=0, each max=255) "RGB color" annotation (choices(
128128
choice={255,0,0} "{255, 000, 000 } red",
129129
choice={255,255,0} "{255, 255, 000} yellow",
130130
choice={0,255,0} "{000, 255, 000} green",

PowerSystems/Control/Exciters.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ package Exciters "Generator Exciters "
167167
partial block ExciterBase "Exciter base"
168168
extends PowerSystems.Basic.Icons.Block1;
169169

170-
parameter SIpu.Voltage[2] v_f_minmax(unit="1")={0, 3}
170+
parameter SIpu.Voltage[2] v_f_minmax(each unit="1")={0, 3}
171171
"{min,max} exciter voltage";
172172
protected
173173
outer System system;
@@ -178,7 +178,7 @@ package Exciters "Generator Exciters "
178178
annotation (Placement(transformation(extent={{-110,-10},{-90,10}},
179179
rotation=0)));
180180
Modelica.Blocks.Interfaces.RealInput termVoltage[3](
181-
final unit="1") "terminal voltage pu"
181+
each final unit="1") "terminal voltage pu"
182182
annotation (Placement(transformation(
183183
origin={-60,-100},
184184
extent={{-10,-10},{10,10}},

PowerSystems/Control/Governors.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ package Governors "Turbine Governors "
174174
partial block GovernorBase "Governor base"
175175
extends PowerSystems.Basic.Icons.Block1;
176176

177-
parameter SIpu.Power[2] p_minmax(unit="1")={0,2} "{min,max} turbine power";
177+
parameter SIpu.Power[2] p_minmax(each unit="1")={0,2} "{min,max} turbine power";
178178
protected
179179
outer System system;
180180
public

PowerSystems/Control/Relays.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package Relays "Relays"
1010
parameter Boolean ini_state=true "initial state (closed true, open false)"
1111
annotation(choices(choice=true "closed", choice=false "open"));
1212
parameter SI.Time t_switch[:]={1} "switching time vector";
13-
Modelica.Blocks.Interfaces.BooleanOutput[n] y(start=fill(ini_state, n), fixed=true)
13+
Modelica.Blocks.Interfaces.BooleanOutput[n] y(start=fill(ini_state, n), each fixed=true)
1414
"boolean state of switch (closed:true, open:false)"
1515
annotation (Placement(transformation(extent={{90,-10},{110,10}}, rotation=
1616
0)));
@@ -56,9 +56,9 @@ package Relays "Relays"
5656
block TapChangerRelay "Relay for setting tap-changer "
5757
extends PowerSystems.Basic.Icons.Block0;
5858

59-
parameter Integer preset_1[:](min=0)={0}
59+
parameter Integer preset_1[:](each min=0)={0}
6060
"1: index v-levels tap-chg, 0 is nom";
61-
parameter Integer preset_2[:](min=0)={0}
61+
parameter Integer preset_2[:](each min=0)={0}
6262
"2: index v-levels tap-chg, 0 is nom";
6363
parameter SI.Time t_switch_1[:]={1} "1: switching times";
6464
parameter SI.Time t_switch_2[:]={1} "2:switching times";

0 commit comments

Comments
 (0)