created a loop for generation systems in _associate_energy_systems

This commit is contained in:
Saeed Ranjbar 2023-10-05 16:18:08 -04:00
parent 9654bee978
commit ef89da8552

View File

@ -150,14 +150,19 @@ class NorthAmericaCustomEnergySystemParameters:
_building_energy_equipment = EnergySystem() _building_energy_equipment = EnergySystem()
_building_energy_equipment.name = _generic_building_energy_system.name _building_energy_equipment.name = _generic_building_energy_system.name
_building_energy_equipment.demand_types = _generic_building_energy_system.demand_types _building_energy_equipment.demand_types = _generic_building_energy_system.demand_types
_building_generation_system = GenerationSystem() _generation_systems = []
_building_generation_system.generic_generation_system = \ _generic_building_generation_systems = _generic_building_energy_system.generation_systems
copy.deepcopy(_generic_building_energy_system.generation_systems) for _generic_building_generation_system in _generic_building_generation_systems:
_building_generation_system = GenerationSystem()
_building_generation_system.generic_generation_system = \
copy.deepcopy(_generic_building_generation_system)
_generation_systems.append(_building_generation_system)
_building_energy_equipment.generation_systems = _generation_systems
_building_storage_system = ThermalStorageSystem() _building_storage_system = ThermalStorageSystem()
_building_storage_system.generic_storage_system = \ _building_storage_system.generic_storage_system = \
copy.deepcopy(_generic_building_energy_system.energy_storage_systems) copy.deepcopy(_generic_building_energy_system.energy_storage_systems)
_building_energy_equipment.generation_systems = _building_generation_system
_building_energy_equipment.energy_storage_systems = _building_storage_system _building_energy_equipment.energy_storage_systems = _building_storage_system
_building_energy_systems.append(_building_energy_equipment) _building_energy_systems.append(_building_energy_equipment)