feat: installed_capacity attribute added to PvGeneration class and implemented in the code
This commit is contained in:
parent
a234bce035
commit
ea50c6b856
@ -188,6 +188,11 @@ class PvSystemAssessment:
|
||||
archetype_name = '_'.join(system_archetype_name.lower().split())
|
||||
if 'grid_tied' in archetype_name:
|
||||
self.results = self.grid_tied_system()
|
||||
for energy_system in self.building.energy_systems:
|
||||
for generation_system in energy_system.generation_systems:
|
||||
if generation_system.system_type == cte.PHOTOVOLTAIC:
|
||||
generation_system.installed_capacity = (self.results['rooftop_panels'] *
|
||||
float(generation_system.standard_test_condition_maximum_power))
|
||||
hourly_pv_output = self.results['total_hourly_pv_system_output_W']
|
||||
self.building.pv_generation[cte.HOUR] = hourly_pv_output
|
||||
self.building.pv_generation[cte.MONTH] = MonthlyValues.get_total_month(hourly_pv_output)
|
||||
|
Loading…
Reference in New Issue
Block a user