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
# 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"]
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()