# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3 (ipykernel)
#     language: python
#     name: python3
# ---

import pandas as pd
import matplotlib.pyplot as plt

dfs = []
dfs.append(pd.read_csv("../cache/results/ach0.csv"))
dfs.append(pd.read_csv("../cache/results/ach2.csv"))
dfs.append(pd.read_csv("../cache/results/ach4.csv"))
dfs.append(pd.read_csv("../cache/results/ach6.csv"))
dfs.append(pd.read_csv("../cache/results/novent.csv"))

temperature = []
for i in range(5):
    avg_temp= dfs[i]['MAINXGROUND:ZONE1:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE5:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE4:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE6:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE10:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE3:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE2:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE7:Zone Operative Temperature [C](Hourly:ON)']
    avg_temp+=dfs[i]['MAINXGROUND:ZONE8:Zone Operative Temperature [C](Hourly:ON)']
    
    temperature.append(avg_temp/9.0)

plt.figure(figsize=(15, 5), dpi=90)
plt.plot(temperature[0][2500:7500],color="r",label="ach0")
plt.plot(temperature[1][2500:7500],color="g",label="ach2")
plt.plot(temperature[2][2500:7500],color="b",label="ach4")
plt.plot(temperature[3][2500:7500],color="c",label="ach6")
plt.plot(temperature[4][2500:7500],color="m",label="ach6")
plt.title("AVG Operative Temperature change due to ACH value")
plt.xlabel("Time [h]")
plt.ylabel("AVG Operative Temperature [deg]")
plt.legend()
plt.grid()


plt.savefig("./figures/temp_change_ach.png")

StarcoderdataJupyterScriptsDedupFiltered