Additional simulation using Nov 22 Service Data
This commit is contained in:
parent
30da7be9fd
commit
91c0691ad6
16 changed files with 95 additions and 40 deletions
43
Battery.py
43
Battery.py
|
|
@ -382,7 +382,7 @@ class Battery:
|
||||||
wall_lower.update_bc(T_oven=T_oven)
|
wall_lower.update_bc(T_oven=T_oven)
|
||||||
wall_upper.update_bc(T_oven=T_oven)
|
wall_upper.update_bc(T_oven=T_oven)
|
||||||
|
|
||||||
with Pool(32) as pool:
|
with Pool(12) as pool:
|
||||||
wall_sln = pool.starmap(wall_solve_wrapper, [((dt*60*60), w) for w in self.walls_0+self.walls_1])
|
wall_sln = pool.starmap(wall_solve_wrapper, [((dt*60*60), w) for w in self.walls_0+self.walls_1])
|
||||||
|
|
||||||
# wall_lower.solve(dt * 60 * 60) # convert hours to seconds
|
# wall_lower.solve(dt * 60 * 60) # convert hours to seconds
|
||||||
|
|
@ -553,48 +553,13 @@ if __name__ == "__main__":
|
||||||
gas_in_state = gas.TPX
|
gas_in_state = gas.TPX
|
||||||
|
|
||||||
# Time(Hours) - GJ/rev
|
# Time(Hours) - GJ/rev
|
||||||
sample_program = np.array('''\
|
sample_program = np.array(open('sample_heat_221128_3A.txt').read().split(), dtype=np.double).reshape((-1,2))
|
||||||
-3 81
|
|
||||||
0 81
|
|
||||||
0 69.61621622
|
|
||||||
3.5 69.61621622
|
|
||||||
3.5 58.83157895
|
|
||||||
7 58.83157895
|
|
||||||
7 48.6
|
|
||||||
10.5 48.6
|
|
||||||
10.5 42.039
|
|
||||||
14.5 42.039
|
|
||||||
14.5 38.88
|
|
||||||
24.5 38.88
|
|
||||||
24.5 42.039
|
|
||||||
27.75 42.039
|
|
||||||
27.75 48.6
|
|
||||||
30.35 48.6
|
|
||||||
30.35 58.83157895
|
|
||||||
32.43 58.83157895
|
|
||||||
32.43 69.61621622
|
|
||||||
34.094 69.61621622
|
|
||||||
34.094 81
|
|
||||||
36.46688136 81
|
|
||||||
36.46688136 72.9
|
|
||||||
39.46688136 72.9
|
|
||||||
39.46688136 67.23
|
|
||||||
42.46688136 67.23
|
|
||||||
42.46688136 62.37
|
|
||||||
47.46688136 62.37
|
|
||||||
47.46688136 67.23
|
|
||||||
50.46688136 67.23
|
|
||||||
50.46688136 72.9
|
|
||||||
53.46688136 72.9
|
|
||||||
53.46688136 81
|
|
||||||
56.46688136 81
|
|
||||||
'''.split(), dtype=np.double).reshape((-1,2))
|
|
||||||
|
|
||||||
heating_plan = HeatSchedule(*sample_program.T)
|
heating_plan = HeatSchedule(*sample_program.T)
|
||||||
charging_plan = ChargeSchedule( 81, 9, 9, 1e-12, 24+13, 3, 1e-12 )
|
charging_plan = ChargeSchedule( 82, 9, 13, 1e-12, 9+13+18, 4, 1e-12 )
|
||||||
n_doors = 66
|
n_doors = 66
|
||||||
|
|
||||||
load_state = True
|
load_state = False
|
||||||
bat3A = Battery("3A", n_doors, heating_plan, charging_plan, gas_in_state, hv, init_from_file=load_state)
|
bat3A = Battery("3A", n_doors, heating_plan, charging_plan, gas_in_state, hv, init_from_file=load_state)
|
||||||
|
|
||||||
if not load_state:
|
if not load_state:
|
||||||
|
|
|
||||||
14
Heat_History_221128_3A.csv
Normal file
14
Heat_History_221128_3A.csv
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
Date Time Q
|
||||||
|
2022-11-27 20:00 85
|
||||||
|
2022-11-28 0:00 75
|
||||||
|
2022-11-28 2:00 65
|
||||||
|
2022-11-28 4:00 55
|
||||||
|
2022-11-28 19:00 50
|
||||||
|
2022-11-29 4:00 60
|
||||||
|
2022-11-29 8:00 55
|
||||||
|
2022-11-29 15:00 65
|
||||||
|
2022-11-29 19:40 75
|
||||||
|
2022-11-29 21:40 85
|
||||||
|
2022-11-30 0:40 65
|
||||||
|
2022-11-30 4:40 62.5
|
||||||
|
2022-11-30 5:40 85
|
||||||
|
8
Heat_Plan_221128_3A-1.csv
Normal file
8
Heat_Plan_221128_3A-1.csv
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
Date Time Q
|
||||||
|
2022-11-27 20:00 85
|
||||||
|
2022-11-28 0:00 75
|
||||||
|
2022-11-28 2:00 65
|
||||||
|
2022-11-28 4:00 55
|
||||||
|
2022-11-29 13:00 65
|
||||||
|
2022-11-29 18:00 75
|
||||||
|
2022-11-30 00:00 85
|
||||||
|
11
Heat_Plan_221128_3A-2.csv
Normal file
11
Heat_Plan_221128_3A-2.csv
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
Date Time Q
|
||||||
|
2022-11-27 20:00 85
|
||||||
|
2022-11-28 0:00 75
|
||||||
|
2022-11-28 2:00 65
|
||||||
|
2022-11-28 4:00 55
|
||||||
|
2022-11-28 6:00 50
|
||||||
|
2022-11-28 19:00 60
|
||||||
|
2022-11-29 8:00 55
|
||||||
|
2022-11-29 13:00 65
|
||||||
|
2022-11-29 18:00 75
|
||||||
|
2022-11-30 00:00 85
|
||||||
|
|
|
@ -6,4 +6,4 @@ Date Time T
|
||||||
2014-02-05 20:20:00 1215
|
2014-02-05 20:20:00 1215
|
||||||
2014-02-06 9:20:00 1263
|
2014-02-06 9:20:00 1263
|
||||||
2014-02-06 15:20:00 1230
|
2014-02-06 15:20:00 1230
|
||||||
2014-02-06 24:20:00 1267
|
2014-02-07 00:20:00 1267
|
||||||
|
BIN
result-221128-3A/coke.history
Normal file
BIN
result-221128-3A/coke.history
Normal file
Binary file not shown.
BIN
result-221128-3A/coke.history2
Normal file
BIN
result-221128-3A/coke.history2
Normal file
Binary file not shown.
BIN
result-221128-3A/gas.history
Normal file
BIN
result-221128-3A/gas.history
Normal file
Binary file not shown.
BIN
result-221128-3A/gas.history2
Normal file
BIN
result-221128-3A/gas.history2
Normal file
Binary file not shown.
BIN
result-221128-3A/oven.state
Normal file
BIN
result-221128-3A/oven.state
Normal file
Binary file not shown.
BIN
result-221128-3A/oven.state2
Normal file
BIN
result-221128-3A/oven.state2
Normal file
Binary file not shown.
BIN
result-221128-3A/wall.history
Normal file
BIN
result-221128-3A/wall.history
Normal file
Binary file not shown.
BIN
result-221128-3A/wall.history2
Normal file
BIN
result-221128-3A/wall.history2
Normal file
Binary file not shown.
13
sample_heat_221128_3A-Plan1.txt
Normal file
13
sample_heat_221128_3A-Plan1.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
0.0 85.0
|
||||||
|
4.0 85.0
|
||||||
|
4.0 75.0
|
||||||
|
6.0 75.0
|
||||||
|
6.0 65.0
|
||||||
|
8.0 65.0
|
||||||
|
8.0 55.0
|
||||||
|
41.0 55.0
|
||||||
|
41.0 65.0
|
||||||
|
46.0 65.0
|
||||||
|
46.0 75.0
|
||||||
|
52.0 75.0
|
||||||
|
52.0 85.0
|
||||||
19
sample_heat_221128_3A-Plan2.txt
Normal file
19
sample_heat_221128_3A-Plan2.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
0.0 85.0
|
||||||
|
4.0 85.0
|
||||||
|
4.0 75.0
|
||||||
|
6.0 75.0
|
||||||
|
6.0 65.0
|
||||||
|
8.0 65.0
|
||||||
|
8.0 55.0
|
||||||
|
10.0 55.0
|
||||||
|
10.0 50.0
|
||||||
|
23.0 50.0
|
||||||
|
23.0 60.0
|
||||||
|
36.0 60.0
|
||||||
|
36.0 55.0
|
||||||
|
41.0 55.0
|
||||||
|
41.0 65.0
|
||||||
|
46.0 65.0
|
||||||
|
46.0 75.0
|
||||||
|
52.0 75.0
|
||||||
|
52.0 85.0
|
||||||
25
sample_heat_221128_3A.txt
Normal file
25
sample_heat_221128_3A.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
0.0 85.0
|
||||||
|
4.0 85.0
|
||||||
|
4.0 75.0
|
||||||
|
6.0 75.0
|
||||||
|
6.0 65.0
|
||||||
|
8.0 65.0
|
||||||
|
8.0 55.0
|
||||||
|
23.0 55.0
|
||||||
|
23.0 50.0
|
||||||
|
32.0 50.0
|
||||||
|
32.0 60.0
|
||||||
|
36.0 60.0
|
||||||
|
36.0 55.0
|
||||||
|
43.0 55.0
|
||||||
|
43.0 65.0
|
||||||
|
47.666666666666664 65.0
|
||||||
|
47.666666666666664 75.0
|
||||||
|
49.666666666666664 75.0
|
||||||
|
49.666666666666664 85.0
|
||||||
|
52.666666666666664 85.0
|
||||||
|
52.666666666666664 65.0
|
||||||
|
56.666666666666664 65.0
|
||||||
|
56.666666666666664 62.5
|
||||||
|
57.666666666666664 62.5
|
||||||
|
57.666666666666664 85.0
|
||||||
Loading…
Add table
Reference in a new issue