UrbanHeatPro.Classes.City
City.py A. Molar-Cruz @ TUM ENS
Module Contents
Classes
City class. |
- class UrbanHeatPro.Classes.City.City(NAME, SIMULATION, CITY, SPACE_HEATING, HOT_WATER, REPORTING)[source]
City class.
Note
This documentation might be incomplete or outdated, check the source code for more information. The types for the attributes might not be correct.
- b_to_save_syncity
Array to save synchronicity data.
- Type:
ndarray
- b_to_save_heat
Array to save heat data.
- Type:
ndarray
- base_load
Vector of base load in W.
- Type:
ndarray
Initializes the City object.
- Parameters:
NAME (str) – Name of the simulation.
SIMULATION (list) – List containing the parameters related to the simulation.
CITY (list) – List containing the parameters related to the city.
SPACE_HEATING (list) – List containing the parameters related to space heating demand.
HOT_WATER (list) – List containing the parameters related to hot water demand.
REPORTING (list) – List containing the parameters related to reporting.
- create_synthetic_city()[source]
Create a synthetic city representing the building stock based on statistics.
- update_synthetic_city(ref_matrix_res, ref_matrix_nres)[source]
Create a synthetic city representing the building stock based on statistics.
- call_create_synthetic_building(feederQueue, writerQueue)[source]
Calls function to create synthetic building
- call_update_synthetic_building(feederQueue, writerQueue)[source]
Calls function to update synthetic building. To update:
Refurbishment level
- create_synthetic_building(building)[source]
Creates building object and calculates missing building properties
- update_synthetic_building(building)[source]
Updates synthetic building. To update:
Refurbishment level
- calculate_city_heat_demand()[source]
Paralellizes the calculation of heating energy demand per building using a given number of processes. Every process modifies a shared dictionary where the heat demand is stored as power and energy.
- call_calculate_building_heat_demand(feederQueue, writerQueue)[source]
Calls function to calculate building heat demand
- calculate_building_heat_demand(building)[source]
Extracts building information needed to create a Building object. If the building is connected to the district heating network, then a Building object is created and the heat demand is calculted. If it is not, then the heat demand is set to zero.
- Parameters:
information (building dataframe with building) –
counter (iii building) –
- write_to_city_heat_demand(writerQueue, filename)[source]
Writes building properties and heat demand to file
- initialize_dhw_probabilities()[source]
Calculates dhw probabilities (daily consumption, event loads, flow rate and duration as interpolate objects.
- calculate_seasonal_variation_vector(amplitude=0.1, max_point=45)[source]
Creates a sine wave representing the change of the nominal consumption during the year due to the seasonal variation.
- calculate_day_vector()[source]
Calculates a vector of the days in the year included in the simulation time frame. Maximum length is 366.
- Returns:
- self.day_vector, list of day numbers in simulation time frame
with start and end indices
- Return type:
- calculate_min_vector()[source]
Calculates a vector of the simulation time steps in minutes of year. Maximum length is 366*24*60.
- Returns:
self.min_vector, list of time steps in minutes
- Return type: