Skip to content

Commit 93b525b

Browse files
committed
add start values for curve parameters and torque sources
1 parent 2e79e5e commit 93b525b

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

PowerSystems/AC1ph_DC/Inverters.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ model RectifierEquation "Rectifier equation, 1-phase"
624624
protected
625625
SI.Voltage[2] V;
626626
SI.Voltage[2] i_sc "current scaled to voltage in inertial abc representation";
627-
Real[2] s "arc-length on characteristic";
627+
Real[2] s(each start = 0.5) "arc-length on characteristic";
628628

629629
equation
630630
i_sc = AC.i*par.V_nom/par.I_nom;
@@ -853,7 +853,7 @@ model InverterEquation "Inverter equation, 1-phase"
853853
SI.Voltage[2] V_s;
854854
SI.Voltage[2] V_d;
855855
SI.Voltage[2] i_sc "current scaled to voltage in inertial abc representation";
856-
Real[2] s "arc-length on characteristic";
856+
Real[2] s(each start = 0.5) "arc-length on characteristic";
857857

858858
equation
859859
i_sc = AC.i*par.V_nom/par.I_nom;

PowerSystems/AC3ph/Drives.mo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,15 @@ 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-
each final unit="1") "measured current {i_d, i_q} pu"
483+
each final unit="1")
484+
"measured current {i_d, i_q} pu"
484485
annotation (Placement(transformation(
485486
origin={-60,100},
486487
extent={{-10,-10},{10,10}},
487488
rotation=90)));
488489
Modelica.Blocks.Interfaces.RealInput[2] i_act(
489-
each final unit="1") "actuated current {i_d, i_q} pu"
490+
each final unit="1")
491+
"actuated current {i_d, i_q} pu"
490492
annotation (Placement(transformation(
491493
origin={60,100},
492494
extent={{10,-10},{-10,10}},

PowerSystems/AC3ph/Inverters.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ end InverterAverage;
529529
SI.Voltage[3] v "voltage in inertial abc representation";
530530
SI.Voltage[3] i_sc
531531
"current scaled to voltage in inertial abc representation";
532-
Real[3] s "arc-length on characteristic";
532+
Real[3] s(each start = 0.5) "arc-length on characteristic";
533533
Real[3] switch "switch function in inertial abc representation";
534534
Real[3,3] Park = Basic.Transforms.park( AC.theta[2]);
535535

@@ -777,7 +777,7 @@ Blocking losses are neglected in the expression of dissipated heat <tt>Q_flow</t
777777
SI.Voltage[3] v "voltage in inertial abc representation";
778778
SI.Voltage[3] i_sc
779779
"current scaled to voltage in inertial abc representation";
780-
Real[3] s "arc-length on characteristic";
780+
Real[3] s(each start = 0.5) "arc-length on characteristic";
781781
Real[3] switch "switch function in inertial abc representation";
782782
Real[3,3] Park = Basic.Transforms.park( AC.theta[2]);
783783

PowerSystems/Common/Switching.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ partial model SwitchBase "Switch base kernel, no terminals"
255255
extent={{-10,-10},{10,10}},
256256
rotation=270)));
257257
protected
258-
Real s;
258+
Real s(start = 0.5);
259259

260260
annotation (
261261
Window(

PowerSystems/Examples/Spot/AC3ph.mo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,7 @@ package AC3ph "AC 3-phase components dqo"
571571
PowerSystems.AC3ph.Sensors.PVImeter meterAC(av=true, tcst=0.1)
572572
annotation (Placement(transformation(extent={{-20,-10},{0,10}}, rotation=
573573
0)));
574-
replaceable PowerSystems.AC3ph.Inverters.Rectifier rectifier(rectifier(s(
575-
each start=0.5)))
574+
replaceable PowerSystems.AC3ph.Inverters.Rectifier rectifier
576575
annotation (Placement(transformation(extent={{30,-10},{10,10}}, rotation=
577576
0)));
578577
PowerSystems.AC1ph_DC.Sensors.PVImeter meterDC(av=true, tcst=0.1)

PowerSystems/Examples/Spot/DrivesDC.mo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ package DrivesDC "DC drives"
186186
Modelica.Mechanics.Rotational.Sources.TorqueStep torqueStep(
187187
stepTorque=-10,
188188
startTime=1.5,
189-
useSupport=false)
189+
useSupport=false,
190+
offsetTorque=0)
190191
annotation (Placement(transformation(extent={{90,20},{70,40}},
191192
rotation=0)));
192193
parameter PowerSystems.Examples.Spot.Data.Machines.DCpm100V_1kVA DCpm100_1k
@@ -276,7 +277,8 @@ package DrivesDC "DC drives"
276277
annotation (Placement(transformation(extent={{70,-20},{90,0}}, rotation=0)));
277278
Modelica.Mechanics.Rotational.Sources.TorqueStep torqueStep(
278279
startTime=1.5, stepTorque=-10,
279-
useSupport=false)
280+
useSupport=false,
281+
offsetTorque=0)
280282
annotation (Placement(transformation(extent={{90,20},{70,40}},
281283
rotation=0)));
282284
parameter PowerSystems.Examples.Spot.Data.Machines.BLDC100V_1kVA bldc100_1k

PowerSystems/Semiconductors/Ideal.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ partial model IdealCharacteristic "Ideal diode characteristic"
5757
constant Real unitAmperePerVolt(unit="A/V") = 1 annotation(HideResult=true);
5858

5959
Boolean on;
60-
Real s "auxiliary variable";
60+
Real s(start = 0.5) "auxiliary variable";
6161
SI.Voltage V "forward threshold voltage";
6262
SI.Current i_sc = i*par.V_nom/par.I_nom*unitAmperePerVolt
6363
"current scaled to voltage";

0 commit comments

Comments
 (0)