Merge remote-tracking branch 'origin/master'

This commit is contained in:
Guille 2020-11-27 11:31:56 -05:00
commit 38639d8ff9
18 changed files with 52 additions and 27 deletions

View File

@ -2,9 +2,9 @@
ThermalBoundary module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Contributors Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from typing import List
from city_model_structure.attributes.layer import Layer
from city_model_structure.attributes.thermal_opening import ThermalOpening
from city_model_structure.attributes.thermal_zone import ThermalZone

View File

@ -2,6 +2,7 @@
ThermalOpening module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Contributors Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from helpers.configuration_helper import ConfigurationHelper

View File

@ -1,11 +1,10 @@
"""
UsageZone module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Contributors Pilar Monsalvete pilar_monsalvete@yahoo.es
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
Contributors Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
from typing import List
from city_model_structure.attributes.internal_gains import InternalGains
from helpers.configuration_helper import ConfigurationHelper
@ -218,7 +217,6 @@ class UsageZone:
@property
def occupancy_density(self):
# todo: review units
"""
Get occupancy density in persons per m2
:return: float
@ -235,7 +233,6 @@ class UsageZone:
@property
def dhw_average_volume_pers_day(self):
# todo: review units
"""
Get average DHW consumption in liters per person per day
:return: float
@ -252,7 +249,6 @@ class UsageZone:
@property
def dhw_preparation_temperature(self):
# todo: review units
"""
Get preparation temperature of the DHW in degree Celsius
:return: float
@ -269,9 +265,8 @@ class UsageZone:
@property
def electrical_app_average_consumption_sqm_year(self):
# todo: review units
"""
Get average consumption of electrical appliances in Watts per m2 and year
Get average consumption of electrical appliances in kiloWatts hour per m2 and year (kWh/m2yr)
:return: float
"""
return self._electrical_app_average_consumption_sqm_year
@ -279,8 +274,7 @@ class UsageZone:
@electrical_app_average_consumption_sqm_year.setter
def electrical_app_average_consumption_sqm_year(self, values):
"""
average consumption of electrical appliances in Watts per m2 and year
average consumption of electrical appliances in kiloWatts hour per m2 and year (kWh/m2yr)
:param values: float
"""
self._electrical_app_average_consumption_sqm_year = values

View File

@ -1,7 +1,7 @@
"""
bixi_feature module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from city_model_structure.city_object import CityObject

View File

@ -12,8 +12,6 @@ import numpy as np
from matplotlib import pylab
from shapely import ops
from shapely.geometry import MultiPolygon
import pandas as pd
import helpers.constants as cte
from city_model_structure.attributes.surface import Surface
from city_model_structure.attributes.thermal_boundary import ThermalBoundary
@ -147,7 +145,7 @@ class Building(CityObject):
City object heated volume in cubic meters
:return: float
"""
# ToDo: this need to be the calculated based on the basement and attic heated values
# ToDo: this need to be calculated based on the basement and attic heated values
return self.volume
@property

View File

@ -1,7 +1,7 @@
"""
Building module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca
"""
from builtins import float

View File

@ -91,8 +91,6 @@ class CityObject:
self._polyhedron = Polyhedron(self.surfaces)
self._polyhedron.show()
@property
def max_height(self):
"""

View File

@ -1,7 +1,7 @@
"""
Composting plant module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from city_model_structure.city_object import CityObject

View File

@ -4,10 +4,10 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
import pandas as pd
import helpers.constants as cte
from city_model_structure.attributes.occupancy import Occupancy
import calendar as cal
class MonthlyToHourlyDemand:
"""
MonthlyToHourlyDemand class

View File

@ -1,7 +1,15 @@
"""
Subway entrance module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from city_model_structure.city_object import CityObject
class SubwayEntrance(CityObject):
"""
SubwayEntrance(CityObject) class
"""
def __init__(self, name, latitude, longitude):
super().__init__(0, [], name)
self._name = name
@ -10,12 +18,26 @@ class SubwayEntrance(CityObject):
@property
def latitude(self):
# todo: to be defined the spacial point and the units
"""
Get latitude
:return: float
"""
return self._latitude
@property
def longitude(self):
# todo: to be defined the spacial point and the units
"""
Get longitude
:return: float
"""
return self._longitude
@property
def name(self):
"""
Get name
:return: string
"""
return self._name

View File

@ -1,7 +1,7 @@
"""
Tree module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from city_model_structure.city_object import CityObject

View File

@ -6,7 +6,6 @@ Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@conc
from pathlib import Path
import xmltodict
from factories.usage_feeders.helpers.us_function_to_usage import UsFunctionToUsage

View File

@ -1,7 +1,7 @@
"""
UsFunctionToUsage helper
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""

View File

@ -2,6 +2,7 @@
UsBaseUsageParameters base class to model the usage properties for a building in NYC and US
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Contributors Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from pathlib import Path

View File

@ -3,7 +3,6 @@ WeatherFactory retrieve the specific weather module for the given source format
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
from pathlib import Path
from factories.weather_feeders.dat_weather_parameters import DatWeatherParameters

View File

@ -1,12 +1,24 @@
"""
weather helper
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
import math
import helpers.constants as cte
class Weather(object):
"""
Weather class
"""
@staticmethod
def sky_temperature(ambient_temperature):
# Swinbank - Fuentes sky model approximation(1963) based on cloudiness statistics(32 %) in United States
"""
sky temperature from ambient temperature in degree Celsius
:return: float
"""
# Swinbank - Source sky model approximation(1963) based on cloudiness statistics(32 %) in United States
# ambient temperatures( in °C)
# sky temperatures( in °C)
values = []

View File

@ -2,6 +2,7 @@
Geometry helper
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Contributors Pilar Monsalvete pilar_monsalvete@yahoo.es
"""
import math
import numpy as np