started to work on systems

This commit is contained in:
Saeed Ranjbar 2023-08-16 20:07:24 -04:00
parent 923b1fe267
commit 0528aa0718
2 changed files with 19 additions and 1 deletions

View File

@ -194,6 +194,24 @@ class NorthAmericaEnergySystemCatalog(Catalog):
storage_components.append(storage_component) storage_components.append(storage_component)
return storage_components return storage_components
def _load_systems(self):
systems = []
catalog_systems = self._archetypes['encomp:EnergySystemCatalog']['energysystemconfiguration']
for catalog_system in catalog_systems:
system_configuration = catalog_system['@configurationName']
energy_system = System(None,
None,
system_configuration,
None,
None,
None,
None,
None,
None,
None)
systems.append(energy_system)
return systems
def _load_materials(self): def _load_materials(self):
materials = [] materials = []
_materials = self._archetypes['encomp:EnergySystemCatalog']['energycomponent']['materials'] _materials = self._archetypes['encomp:EnergySystemCatalog']['energycomponent']['materials']

View File

@ -50,7 +50,7 @@
<demands name="domesticHotWater"/> <demands name="domesticHotWater"/>
</energysystemconfiguration> </energysystemconfiguration>
<energysystemconfiguration configurationName="hpTesBoiler"/> <energysystemconfiguration configurationName="hpTesBoiler"/>
<energysystemconfiguration/> <energysystemconfiguration configurationName="hpTes"/>
<energydemand name="heating"/> <energydemand name="heating"/>
<energydemand name="domesticHotWater"/> <energydemand name="domesticHotWater"/>
<energydemand name="electricity"/> <energydemand name="electricity"/>