-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
44 lines (35 loc) · 1.06 KB
/
constants.py
File metadata and controls
44 lines (35 loc) · 1.06 KB
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
"""Constants shared between all scripts."""
#For cruise control
# Maximum controller response
MAX_RESPONSE = 1500.0#N
# Minimum controller response
MIN_RESPONSE = -1500.0#N
# Minimum allowed signal to the controlled process
MIN_SIGNAL = -10#V
# Maximum allowed signal to the controlled process
MAX_SIGNAL = 10#V
#For refrigerator
# Minimum worked performed by refrigerator
MIN_WORK = -2000#W
# Maximum worked performed by refrigerator
MAX_WORK = 50#W
# Mass of the controlled object
MASS = 1200#kg
# Resistance of the environment
RESISTANCE = 0.75
# Simulation sampling rate
SAMPLING = 0.1#s
# Simulation time
SIMULATION_TIME = 100#s
# Filepath to database with results
DB_FILEPATH = "database.db"
# Number of simulations displayed on the result graph
NUM_SIMULATIONS = 8
# Mass of water cooled in refrigerator
WATER_MASS = 0.15 #m [kg]
# Specific heat of water
WATER_SPECIFIC_HEAT = 3.33 * 105 #c [J/kg]
# Temperature of hot reservoir
RESERVOIR_HOT = 293 #T_h [K]
# Temperature of cold reservoir
RESERVOIR_COLD = 273 #T_l [K]