remove calculatePerformanceModule (still under development)
@@ -2598,73 +2598,6 @@ class RadianceObj:
return trackerdict
- def calculatePerformanceModule(self, CECMod, glassglass=False, bifacialityfactor=None):
- '''
- Loops through all results in trackerdict and calculates performance using
- PVLib. Cell temperature is calculated
-
- Parameters
- ----------
- CECMod : Dict
- Dictionary with CEC Module PArameters for the module selected. Must
- contain at minimum alpha_sc, a_ref, I_L_ref, I_o_ref, R_sh_ref,
- R_s, Adjust
- glassglass : boolean, optional
- If True, module packaging is set to glass-glass for thermal
- coefficients for module temperature calculation. Else it is
- assumes it is a glass-polymer package.
- bifacialityfactor : float, optional
- bifaciality factor to be used on calculations, range 0 to 1. If
- not passed, it uses the module object's stored bifaciality factor.
-
- Returns
- -------
- trackerdict
- Trackerdict with effective irradiance and Power Output for the module.
-
- '''
-
- from bifacial_radiance import performance
-
- trackerdict = self.trackerdict
-
- keys = list(trackerdict.keys())
-
- # Search for module object bifaciality
- if bifacialityfactor is None:
- bifacialityfactor = trackerdict[keys[0]]['scene'].module.bifi
- print("Bifaciality factor of module stored is ", bifacialityfactor)
-
- effective_irradiance = []
- temp_air = []
- wind_speed = []
-
- for key in keys:
- frontirrad = trackerdict[key]['AnalysisObj'].Wm2Front
- backirrad = trackerdict[key]['AnalysisObj'].Wm2Back
- eff_irrad = np.mean(frontirrad)+np.mean(backirrad)*bifacialityfactor
- effective_irradiance.append(eff_irrad)
- trackerdict[key]['effective_irradiance'] = eff_irrad
- temp_air.append(trackerdict[key]['temp_air'])
- wind_speed.append(trackerdict[key]['wind_speed'])
-
- performanceModdata= pd.DataFrame(zip(wind_speed, temp_air, effective_irradiance),
- columns=('wind_speed', 'temp_air', 'effective_irradiance'))
- pout = performance.calculatePerformance(
- effective_irradiance = performanceModdata.effective_irradiance,
- CECMod=CECMod,
- temp_air=performanceModdata.temp_air,
- wind_speed=performanceModdata.wind_speed)
-
-
- ii = 0
- for key in keys:
- trackerdict[key]['Pout_module'] = pout[ii]
- ii +=1
-
- self.trackerdict = trackerdict
-
- return trackerdict
# End RadianceObj definition
