Skip to content

Commit 00e70d6

Browse files
committed
Fixed some minor issues
The following are the modifications done: 1- Eliminated annotation noise in some models. 2- Eliminated the .eps import from CIM5 and CIM6 models and used the C.eps constant instead. 3- Fixed the wording from 'Var' to 'var' in the Data/MachinesMicrogrid record.
1 parent fdbe443 commit 00e70d6

6 files changed

Lines changed: 12 additions & 17 deletions

File tree

OpenIPSL/Electrical/Controls/VariableSpeedDrive/ControllerLogic/VoltsHertzController.mo

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,14 @@ equation
139139
96},{60,120}}, color={0,0,127}));
140140
connect(product1.y, limiter1.u) annotation (Line(points={{-9,40},{6,40}},
141141
color={0,0,127}));
142-
annotation (preferredView = "info", Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
143-
{100,100}}), graphics={
142+
annotation (preferredView = "info", Icon( graphics={
144143
Rectangle(
145144
extent={{-100,100},{100,-100}},
146145
lineColor={28,108,200}), Text(
147146
extent={{-80,80},{80,-80}},
148147
lineColor={28,108,200},
149148
textString="V/f
150-
Control")}), Diagram(
151-
coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}})),
149+
Control")}),
152150
Documentation(info="<html>
153151
<p>The VoltsHertzController component represents the controller logic for the variable speed drive. The volts hertz control is a simple and widely used method for controlling the speed of an AC induction motor by adjusting the voltage and frequency supplied to the motor at a constant ratio.</p>
154152
<p>The model has three inputs and two output connectors. The W_ref input connector represents the reference synchronous speed that is user defined,

OpenIPSL/Electrical/Controls/VariableSpeedDrive/PowerElectronics/AC2DCandDC2AC.mo

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ equation
142142
color={0,0,255}));
143143
connect(Capacitor_Voltage.y, Vc) annotation (Line(points={{-63,-74},{-50,-74},
144144
{-50,-110}}, color={0,0,127}));
145-
annotation (preferredView = "info",Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
146-
{100,100}}),
145+
annotation (preferredView = "info",Icon(
147146
graphics={Rectangle(
148147
extent={{-100,100},{100,-100}},
149148
lineColor={28,108,200}),
@@ -155,8 +154,7 @@ equation
155154
Text(
156155
extent={{-30,-20},{90,-80}},
157156
textColor={28,108,200},
158-
textString="DC/AC")}), Diagram(
159-
coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}}), graphics={Rectangle(
157+
textString="DC/AC")}), Diagram( graphics={Rectangle(
160158
extent={{14,90},{94,40}},
161159
lineColor={0,0,255},
162160
pattern=LinePattern.Dash), Text(

OpenIPSL/Electrical/Machines/PSSE/BaseClasses/baseMotor.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ equation
108108
nr = (1-s)*ns;
109109
wr = nr;
110110

111-
annotation (preferredView = "info",Icon(coordinateSystem(preserveAspectRatio=false), graphics={
111+
annotation (preferredView = "info",Icon(graphics={
112112
Rectangle(extent={{-100,100},{100,-100}}, lineColor={28,108,200}),
113113
Ellipse(
114114
fillColor={255,255,255},
@@ -120,7 +120,7 @@ equation
120120
extent={{-100,-20},{100,20}},
121121
fontName="Arial",
122122
lineColor={0,0,0},
123-
textString="%name")}), Diagram(coordinateSystem(preserveAspectRatio=false)),
123+
textString="%name")}),
124124
Documentation(info="<html>
125125
<p>
126126
This component is the base class for the PSSE induction motor models from the Machines.PSSE sub-package.

OpenIPSL/Electrical/Machines/PSSE/CIM5.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
within OpenIPSL.Electrical.Machines.PSSE;
22
model CIM5 "PSSE CIM5 three-phase induction motor model"
33
extends OpenIPSL.Electrical.Machines.PSSE.BaseClasses.baseMotor;
4-
import Modelica.Constants.eps;
4+
//import Modelica.Constants.eps;
55
import OpenIPSL.NonElectrical.Functions.SE;
66

77
parameter Integer Mtype = 1 "1- Motor Type A; 2- Motor Type B" annotation (Dialog(group=
@@ -89,7 +89,7 @@ initial equation
8989
der(Epi) = 0;
9090

9191
else
92-
s = (1 - Modelica.Constants.eps);
92+
s = (1 - C.eps);
9393

9494
end if;
9595

@@ -125,7 +125,7 @@ equation
125125
EQ11 = Epi*(Tp0*w_b*s);
126126
EQ12 = EQ10 + EQ11 - Epr - EQ9;
127127
EQ12 = Tp0*der(Epr);
128-
EQC = NUM/(Epp + eps);
128+
EQC = NUM/(Epp + C.eps);
129129
NUM = SE(Epp,SE1,SE2,1,1.2);
130130
Epp = sqrt(Eppr^2 + Eppi^2);
131131
EQ13 = EQC*Eppr;

OpenIPSL/Electrical/Machines/PSSE/CIM6.mo

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
within OpenIPSL.Electrical.Machines.PSSE;
22
model CIM6 "PSSE CIM6 three-phase induction motor model"
33
extends OpenIPSL.Electrical.Machines.PSSE.BaseClasses.baseMotor;
4-
import Modelica.Constants.eps;
54
import OpenIPSL.NonElectrical.Functions.SE;
65

76
parameter Integer Mtype = 1 "1- Motor Type A; 2- Motor Type B" annotation (Dialog(group=
@@ -95,7 +94,7 @@ initial equation
9594
der(Epi) = 0;
9695

9796
else
98-
s = (1 - Modelica.Constants.eps);
97+
s = (1 - C.eps);
9998

10099
end if;
101100

@@ -132,7 +131,7 @@ equation
132131
EQ11 = Epi*(Tp0*w_b*s);
133132
EQ12 = EQ10 + EQ11 - Epr - EQ9;
134133
EQ12 = Tp0*der(Epr);
135-
EQC = NUM/(Epp + eps);
134+
EQC = NUM/(Epp + C.eps);
136135
NUM = SE(Epp,SE1,SE2,1,1.2);
137136
Epp = sqrt(Eppr^2 + Eppi^2);
138137
EQ13 = EQC*Eppr;

OpenIPSL/Examples/Microgrids/IEEEMicrogrid/Data/MachinesMicrogrid.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ record MachinesMicrogrid "Data record for power generation"
2121

2222

2323
annotation (Documentation(info="<html>
24-
This data record has the active and reactive powers in VA and Var, respectively, that are delivered by the generation units to the system. The data is used to initialized the network in a certain operating point.
24+
This data record has the active and reactive powers in VA and var, respectively, that are delivered by the generation units to the system. The data is used to initialized the network in a certain operating point.
2525
</html>"));
2626
end MachinesMicrogrid;

0 commit comments

Comments
 (0)