-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Long term simulation of the field, #33
adding python scripts for calculating trajectory and long term temperature into field adjusting objective function for long term information
- Loading branch information
1 parent
9abd718
commit 8b2c9b6
Showing
6 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+109 Bytes
(100%)
pyDMPC/ControlFramework/__pycache__/Objective_Function.cpython-36.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
import pandas as pd | ||
import xlrd | ||
import scipy | ||
from scipy.integrate import simps | ||
import pickle | ||
|
||
#field temperature regarding the longterm set temperature = trajectory | ||
T_set = 285*np.ones(3*365*24) #Vorlauftemperatur ins Feld (Soll) | ||
pickle_out = open("T_set.pickle","wb") | ||
pickle.dump(T_set, pickle_out) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
import pandas as pd | ||
import xlrd | ||
import scipy | ||
from scipy.integrate import simps | ||
|
||
#Gebäudebedarf | ||
Q_need_heat = np.array([500, 600, 300, 100, 50, 10, 0, 5, 80, 250, 300, 450]) #in kWh/Monat | ||
Q_need_cold = np.array([25, 25, 110, 200, 400, 600, 650, 600, 450, 300, 150, 50]) #in kWh/Monat | ||
days = np.array([31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]) #Tage im Monat: Jan 31, Feb 28, ... | ||
cp_water = 4.186 #in kJ/(kg K) | ||
m_flow = 0.5 #kg/s | ||
|
||
#Wärmebedarf | ||
#Annahme: jeder Tag in einem Monat x hat das selbe Lastprofil und hat denselben Energiebedarf (Q_flow=konst) | ||
day_heatneed = np.array(Q_need_heat/days) #Wärmebedarf eines Tages des Monats x | ||
Q_heatflow_day = np.array(day_heatneed/24) #benötigter übertragener Wärmestrom an Warmwasserkreislauf[kW] | ||
#welche Temperaturdifferenz ist für den benötigten Wärmestrom nötig | ||
dT_heat = np.array(Q_heatflow_day/(m_flow*cp_water)) | ||
|
||
#Kältebedarf | ||
day_coldneed = np.array(Q_need_cold/days) #Wärmebedarf eines Tages des Monats x | ||
Q_coldflow_day = np.array(day_coldneed/24) #benötigter übertragener Wärmestrom an Warmwasserkreislauf[kW] | ||
#welche Temperaturdifferenz ist für den benötigten Kältestrom nötig | ||
dT_cold = np.array(Q_coldflow_day/(m_flow*cp_water)) | ||
|
||
#effektiver Wärme/Kältebedarf eines Tages eines Monats | ||
dQ_flow_day = np.array(Q_heatflow_day - Q_coldflow_day) | ||
dT = np.array(dQ_flow_day/(m_flow*cp_water)) |