Home

Awesome

EUReCA

Insert caption here

The Energy Urban Resistance Capacitance Approach provides an efficient and reliable Urban Building Energy Modeling platform, entirely developed in Python, aiming at simulating and predicting cities and urban areas energy consumption. The tool exploits a bottom-up modeling methodology, creating simple and useful dynamic building energy models.

This research project has been developed within the BETALAB research group of the University of Padua, Italy.

Python environment set up

The tool is distributed via the GitHub repository. As first step, you must create a new conda or venv environment. You can name it eureca.

conda create -n eureca python=3.9

and activate it:

conda activate eureca

Then clone the following package in a separate folder:

git clone https://github.com/BETALAB-team/EUReCA.git and install it in the same environement: pip install -e *your_path_to_the_folder/eureca-ubem*

Preparing and run a simulation

Input files

The eureca_ubem/Input folder has some examples files to run the simulation. To simulate cities energy consumption in EUReCA, some input files must be prepared:

The JSON city model

Currently, EUReCA can handle two typologies of JSON city models. The recommended methodology consists of importing buildings' geometries via semantic CityJSON files, but also 2D shapefiles, encoded in GeoJSON format, can be exploited to build up the city.

The required attributes are:

The strings in the city model's attribute table (End Use and Envelope) must match the labels of the End Uses and Envelope types listed in the Schedules.xlsx and EnvelopeTypes.xlsx.

Heating System and Cooling System must match one of the following items: List of available heating systems:

List of available cooling systems:

Input folder provides some example for the city of Padua.

Simulation

After the set up of all input files, you can run the simulation throughout a python file, as following:

import os
import time as tm


# CONFIG FILE LOADING
from eureca_building.config import load_config
load_config("path_to_your_config\\config.json")

from eureca_ubem.city import City

# SET INPUT FILES
weather_file = os.path.join(".","path_to_you_input","weather_file.epw")
schedules_file = os.path.join(".","path_to_you_input","Schedules.xlsx")
materials_file = os.path.join(".","path_to_you_input","materials_and_construction_test.xlsx")
city_model_file = os.path.join(".","path_to_you_input","citymodel.geojson")

# Creation of the City object and simulation
city_geojson = City(
    city_model=city_model_file,
    epw_weather_file=weather_file,
    end_uses_types_file=schedules_file,
    envelope_types_file=materials_file,
    shading_calculation=True,
    output_folder=os.path.join(".","your_output_folder")
)
city_geojson.loads_calculation()
city_geojson.simulate(print_single_building_results=True)

Output report

If output_folder=os.path.join(".","your_output_folder") is set, outputs are printed in the output folder. Each file is a csv with the main output variables of each building.

How to cite EUReCA

In case you want to use EUReCA for your own research project, please cite the following paper:

@article{
PRATAVIERA2021544,
title = {EUReCA: An open-source urban building energy modelling tool for the efficient evaluation of cities energy demand},
journal = {Renewable Energy},
volume = {173},
pages = {544-560},
year = {2021},
issn = {0960-1481},
doi = {https://doi.org/10.1016/j.renene.2021.03.144},
url = {https://www.sciencedirect.com/science/article/pii/S0960148121005085},
author = {Enrico Prataviera and Pierdonato Romano and Laura Carnieletto and Francesco Pirotti and Jacopo Vivian and Angelo Zarrella},
keywords = {Urban building energy modelling, Lumped-capacitance thermal networks, Semantic georeferenced data, EUReCA, District simulation}
}