Project 1 Plots

Last updated: September 9th, 20192019-09-09Project preview

DESTEST BUILDING SIMULATION COMPARISON

This notebook can be used to quickly compare your simulation results of the DESTEST building simulation

Requirements

There are no special requirements on your personal setup as this runs in the cloud, but for a direct and simple use, you need to provide your simulation results in the format explained here.

How to use it

If you want to use the comparison and plotting tool with your simulation results, you need to proceed with the following steps:

1. Upload your result.csv file in the input_data folder by change into the folder and upload them or simply drag and drop the file into it
2. Run the next cell with the **run** button above
3. Change the settings in the last cell to match what you want to plot, more explanation about the exact parameters will be explained during use of the notebook
4. Download output.zip for the plots or change directory to the output folder to investigate the plots
In [1]:
# Created November 2018
# Ina De Jaeger /Enora Garreau / Michael Mans / IBPSA Project 1 Workpackage 3

import functions
import os
import zipfile

Plotting and Comparison parameters

In the notebook cell below, you'll find a few parameters you can change for getting different plots

Currently, you can only compare libraries OR typologies OR ids OR insulation standards OR occupants. What you want to compare, needs to be None. The other parameters need to be fixed. You can choose which of e.g. the libraries to compare by specifying them as a list in the "selection" variable. E.g. not all libraries but only IDEAS and DIMOSIM or not all occupants but only 1, 2, 3

library :

String or list
"IDEAS", "Buildings", "AixLib", "BuildingSystems", "IDAICE", "DIMOSIM", "Trnsys" or a list of them e.g. ["IDEAS", " Buildings"]
In [2]:
inputDir = os.path.abspath("input_data")
outputDir = os.path.abspath("output")

# GENERAL CODE Using this script, you can create the plots you like. You have to
# choose what you'd like to compare

# Choose from: IDEAS, Buildings, AixLib, BuildingSystems, IDAICE, DIMOSIM, Trnsys
library = None

# Choose from: SFD
buildingTypology = "SFD"

# Choose from: 1
buildingID = "1"

# Choose from: 1980s
insulationStandard = "1980s"

# Choose from: ISO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
occupant = "ISO"

# ['1', '5', '9', '13']  # If you only want certain variants, add here
selection = None

functions.compare_results(
    inputDir=inputDir,
    outputDir=outputDir,
    library=library,
    buildingTypology=buildingTypology,
    buildingID=buildingID,
    insulationStandard=insulationStandard,
    occupant=occupant,
    selection=selection,
)

# maybe we should provide more examples here?

print("IBSPA Project 1: That's it! :)")

print("Now we zip for easy download")

zipf = zipfile.ZipFile('output.zip', 'w', zipfile.ZIP_DEFLATED)
functions.zipdir('output/', zipf)
zipf.close()
['IDEAS_SFD_1_1980s_1.csv', 'DIMOSIM_SFD_1_1980s_1.csv', 'IDEAS_SFD_1_1980s_ISO.csv', 'DIMOSIM_SFD_1_1980s_ISO.csv', 'Buildings_SFD_1_1980s_ISO.csv', 'AixLib_SFD_1_1980s_ISO.csv']
          Qheating_building_W  Tair_dayzone_K  Tair_nightzone_K
Datetime                                                       
0.0              12429.723633      277.906708        278.054504
600.0            16572.964844      280.197357        280.501404
1200.0           16572.964844      281.747284        282.265198
1800.0           16572.964844      282.739349        283.495667
2400.0           13793.128906      283.380554        284.107727
          Qheating_building_W  Tair_dayzone_K  Tair_nightzone_K
Datetime                                                       
0.0                3219.72400      291.734090        285.245762
600.0              2980.69516      291.635226        285.148868
1200.0             3044.32616      291.642233        285.155765
1800.0             3013.75060      291.634644        285.148295
2400.0             3018.75650      291.635691        285.149329
          Qheating_building_W  Tair_dayzone_K  Tair_nightzone_K
Datetime                                                       
0                 6036.634766      291.131165        293.124603
600               5119.908203      291.134522        293.127960
1200              4960.490234      291.135071        293.128571
1800              4856.508789      291.135376        293.129028
2400              4785.783691      291.135559        293.129364
          Qheating_building_W  Tair_dayzone_K  Tair_nightzone_K
Datetime                                                       
0                   5978.2674       6251.4174         6524.5674
600                 5726.4622       5999.6122         6272.7622
1200                5749.6847       6022.8347         6295.9847
1800                5709.5277       5982.6777         6255.8277
2400                5692.1157       5965.2657         6238.4157
          Tair_dayzone_K  Tair_nightzone_K  Qheating_building_W
Datetime                                                       
0              291.13670         293.10830             7481.268
900            291.14060         293.11430             6137.597
1800           291.14078         293.11514             5995.392
2700           291.14075         293.11578             5911.599
3600           291.14070         293.11633             5844.983
          Tair_dayzone_K  Tair_nightzone_K  Qheating_building_W
Datetime                                                       
0             291.149994        293.150055          7631.403320
900           291.149994        293.150055          5512.914856
1800          291.149994        293.150055          5452.727295
2700          291.149994        293.150055          5394.722412
3600          291.149994        293.150055          5339.459656
Calculating and plotting numbers
IDEAS
DIMOSIM
Buildings
AixLib
Tair_dayzone_overheating_Kh
Tair_dayzone_mean_degC
Tair_dayzone_min_degC
Tair_dayzone_max_degC
Tair_nightzone_overheating_Kh
Tair_nightzone_mean_degC
Tair_nightzone_min_degC
Tair_nightzone_max_degC
Creating profile plots
March
dayzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
March
nightzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
June
dayzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
June
nightzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
September
dayzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
September
nightzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
December
dayzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
December
nightzone
     IDEAS
     DIMOSIM
     Buildings
     AixLib
Creating LDC plot
IDEAS
DIMOSIM
Buildings
AixLib
IBSPA Project 1: That's it! :)
Now we zip for easy download
In [ ]:
 
Notebooks AI
Notebooks AI Profile20060