You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Department of Industrial Engineering (DIEF), University of Florence (UNIFI), Italy
9
9
10
10
## Overview
@@ -25,17 +25,22 @@ Models of different technologies are avialable and still under development to in
25
25
- Boilers (ng, ele or H2)
26
26
- CHP (combined heat and power)
27
27
28
-
### MESS needs the hourly load profiles as input as a .csv file
28
+
### MESS needs the load profiles as input as a .csv file
29
29
Depending on the type of meter installed, these data is in some cases made available by the electricity/gas supplier, in others it must be requested, while sometimes it cannot be obtained. In the latter case, specific programmes are required to generate such profiles in the specific .csv format needed as one of the program inputs. There are many programmes available online, the authors recommend the following:\
Simulation timestep can vary from 1 to 60 minutes. The time horizon from 1 year to as many years as you want.
36
+
33
37
### Requirements
34
38
The model is developed in Python 3.9, and requires the following libraries:
35
39
- numpy
36
40
- pandas
37
41
- os
38
-
- pickle (results are saved in .pickle)
42
+
- pickle (results can be saved in .pickle)
43
+
- csv (results can be saved in .pickle)
39
44
- json (input files are .json)
40
45
- pvlib (used to download PV production series and weather data based on typical meteorological year)
41
46
- matplotlib (used in post_process)
@@ -44,14 +49,23 @@ A less up-to-date but fully functional and documented fortran version is also av
44
49
https://github.com/pielube/MESS-Fortran
45
50
46
51
## Quick start
47
-
To get started, download the repository and simply run the "run_test.py" script
52
+
To get started, download the repository.
53
+
Three examples analysis are available:
54
+
- "run_test_1" A small energy community composed by two consumers and one prosumer with PV and battery. A sensisivety analysi is also carried out.
55
+
- "run_test_2" A residential building replaces the gas boiler with a heat pump
56
+
- "run_test_3" Supercool hydrogen things
57
+
Choose one of these, read it and press run!
48
58
49
59
### Input files
50
60
You can modify them from a python interface or simply from notepad. The "Input_test" folder contains a demonstration case study.
51
61
- general.json defines the general input. More details can be found in rec.py prologue comments.
52
-
-structure.json defines the structure of the case study. Here you can define all the locations to consider, each technology inside the locations and technology's parameters. More detalis can be found in rec.py and location.py comments to the code.
62
+
-studycase.json defines the structure of the case study. Here you can define all the locations to consider, each technology inside the locations and technology's parameters. More detalis can be found in rec.py and location.py comments to the code.
53
63
- refcase.json This file has the same structure of structure.json and defines the "buiseness as usual" case, which is used as a reference case for calculating the cash flows of the study case and performing the economic assessment.
54
-
- economics.json defines economic parameters. More details can be found in the comments of economics.py
64
+
- energy_market.json defines economic parameters. More details can be found in the comments of economics.py
65
+
- tech_cost.json defines economic parameters. More details can be found in the comments of economics.py
66
+
67
+
### Output files
68
+
Results are saved in both .pkl and .csv
55
69
56
70
### How to continue
57
71
We suggest you to create your own run_dev.py, input_dev/ and post_process_dev.py and to work on them instead of modifying the existing file used as initial test.
Copy file name to clipboardexpand all lines: core/constants.py
+11-4
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
This module contains:
5
5
- Main phisical constants
6
-
- Fluid properties
6
+
- Fluid properties
7
7
8
8
For the sake of non-ambiguity, all technologies implement the same values by referring to this module
9
9
@@ -23,6 +23,8 @@
23
23
AMBTEMP=288# [K] Standard ambient temperature - 15 °C
24
24
GIBBS=-237.17# [kJ/mol] Gibbs free energy @ T = 25°C p = 101325 Pa
25
25
R_H2=4124.2# [J/(kgK)] H2 characteristic constant
26
+
kWh2kJ=3600# [kJ/kWh] Conversion factor from kWh to kJ
27
+
26
28
27
29
#%%
28
30
@@ -53,7 +55,7 @@
53
55
H2ONDENSITY=999.8437620819061# [kg/Nm^3] Water density at Normal conditions (T = 0°C, P = 101325 Pa) -> PropsSI('D', 'T', 273.16, 'P', 101325, 'Water')
54
56
H2OSDENSITY=999.1026214670995# [kg/Sm^3] Water density at Standard conditions (T = 15°C, P = 101325 Pa) -> PropsSI('D', 'T', 288.15, 'P', 101325, 'Water')
55
57
H2OADENSITY=998.2071504679284# [kg/Sm^3] Water density at 20°C (T = 20°C, P = 101325 Pa) -> PropsSI('D', 'T', 293.15, 'P', 101325, 'Water')
56
-
CP_WATER=4188.460622611614# [J/kgK] Water Mass specific constant pressure specific heat
58
+
CP_WATER=4.188460622611614# [kJ/kgK] Water Mass specific constant pressure specific heat
57
59
H2OMOL_S_E=188.8# [J/K*mol] Water Standard Entropy - gaseous phase
58
60
59
61
'Natural Gas'
@@ -82,11 +84,16 @@
82
84
83
85
'Air'
84
86
85
-
AIRMOLMASS=28.96547# [g/mol] Air molar mass
87
+
AIRMOLMASS=28.96547e-3# [kg/mol] Air molar mass
86
88
AIRSDENSITY=1.225# [kg/Sm^3] Air density at Standard conditions (T = 15°C, P = 101325 Pa) -> PropsSI('D', 'T', 273.15, 'P', 101325, 'Air')
87
89
CP_AIR=1.0063# [kJ/kgK] Air mass specific costant pressure specific heat (T = 25°C, P = 101325 Pa)
88
90
CV_AIR=0.7178# [kJ/kgK] Air mass specific costant volume specific heat (T = 25°C, P = 101325 Pa)
89
91
90
92
'Steam'
91
93
92
-
H1_STEAM800=4159.9# [kJ/kg] Steam mass specific enthalpy @ T = 800°C, P = 116000 Pa
94
+
H1_STEAM800=4159.9# [kJ/kg] Steam mass specific enthalpy @ T = 800°C, P = 116000 Pa
0 commit comments