forked from arras-energy/gridlabd-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui_example_4.glm
67 lines (57 loc) · 1004 Bytes
/
gui_example_4.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
// gui example 3
#set verbose=1
#set server_quit_on_close=0
#set run_realtime=0
#define dt=600
#define AVG_SF=2500
#define STD_SF=500
#define NHOUSES=10
#define STATE=Washington
#define CITY=Seattle
#define START="2001-01-01 0:00:00 PST"
#define STOP="2001-01-07 0:00:00 PST"
gui {
page {
source "gui_example_4-1.html";
wait "continue";
}
}
clock {
timezone PST8PDT;
starttime ${START};
stoptime ${STOP};
}
module tape {
csv_data_only 1;
csv_keep_clean 1;
}
module climate;
object climate {
tmyfile "${STATE}/${CITY}.tmy2";
interpolate QUADRATIC;
object recorder {
property "temperature";
file "outdoor.csv";
interval ${dt};
};
}
module residential {
implicit_enduses LIGHTS;
}
object house:..${NHOUSES} {
floor_area random.normal(${AVG_SF},${STD_SF});
cooling_setpoint 72;
heating_setpoint 68;
}
object collector {
group "class=house";
property "avg(air_temperature)";
interval ${dt};
file "indoor.csv";
}
gui {
page {
source "gui_example_4.html";
hold;
}
}