fix: current_status is fixed
This commit is contained in:
parent
e65496efa0
commit
77a1f08ae4
@ -29,14 +29,14 @@ ConstructionFactory('nrcan', city).enrich()
|
|||||||
UsageFactory('nrcan', city).enrich()
|
UsageFactory('nrcan', city).enrich()
|
||||||
WeatherFactory('epw', city).enrich()
|
WeatherFactory('epw', city).enrich()
|
||||||
ResultFactory('energy_plus_multiple_buildings', city, ep_output_path).enrich()
|
ResultFactory('energy_plus_multiple_buildings', city, ep_output_path).enrich()
|
||||||
|
# for building in city.buildings:
|
||||||
|
# building.energy_systems_archetype_name = 'system 7 electricity pv'
|
||||||
|
# EnergySystemsFactory('montreal_custom', city).enrich()
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
building.energy_systems_archetype_name = 'system 1 gas'
|
building.energy_systems_archetype_name = 'PV+4Pipe+DHW'
|
||||||
EnergySystemsFactory('montreal_custom', city).enrich()
|
EnergySystemsFactory('montreal_future', city).enrich()
|
||||||
# for building in city.buildings:
|
for building in city.buildings:
|
||||||
# building.energy_systems_archetype_name = 'PV+4Pipe+DHW'
|
EnergySystemsSimulationFactory('archetype13', building=building, output_path=output_path).enrich()
|
||||||
# EnergySystemsFactory('montreal_future', city).enrich()
|
|
||||||
# for building in city.buildings:
|
|
||||||
# EnergySystemsSimulationFactory('archetype13', building=building, output_path=output_path).enrich()
|
|
||||||
month_names = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
month_names = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||||||
building_data = {}
|
building_data = {}
|
||||||
for building in city.buildings:
|
for building in city.buildings:
|
||||||
@ -49,19 +49,32 @@ for building in city.buildings:
|
|||||||
building.cooling_consumption[cte.YEAR][0] / 3.6e6,
|
building.cooling_consumption[cte.YEAR][0] / 3.6e6,
|
||||||
'yearly_dhw_consumption_kWh':
|
'yearly_dhw_consumption_kWh':
|
||||||
building.domestic_hot_water_consumption[cte.YEAR][0] / 3.6e6,
|
building.domestic_hot_water_consumption[cte.YEAR][0] / 3.6e6,
|
||||||
|
'yearly_appliance_electricity_consumption_kWh':
|
||||||
|
building.appliances_electrical_demand[cte.YEAR][0] / 3.6e6,
|
||||||
|
'yearly_lighting_electricity_consumption_kWh':
|
||||||
|
building.lighting_electrical_demand[cte.YEAR][0] / 3.6e6,
|
||||||
'heating_peak_load_kW': max(
|
'heating_peak_load_kW': max(
|
||||||
building.heating_consumption[cte.HOUR]) / 3.6e6,
|
building.heating_consumption[cte.HOUR]) / 3.6e6,
|
||||||
'cooling_peak_load_kW': max(
|
'cooling_peak_load_kW': max(
|
||||||
building.cooling_consumption[cte.HOUR]) / 3.6e6,
|
building.cooling_consumption[cte.HOUR]) / 3.6e6,
|
||||||
|
'monthly_heating_demand':
|
||||||
|
{month_name: building.heating_demand[cte.MONTH][i] / 3.6e6
|
||||||
|
for (i, month_name) in enumerate(month_names)},
|
||||||
'monthly_heating_consumption_kWh':
|
'monthly_heating_consumption_kWh':
|
||||||
{month_name: building.heating_consumption[cte.MONTH][i] / 3.6e6
|
{month_name: building.heating_consumption[cte.MONTH][i] / 3.6e6
|
||||||
for (i, month_name) in enumerate(month_names)},
|
for (i, month_name) in enumerate(month_names)},
|
||||||
|
'monthly_cooling_demand_kWh':
|
||||||
|
{month_name: building.cooling_demand[cte.MONTH][i] / 3.6e6
|
||||||
|
for (i, month_name) in enumerate(month_names)},
|
||||||
'monthly_cooling_consumption_kWh':
|
'monthly_cooling_consumption_kWh':
|
||||||
{month_name: building.cooling_consumption[cte.MONTH][i] / 3.6e6
|
{month_name: building.cooling_consumption[cte.MONTH][i] / 3.6e6
|
||||||
for (i, month_name) in enumerate(month_names)},
|
for (i, month_name) in enumerate(month_names)},
|
||||||
|
'monthly_dhw_demand_kWh':
|
||||||
|
{month_name: building.domestic_hot_water_heat_demand[cte.MONTH][i] / 3.6e6
|
||||||
|
for (i, month_name) in enumerate(month_names)},
|
||||||
'monthly_dhw_consumption_kWh':
|
'monthly_dhw_consumption_kWh':
|
||||||
{month_name: building.domestic_hot_water_consumption[cte.MONTH][i] /
|
{month_name: building.domestic_hot_water_consumption[cte.MONTH][i] /
|
||||||
3.6e6 for (i, month_name) in enumerate(month_names)}}
|
3.6e6 for (i, month_name) in enumerate(month_names)}}
|
||||||
|
|
||||||
with open(output_path / "base_case_buildings_data.json", "w") as json_file:
|
with open(output_path / "air_to_water_hp_buildings_data.json", "w") as json_file:
|
||||||
json.dump(building_data, json_file, indent=4)
|
json.dump(building_data, json_file, indent=4)
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
<equipments>
|
<equipments>
|
||||||
<generation_id>3</generation_id>
|
<generation_id>3</generation_id>
|
||||||
<distribution_id>8</distribution_id>
|
<distribution_id>8</distribution_id>
|
||||||
g </equipments>
|
</equipments>
|
||||||
</system>
|
</system>
|
||||||
<system id="5">
|
<system id="5">
|
||||||
<name>Single zone packaged rooftop unit with electrical resistance furnace and baseboards and fuel boiler for acs</name>
|
<name>Single zone packaged rooftop unit with electrical resistance furnace and baseboards and fuel boiler for acs</name>
|
||||||
|
Loading…
Reference in New Issue
Block a user