-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
122 lines (98 loc) · 2.55 KB
/
config.py
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
"""
Created on Aug 3, 2015
@author: annette
@modified: Qiong
"""
####################
# Running config
####################
debug = False
# input data
dataSet = "Sample"
# dataSet = "Oist"
# sleep time between execution loops
# sleeptime = 1 => 1s of emulator = gl.acc seconds of real time
# sleeptime = 0 => run at processor speed
sleeptime = 0
# start emulator for emulating powerflow of whole physical system (PV, battery, ...)
doUpdates = True
# use individualConfig.csv file for configuring battery and PV size for each house
individualConf = True
# save indivudual status to DB (similar table as in reality)
saveIndividualToDB = False
# save cummulative summary to csv file
saveToSummaryToCSV = True
# save all the individual houses status to CSV file
saveIndividualToCSV = True
# # #################
# # # losses
# # #################
#
# #loss = a*load +c
constantSystemLoss = 17.5
#
# DCDC converter losses
DCCstLoss = 4.5
DCChargeLoss = 71
DCDischargeLoss = 55
#
# UPS battery_mode loss taken from DC
battModeLoss_a = 0.140
battModeLoss_c = 129
# UPS battery_mode loss taken from AC
transLoss_a = 0.027
transLoss_c = 57
# bypass and trans loss taken from AC
bypassModeLoss_a = 0.033
bypassModeLoss_c = 67
# AC Charge loss taken from AC
ACChargeLoss = 10 # ???
# ========== UPS SETUP ========#
UPS_TRIGGER_BATT_OFF = 30
UPS_TRIGGER_BATT_ON = 35
UPS_TRIGGER_AC_OFF = 25
UPS_TRIGGER_AC_ON = 20
####################
# System setup config
####################
# voltage
batteryVoltage = 48
# ac charge limit
ACChargeAmount = 150 # 350*2.5
# default battery size
default_batterySize = 4800.0
# PV size
default_Area = 18 * 1.2 # default Area
r = 0.19 # panel yield
pr = 0.9 # performance factor
# pv and battery size for each house (initialized in inputData)
batterySize = {}
pvc_sol_reg = {}
#######################
# runtime config
#######################
dburl = 'http://temp.com'
summaryPath = 'data/output/summary.csv'
indivLogPath = 'data/output/indivLog.csv'
b_host = "0.0.0.0"
b_port = 4390
# set_url = ":4380/remote/set?"
# Modes
modes = {
"0x0000": 'Waiting',
"0x0002": 'Heteronomy CV Discharging',
"0x0014": 'Grid Autonomy Mode',
"0x0041": 'Heteronomy CV Charging - grid current limited'
}
modesOps = {
"0x0000": 'Waiting',
"0x0002": 'Heteronomy CV',
"0x0014": 'Grid Autonomy',
"0x0041": 'Heteronomy CV'
}
modesRunning = {
"0x0000": 'off',
"0x0002": 'discharge',
"0x0014": 'discharge', # grid autonomy mode can charge and discharge but we only use it in discharging mode
"0x0041": 'charge'
}