@@ -7,65 +7,42 @@ partial model BaseREECC "Base renewable energy electrical controller model C"
77 parameter Boolean pqflag= true "Constant output value" annotation (Dialog(tab="Control" ));
88
99 Modelica.Blocks.Interfaces.RealInput ip0 "Initial Active Current" annotation (Placement(transformation(
10- extent={{-20,-20},{20,20}},
11- rotation=90,
12- origin={120,-320}), iconTransformation(
1310 extent={{-20,-20},{20,20}},
1411 rotation=90,
1512 origin={120,-320})));
1613 Modelica.Blocks.Interfaces.RealInput iq0 "Initial Reactive Current" annotation (Placement(transformation(
17- extent={{-20,-20},{20,20}},
18- rotation=90,
19- origin={240,-320}), iconTransformation(
2014 extent={{-20,-20},{20,20}},
2115 rotation=90,
2216 origin={240,-320})));
2317 Modelica.Blocks.Interfaces.RealOutput Iqcmd "Reactive Command Current"
24- annotation (Placement(transformation(extent={{300,162},{320,182}}),
25- iconTransformation(extent={{300,162},{320,182}})));
18+ annotation (Placement(transformation(extent={{300,160},{320,180}})));
2619 Modelica.Blocks.Interfaces.RealOutput Ipcmd "Active Command Current"
27- annotation (Placement(transformation(extent={{300,-182},{320,-162}}),
28- iconTransformation(extent={{300,-182},{320,-162}})));
20+ annotation (Placement(transformation(extent={{300,-180},{320,-160}})));
2921
3022 Modelica.Blocks.Interfaces.RealInput v0 "Initial Terminal Voltage Magnitude" annotation (Placement(transformation(
31- extent={{-20,-20},{20,20}},
32- rotation=90,
33- origin={0,-320}), iconTransformation(
3423 extent={{-20,-20},{20,20}},
3524 rotation=90,
3625 origin={0,-320})));
3726 Modelica.Blocks.Interfaces.RealInput p0 "Initial Active Power" annotation (Placement(transformation(
38- extent={{-20,-20},{20,20}},
39- rotation=90,
40- origin={-240,-320}),iconTransformation(
4127 extent={{-20,-20},{20,20}},
4228 rotation=90,
4329 origin={-240,-320})));
4430 Modelica.Blocks.Interfaces.RealInput q0 "Initial Reactive Power" annotation (Placement(transformation(
45- extent={{-20,-20},{20,20}},
46- rotation=90,
47- origin={-120,-320}),iconTransformation(
4831 extent={{-20,-20},{20,20}},
4932 rotation=90,
5033 origin={-120,-320})));
5134 Modelica.Blocks.Interfaces.RealInput Vt "Terminal Voltage Magnitude"
52- annotation (Placement(transformation(extent={{-340,220},{-300,260}}),
53- iconTransformation(extent={{-340,220},{-300,260}})));
35+ annotation (Placement(transformation(extent={{-340,220},{-300,260}})));
5436 Modelica.Blocks.Interfaces.RealInput Pe "Electrical Power"
55- annotation (Placement(transformation(extent={{-340,140},{-300,180}}),
56- iconTransformation(extent={{-340,140},{-300,180}})));
37+ annotation (Placement(transformation(extent={{-340,140},{-300,180}})));
5738 Modelica.Blocks.Interfaces.RealInput Qext "Reactive Power Reference"
58- annotation (Placement(transformation(extent={{-340,-20},{-300,20}}),
59- iconTransformation(extent={{-340,-20},{-300,20}})));
39+ annotation (Placement(transformation(extent={{-340,-20},{-300,20}})));
6040 Modelica.Blocks.Interfaces.RealInput Qgen "Reactive Power Generated"
61- annotation (Placement(transformation(extent={{-340,60},{-300,100}}),
62- iconTransformation(extent={{-340,60},{-300,100}})));
41+ annotation (Placement(transformation(extent={{-340,60},{-300,100}})));
6342 Modelica.Blocks.Interfaces.RealInput Pref "Active Power Reference" annotation (Placement(
64- transformation(extent={{-340,-100},{-300,-60}}),
65- iconTransformation(extent={{-340,-100},{-300,-60}})));
43+ transformation(extent={{-340,-100},{-300,-60}})));
6644 Modelica.Blocks.Interfaces.RealInput Paux "Auxiliary Signal for Active Power" annotation (Placement(
67- transformation(extent={{-340,-180},{-300,-140}}), iconTransformation(
68- extent={{-340,-180},{-300,-140}})));
45+ transformation(extent={{-340,-180},{-300,-140}})));
6946 annotation (Icon(coordinateSystem(extent={{-300,-300},
7047 {300,300}}), graphics={Rectangle(extent={{-300,300},{300,-300}},
7148 lineColor={0,0,255}),
0 commit comments