I want to calculate total solar irradiance using isotropic sky model.
My problem is calculation of Rb
(beam radiation tilt factor) in which I reach some negative values which is nonsense.
Formula:
Rb = cos(angle_of_incidence)/cos(solar_zenith)
Code in Python:
Rb = np.cos(pvlib.irradiance.aoi(surface_tilt, surface_azimuth, solar_zenith, solar_azimuth))/np.cos(solar_zenith)
Could you help me to solve negative values in Rb
?
(My reference: Solar Energy Engineering: Processes and Systems, Soteris A. Kalogirou)