-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.glm
331 lines (295 loc) · 6.42 KB
/
model.glm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
//
// Electrification study simulation model
// Copyright (C) 2016, Stanford University
// Author: aivanova@slac.stanford.edu
//
///////////////////////////////////////////////////////
//
// Read the configuration file for this system
// Assumes the model is run from parent of model folder
//
// For non-RT simulation
//#include "config/default.glm"
//#define CONFIGFILE=config/default.glm
//#ifexist config/local.glm
//#include "config/local.glm"
//#set CONFIGFILE=config/local.glm
//#endif
//#set suppress_repeat_messages=TRUE
//#ifdef TIMEZONE
//clock {
// timezone ${TIMEZONE};
//#ifdef STARTTIME
// starttime ${STARTTIME};
//#endif
//#ifdef STOPTIME
// stoptime ${STOPTIME};
//#endif
//}
//#else
//#error TIMEZONE is not specified in ${CONFIGFILE}
//#endif // TIMEZONE
// For RT simulation
#define TIMEZONE=${TIMEZONE:-US/CA/Los Angeles}
#define WEATHER=${WEATHER:-722540TYA.tmy3}
#define SOLAR=on
#set randomseed=5
module gridlabd_functions;
///////////////////////////////////////////////////////
//
// WEATHER
//
///////////////////////////////////////////////////////
#ifexist data/${WEATHER}
module climate;
object climate {
name weather;
tmyfile "data/${WEATHER}";
interpolate QUADRATIC;
}
#else
#error WEATHER is not specified in ${CONFIGFILE}
#endif // exist WEATHER
#ifdef SOLAR
module generators;
#endif // SOLAR
module powerflow{
solver_method FBS;
}
module tape;
module residential{
implicit_enduses REFRIGERATOR|LIGHTS|PLUGS|WATERHEATER|RANGE|DRYER|CLOTHESWASHER|FREEZER|MICROWAVE|DISHWASHER;
implicit_enduse_source EIA2015;
}
class player {
double value;
}
object player {
name player_0;
file glm_generation_Austin/players_Austin/ps_3039_2016.player;
}
object player {
name player_1;
file glm_generation_Austin/players_Austin/ps_93_2016.player;
}
object player {
name player_2;
file glm_generation_Austin/players_Austin/ps_503_2016.player;
}
object player {
name player_3;
file glm_generation_Austin/players_Austin/ps_86_2016.player;
}
object player {
name player_4;
file glm_generation_Austin/players_Austin/ps_187_2016.player;
}
object player {
name player_5;
file glm_generation_Austin/players_Austin/ps_1718_2016.player;
}
object meter {
name node_149;
nominal_voltage 24.941kV;
phases ABCN;
bustype SWING;
object recorder {
//property measured_real_power[kW], measured_reactive_power[kVAr];
property measured_real_power, measured_reactive_power;
file TESS/TESS_BC/load_node_149.csv;
interval 1min;
};
}
object meter {
name feeder_node;
nominal_voltage 24.941kV;
phases ABCN;
}
object overhead_line {
name main_line;
phases ABCN;
from feeder_node;
to main_node;
length 3 mile;
configuration lc301;
}
object regulator {
name main_reg;
phases ABCN;
from node_149;
to feeder_node;
configuration rc502;
sense_node main_node;
}
object regulator_configuration {
name rc502;
connect_type WYE_WYE;
band_center 2400.000;
band_width 40.0;
time_delay 30.0;
raise_taps 16;
lower_taps 16;
current_transducer_ratio 50;
power_transducer_ratio 20;
compensator_r_setting_A 0.4;
compensator_x_setting_A 0.4;
CT_phase "A";
PT_phase "A";
regulation 0.10;
Control OUTPUT_VOLTAGE;
Type A;
tap_pos_A -1;
tap_pos_B 0;
tap_pos_C 0;
}
//Line configurations
//ABCN
object overhead_line_conductor {
name olc301c; //336,400 26/7 ACSR
geometric_mean_radius 0.0244;
resistance 0.306;
diameter 0.721;
}
object overhead_line_conductor {
name olc301n; //4/0 6/1 ACSR
geometric_mean_radius 0.00814;
resistance 0.592;
diameter 0.563;
}
object line_configuration {
name lc301;
conductor_A olc301c;
conductor_B olc301c;
conductor_C olc301c;
conductor_N olc301n;
spacing ls500301;
}
//Line spacings
//ABCN
object line_spacing {
name ls500301;
distance_AB 2.5;
distance_AC 7.0;
distance_BC 4.5;
distance_CN 5.0;
distance_AN 5.65685424949;
distance_BN 4.27200187266;
distance_AE 28.0;
distance_BE 28.0;
distance_CE 28.0;
distance_NE 24.0;
}
object meter {
name main_node;
nominal_voltage 24.941kV;
phases ABCN;
}
object meter {
name main_node_A;
parent main_node;
nominal_voltage 24.941kV;
phases AN;
}
object meter {
name main_node_B;
parent main_node;
nominal_voltage 24.941kV;
phases BN;
}
object meter {
name main_node_C;
parent main_node;
nominal_voltage 24.941kV;
phases CN;
}
object transformer_configuration {
name xfmr_config_A;
connect_type SINGLE_PHASE_CENTER_TAPPED;
install_type POLETOP;
powerA_rating 1000;
primary_voltage 24.941kV;
secondary_voltage 120.000 V;
impedance 0.006+0.0136j;
}
object transformer_configuration {
name xfmr_config_B;
connect_type SINGLE_PHASE_CENTER_TAPPED;
install_type POLETOP;
powerB_rating 1000;
primary_voltage 24.941kV;
secondary_voltage 120.000 V;
impedance 0.006+0.0136j;
}
object transformer_configuration {
name xfmr_config_C;
connect_type SINGLE_PHASE_CENTER_TAPPED;
install_type POLETOP;
powerC_rating 1000;
primary_voltage 24.941kV;
secondary_voltage 120.000 V;
impedance 0.006+0.0136j;
}
global int32 SEQ_CUSTID 0;
#set allow_reinclude=true
#include using(LOADID=1,PHASE=A,COUNT=2) "house.glm"
#include using(LOADID=1,PHASE=B,COUNT=2) "house.glm"
#include using(LOADID=1,PHASE=C,COUNT=2) "house.glm"
object group_recorder {
name rec_meter_load_P;
group "class=triplex_meter";
property measured_real_power;
file TESS/TESS_BC/meter_load_P.csv;
interval 60;
}
object group_recorder {
name rec_meter_load_Q;
group "class=triplex_meter";
property measured_reactive_power;
file TESS/TESS_BC/meter_load_Q.csv;
interval 60;
}
object group_recorder {
name rec_total_load;
group "class=house";
property total_load;
file TESS/TESS_BC/total_load_all.csv;
interval 60;
}
object group_recorder {
name rec_hvac_load;
group "class=house";
property hvac_load;
file TESS/TESS_BC/hvac_load_all.csv;
interval 60;
}
object group_recorder {
name rec_T;
group "class=house";
property air_temperature;
file TESS/TESS_BC/T_all.csv;
interval 60;
}
object group_recorder {
name rec_Tm;
group "class=house";
property mass_temperature;
file TESS/TESS_BC/Tm_all.csv;
interval 60;
}
object group_recorder {
name rec_pv_infeed;
group "class=inverter";
property P_Out;
file TESS/TESS_BC/total_P_Out.csv;
interval 60;
}
//object group_recorder {
// name rec_batt_soc;
// group "class=battery";
// property state_of_charge;
// file TESS/TESS_BC/battery_SOC.csv;
// interval 60;
//}