Skip to content

Commit 834c642

Browse files
committed
Whitespace and annotation clean up with ttws
1 parent d16157c commit 834c642

39 files changed

+368
-390
lines changed

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/CampusGridA.mo

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@ model CampusGridA "Microgrid model for university campus A"
44
OpenIPSL.Electrical.Buses.Bus AENB(
55
V_b=69000,
66
v_0=pf.powerflow.bus.V2,
7-
angle_0=pf.powerflow.bus.A2) annotation (Placement(transformation(
7+
angle_0=pf.powerflow.bus.A2) annotation (Placement(transformation(
88
extent={{-10,-10},{10,10}},
99
rotation=90,
1010
origin={0,138})));
1111
OpenIPSL.Electrical.Buses.Bus H2E(
1212
V_b=12000,
1313
v_0=pf.powerflow.bus.V3,
14-
angle_0=pf.powerflow.bus.A3) annotation (Placement(transformation(
14+
angle_0=pf.powerflow.bus.A3) annotation (Placement(transformation(
1515
extent={{-10,-10},{10,10}},
1616
rotation=90,
1717
origin={-110,78})));
1818
OpenIPSL.Electrical.Buses.Bus H4S(
1919
V_b=12000,
2020
v_0=pf.powerflow.bus.V4,
21-
angle_0=pf.powerflow.bus.A4) annotation (Placement(transformation(
21+
angle_0=pf.powerflow.bus.A4) annotation (Placement(transformation(
2222
extent={{-10,-10},{10,10}},
2323
rotation=90,
2424
origin={-50,78})));
2525
OpenIPSL.Electrical.Buses.Bus H3N(
2626
V_b=12000,
2727
v_0=pf.powerflow.bus.V5,
28-
angle_0=pf.powerflow.bus.A5) annotation (Placement(transformation(
28+
angle_0=pf.powerflow.bus.A5) annotation (Placement(transformation(
2929
extent={{-10,-10},{10,10}},
3030
rotation=90,
3131
origin={50,78})));
3232
OpenIPSL.Electrical.Buses.Bus H1W(
3333
V_b=12000,
3434
v_0=pf.powerflow.bus.V6,
35-
angle_0=pf.powerflow.bus.A6) annotation (Placement(transformation(
35+
angle_0=pf.powerflow.bus.A6) annotation (Placement(transformation(
3636
extent={{-10,-10},{10,10}},
3737
rotation=90,
3838
origin={110,78})));
@@ -105,14 +105,14 @@ model CampusGridA "Microgrid model for university campus A"
105105
OpenIPSL.Electrical.Buses.Bus A1W(
106106
V_b=12000,
107107
v_0=pf.powerflow.bus.V7,
108-
angle_0=pf.powerflow.bus.A7) annotation (Placement(transformation(
108+
angle_0=pf.powerflow.bus.A7) annotation (Placement(transformation(
109109
extent={{-10,-10},{10,10}},
110110
rotation=90,
111111
origin={-50,26})));
112112
OpenIPSL.Electrical.Buses.Bus A2E(
113113
V_b=12000,
114114
v_0=pf.powerflow.bus.V8,
115-
angle_0=pf.powerflow.bus.A8) annotation (Placement(transformation(
115+
angle_0=pf.powerflow.bus.A8) annotation (Placement(transformation(
116116
extent={{-10,-10},{10,10}},
117117
rotation=90,
118118
origin={50,26})));
@@ -125,14 +125,14 @@ model CampusGridA "Microgrid model for university campus A"
125125
OpenIPSL.Electrical.Buses.Bus W1W(
126126
V_b=12000,
127127
v_0=pf.powerflow.bus.V9,
128-
angle_0=pf.powerflow.bus.A9) annotation (Placement(transformation(
128+
angle_0=pf.powerflow.bus.A9) annotation (Placement(transformation(
129129
extent={{-10,-10},{10,10}},
130130
rotation=90,
131131
origin={-80,-32})));
132132
OpenIPSL.Electrical.Buses.Bus W2E(
133133
V_b=12000,
134134
v_0=pf.powerflow.bus.V10,
135-
angle_0=pf.powerflow.bus.A10) annotation (Placement(transformation(
135+
angle_0=pf.powerflow.bus.A10) annotation (Placement(transformation(
136136
extent={{-10,-10},{10,10}},
137137
rotation=90,
138138
origin={80,-32})));
@@ -145,22 +145,22 @@ model CampusGridA "Microgrid model for university campus A"
145145
OpenIPSL.Electrical.Buses.Bus W3N(
146146
V_b=12000,
147147
v_0=pf.powerflow.bus.V11,
148-
angle_0=pf.powerflow.bus.A11) annotation (Placement(transformation(
148+
angle_0=pf.powerflow.bus.A11) annotation (Placement(transformation(
149149
extent={{-10,-10},{10,10}},
150150
rotation=90,
151151
origin={-110,-102})));
152152
OpenIPSL.Electrical.Buses.Bus W4S(
153153
V_b=12000,
154154
v_0=pf.powerflow.bus.V12,
155-
angle_0=pf.powerflow.bus.A12) annotation (Placement(transformation(
155+
angle_0=pf.powerflow.bus.A12) annotation (Placement(transformation(
156156
extent={{-10,-10},{10,10}},
157157
rotation=90,
158158
origin={110,-102})));
159159
OpenIPSL.Electrical.Branches.PwLine X6(
160160
R=0,
161161
X=0.5021,
162162
G=0,
163-
B=0) annotation (Placement(
163+
B=0) annotation (Placement(
164164
transformation(
165165
extent={{-10,-10},{10,10}},
166166
rotation=90,
@@ -169,15 +169,15 @@ model CampusGridA "Microgrid model for university campus A"
169169
R=0,
170170
X=0.5021,
171171
G=0,
172-
B=0) annotation (Placement(
172+
B=0) annotation (Placement(
173173
transformation(
174174
extent={{-10,-10},{10,10}},
175175
rotation=90,
176176
origin={120,-42})));
177177
OpenIPSL.Electrical.Buses.Bus B416N(
178178
V_b=4160,
179179
v_0=pf.powerflow.bus.V13,
180-
angle_0=pf.powerflow.bus.A13) annotation (Placement(
180+
angle_0=pf.powerflow.bus.A13) annotation (Placement(
181181
transformation(
182182
extent={{-10,-10},{10,10}},
183183
rotation=90,
@@ -209,15 +209,15 @@ model CampusGridA "Microgrid model for university campus A"
209209
OpenIPSL.Electrical.Buses.Bus AENA(
210210
V_b=69000,
211211
v_0=pf.powerflow.bus.V1,
212-
angle_0=pf.powerflow.bus.A1) annotation (Placement(transformation(
212+
angle_0=pf.powerflow.bus.A1) annotation (Placement(transformation(
213213
extent={{-10,-10},{10,10}},
214214
rotation=90,
215215
origin={0,168})));
216216
OpenIPSL.Electrical.Branches.PwLine L1(
217217
R=0.01,
218218
X=0.01,
219219
G=0,
220-
B=0) annotation (Placement(
220+
B=0) annotation (Placement(
221221
transformation(
222222
extent={{-10,-10},{10,10}},
223223
rotation=90,
@@ -385,7 +385,7 @@ model CampusGridA "Microgrid model for university campus A"
385385
V_b=12000,
386386
v_0=pf.powerflow.bus.V7,
387387
angle_0=pf.powerflow.bus.A7,
388-
displayPF=true) annotation (Placement(transformation(
388+
displayPF=true) annotation (Placement(transformation(
389389
extent={{-10,-10},{10,10}},
390390
rotation=90,
391391
origin={-50,-8})));
@@ -400,7 +400,7 @@ model CampusGridA "Microgrid model for university campus A"
400400
OpenIPSL.Electrical.Buses.Bus W1WG(
401401
V_b=12000,
402402
v_0=pf.powerflow.bus.V9,
403-
angle_0=pf.powerflow.bus.A9) annotation (Placement(transformation(
403+
angle_0=pf.powerflow.bus.A9) annotation (Placement(transformation(
404404
extent={{-10,-10},{10,10}},
405405
rotation=90,
406406
origin={-80,-68})));
@@ -423,14 +423,14 @@ model CampusGridA "Microgrid model for university campus A"
423423
OpenIPSL.Electrical.Buses.Bus W2EG(
424424
V_b=12000,
425425
v_0=pf.powerflow.bus.V10,
426-
angle_0=pf.powerflow.bus.A10) annotation (Placement(transformation(
426+
angle_0=pf.powerflow.bus.A10) annotation (Placement(transformation(
427427
extent={{-10,-10},{10,10}},
428428
rotation=90,
429429
origin={80,-66})));
430430
OpenIPSL.Electrical.Buses.Bus W4SG(
431431
V_b=12000,
432432
v_0=pf.powerflow.bus.V12,
433-
angle_0=pf.powerflow.bus.A12) annotation (Placement(transformation(
433+
angle_0=pf.powerflow.bus.A12) annotation (Placement(transformation(
434434
extent={{-10,-10},{10,10}},
435435
rotation=90,
436436
origin={110,-142})));
@@ -448,15 +448,14 @@ model CampusGridA "Microgrid model for university campus A"
448448
t1=1000,
449449
t2=1001)
450450
annotation (Placement(transformation(extent={{-48,-66},{-36,-54}})));
451-
Electrical.Machines.PSSE.GENCLS UTILITY(
451+
Electrical.Machines.PSSE.GENCLS UTILITY(
452452
V_b=69000,
453453
P_0=pf.powerflow.machines.PG1,
454454
Q_0=pf.powerflow.machines.QG1,
455455
v_0=pf.powerflow.bus.V1,
456456
angle_0=pf.powerflow.bus.A1,
457457
R_a=0) annotation (Placement(transformation(
458458
extent={{-10,-10},{10,10}},
459-
rotation=0,
460459
origin={-30,190})));
461460
Electrical.Events.Breaker BreakerMicrogrid(
462461
enableTrigger=false,
@@ -603,20 +602,19 @@ equation
603602
-40},{-80,-40},{-80,-32}}, color={0,0,255}));
604603
connect(UTILITY.p, BreakerMicrogrid.r)
605604
annotation (Line(points={{-20,190},{0,190},{0,186}}, color={0,0,255}));
606-
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
607-
{100,100}})), Diagram(coordinateSystem(
605+
annotation ( Diagram(coordinateSystem(
608606
preserveAspectRatio=false, extent={{-160,-200},{160,220}})),
609607
experiment(
610608
StopTime=15,
611609
__Dymola_NumberOfIntervals=1000,
612610
Tolerance=1e-06,
613611
__Dymola_Algorithm="Dassl"),
614612
Documentation(info="<html>
615-
<p> University Campus A microgrid is located in Texas and is connected to the local utility through four 69kV feeder.
616-
The utility bus voltage level is reduced to 12kV through four step-down transformers, namely T1 through T4.
613+
<p> University Campus A microgrid is located in Texas and is connected to the local utility through four 69kV feeder.
614+
The utility bus voltage level is reduced to 12kV through four step-down transformers, namely T1 through T4.
617615
The microgrid also contains a 4.16kV portion in bus B15, stepped down from 12kV to 4.16kV through transformers T5, and T6.
618616
The university campus microgrid is powered by two combustion turbo generators (CTs) and four steam turbo generators (STs). The two oldest steam turbine generation units rarely operate, typically online for a few days a year in extreme load conditions.
619-
For that reason, the model contains two CTs and two STs, producing power at 12kV each.
617+
For that reason, the model contains two CTs and two STs, producing power at 12kV each.
620618
The maximum amount of power that the combined generation units can produce is approximately 127MW. </p>
621619
</html>"));
622620
end CampusGridA;

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/CTG1.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ model CTG1 "SMIB test model for CTG1"
1818
v_0=powerFlow.powerflow.bus.v1,
1919
angle_0=powerFlow.powerflow.bus.A1,
2020
displayPF=true)
21-
annotation (Placement(transformation(rotation=0, extent={{-66,-10},{-46,10}})),
21+
annotation (Placement(transformation(extent={{-66,-10},{-46,10}})),
2222
choicesAllMatching=true);
2323
GUnitTest.PfDataSMIB.PowerFlow powerFlow(redeclare record PowerFlow =
2424
OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.GUnitTest.PfDataSMIB.PfCTG1)

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/CTG2.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ model CTG2 "SMIB test model for CTG2"
1717
Q_0=powerFlow.powerflow.machines.QG1,
1818
v_0=powerFlow.powerflow.bus.v1,
1919
angle_0=powerFlow.powerflow.bus.A1,
20-
displayPF=true) annotation (Placement(transformation(rotation=0, extent={{-66,
20+
displayPF=true) annotation (Placement(transformation(extent={{-66,
2121
-10},{-46,10}})));
2222
GUnitTest.PfDataSMIB.PowerFlow powerFlow(redeclare record PowerFlow =
2323
GUnitTest.PfDataSMIB.PfCTG2)

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/PfDataSMIB/LoadData.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ package LoadData "Records with power flow solutions for loads"
1313
end LoadTemplate;
1414

1515
record PfLoadCTG1 "Record for power flow solutions in loads - CTG1"
16-
extends LoadTemplate( PL1=1e06*(24.999963726394313), QL1=1e06*(4.999871114142722));
16+
extends LoadTemplate( PL1=1e06*(24.999963726394313), QL1=1e06*(4.999871114142722));
1717

1818
// Load: '3_1'
1919

2020
end PfLoadCTG1;
2121

2222
record PfLoadCTG2 "Record for power flow solutions in loads - CTG2"
23-
extends LoadTemplate( PL1=1e06*(19.99998553308777), QL1=1e06*(3.999947489386742));
23+
extends LoadTemplate( PL1=1e06*(19.99998553308777), QL1=1e06*(3.999947489386742));
2424

2525
// Load: '3_1'
2626

2727
end PfLoadCTG2;
2828

2929
record PfLoadSTGx
3030
"Record for power flow solutions in loads - STGs 1 and 2"
31-
extends LoadTemplate( PL1=1e06*(15.999994571217577), QL1=1e06*(3.1999826291098503));
31+
extends LoadTemplate( PL1=1e06*(15.999994571217577), QL1=1e06*(3.1999826291098503));
3232

3333
// Load: '3_1'
3434

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/PfDataSMIB/PfCTG1.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ record PfCTG1 "Record for power flow solutions - CTG1"
33
extends PowerFlowTemplate;
44

55
replaceable record Bus =
6-
BusData.PfBusCTG1 constrainedby BusData.BusTemplate
6+
BusData.PfBusCTG1 constrainedby BusData.BusTemplate
77
"Bus power flow results";
88
Bus bus;
99

1010
replaceable record Loads =
11-
LoadData.PfLoadCTG1 constrainedby LoadData.LoadTemplate
11+
LoadData.PfLoadCTG1 constrainedby LoadData.LoadTemplate
1212
"Loads power flow results";
1313
Loads loads;
1414

1515
replaceable record Machines =
16-
MachineData.PfMachineCTG1 constrainedby MachineData.MachineTemplate
16+
MachineData.PfMachineCTG1 constrainedby MachineData.MachineTemplate
1717
"Machine power flow results";
1818
Machines machines;
1919

2020
replaceable record Trafos =
21-
TrafoData.PfTrafoCTG1 constrainedby TrafoData.TrafoTemplate
21+
TrafoData.PfTrafoCTG1 constrainedby TrafoData.TrafoTemplate
2222
"Trafos power flow results";
2323
Trafos trafos;
2424

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/PfDataSMIB/PfCTG2.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ record PfCTG2 "Record for power flow solutions - CTG2"
33
extends PowerFlowTemplate;
44

55
replaceable record Bus =
6-
BusData.PfBusCTG2 constrainedby BusData.BusTemplate
6+
BusData.PfBusCTG2 constrainedby BusData.BusTemplate
77
"Bus power flow results";
88
Bus bus;
99

1010
replaceable record Loads =
11-
LoadData.PfLoadCTG2 constrainedby LoadData.LoadTemplate
11+
LoadData.PfLoadCTG2 constrainedby LoadData.LoadTemplate
1212
"Loads power flow results";
1313
Loads loads;
1414

1515
replaceable record Machines =
16-
MachineData.PfMachineCTG2 constrainedby MachineData.MachineTemplate
16+
MachineData.PfMachineCTG2 constrainedby MachineData.MachineTemplate
1717
"Machine power flow results";
1818
Machines machines;
1919

2020
replaceable record Trafos =
21-
TrafoData.PfTrafoCTG2 constrainedby TrafoData.TrafoTemplate
21+
TrafoData.PfTrafoCTG2 constrainedby TrafoData.TrafoTemplate
2222
"Trafos power flow results";
2323
Trafos trafos;
2424

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/PfDataSMIB/PfSTGx.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ record PfSTGx "Record for power flow solutions - Pload = 50 MW"
33
extends PowerFlowTemplate;
44

55
replaceable record Bus =
6-
BusData.PfBusSTGx constrainedby BusData.BusTemplate
6+
BusData.PfBusSTGx constrainedby BusData.BusTemplate
77
"Bus power flow results";
88
Bus bus;
99

1010
replaceable record Loads =
11-
LoadData.PfLoadSTGx constrainedby LoadData.LoadTemplate
11+
LoadData.PfLoadSTGx constrainedby LoadData.LoadTemplate
1212
"Loads power flow results";
1313
Loads loads;
1414

1515
replaceable record Machines =
16-
MachineData.PfMachineSTGx constrainedby MachineData.MachineTemplate
16+
MachineData.PfMachineSTGx constrainedby MachineData.MachineTemplate
1717
"Machine power flow results";
1818
Machines machines;
1919

2020
replaceable record Trafos =
21-
TrafoData.PfTrafoSTGx constrainedby TrafoData.TrafoTemplate
21+
TrafoData.PfTrafoSTGx constrainedby TrafoData.TrafoTemplate
2222
"Trafos power flow results";
2323
Trafos trafos;
2424

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/STG1.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ model STG1 "SMIB test model for STG1"
1717
Q_0=powerFlow.powerflow.machines.QG1,
1818
v_0=powerFlow.powerflow.bus.v1,
1919
angle_0=powerFlow.powerflow.bus.A1,
20-
displayPF=true) annotation (Placement(transformation(rotation=0, extent={{-66,
20+
displayPF=true) annotation (Placement(transformation(extent={{-66,
2121
-10},{-46,10}})));
2222
GUnitTest.PfDataSMIB.PowerFlow powerFlow(redeclare record PowerFlow =
2323
GUnitTest.PfDataSMIB.PfSTGx)

OpenIPSL/Examples/Microgrids/UniversityCampus/CampusA/GUnitTest/STG2.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ model STG2 "SMIB test model for STG2"
1717
Q_0=powerFlow.powerflow.machines.QG1,
1818
v_0=powerFlow.powerflow.bus.v1,
1919
angle_0=powerFlow.powerflow.bus.A1,
20-
displayPF=true) annotation (Placement(transformation(rotation=0, extent={{-66,
20+
displayPF=true) annotation (Placement(transformation(extent={{-66,
2121
-10},{-46,10}})));
2222
GUnitTest.PfDataSMIB.PowerFlow powerFlow(redeclare record PowerFlow =
2323
GUnitTest.PfDataSMIB.PfSTGx)

0 commit comments

Comments
 (0)