Skip to content

Commit 4a4ec58

Browse files
committed
Update irradiance.py
move eqn and add description and variables definition to a new notes section update references redefine surface tilt for consistency with pvlib#2191
1 parent cd9cb9a commit 4a4ec58

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

pvlib/irradiance.py

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -630,50 +630,32 @@ def klucher(surface_tilt, surface_azimuth, dhi, ghi, solar_zenith,
630630
solar_azimuth):
631631
r'''
632632
Determine diffuse irradiance from the sky on a tilted surface
633-
using Klucher's 1979 model
634-
635-
.. math::
636-
637-
I_{d} = DHI \frac{1 + \cos\beta}{2} (1 + F' \sin^3(\beta/2))
638-
(1 + F' \cos^2\theta\sin^3\theta_z)
639-
640-
where
641-
642-
.. math::
643-
644-
F' = 1 - (I_{d0} / GHI)^2
645-
646-
Klucher's 1979 model determines the diffuse irradiance from the sky
647-
(ground reflected irradiance is not included in this algorithm) on a
648-
tilted surface using the surface tilt angle, surface azimuth angle,
649-
diffuse horizontal irradiance, direct normal irradiance, global
650-
horizontal irradiance, extraterrestrial irradiance, sun zenith
651-
angle, and sun azimuth angle.
633+
using the Klucher (1979) model [1]_.
652634
653635
Parameters
654636
----------
655637
surface_tilt : numeric
656-
Surface tilt angles in decimal degrees. surface_tilt must be >=0
638+
Surface tilt angles in decimal degrees. ``surface_tilt`` must be >=0
657639
and <=180. The tilt angle is defined as degrees from horizontal
658640
(e.g. surface facing up = 0, surface facing horizon = 90)
659641
660642
surface_azimuth : numeric
661-
Surface azimuth angles in decimal degrees. surface_azimuth must
643+
Surface azimuth angles in decimal degrees. ``surface_azimuth`` must
662644
be >=0 and <=360. The Azimuth convention is defined as degrees
663645
east of north (e.g. North = 0, South=180 East = 90, West = 270).
664646
665647
dhi : numeric
666-
Diffuse horizontal irradiance in W/m^2. DHI must be >=0.
648+
Diffuse horizontal irradiance in W/m^2. ``dhi`` must be >=0.
667649
668650
ghi : numeric
669-
Global irradiance in W/m^2. DNI must be >=0.
651+
Global irradiance in W/m^2. ``ghi`` must be >=0.
670652
671653
solar_zenith : numeric
672654
Apparent (refraction-corrected) zenith angles in decimal
673-
degrees. solar_zenith must be >=0 and <=180.
655+
degrees. ``solar_zenith`` must be >=0 and <=180.
674656
675657
solar_azimuth : numeric
676-
Sun azimuth angles in decimal degrees. solar_azimuth must be >=0
658+
Sun azimuth angles in decimal degrees. ``solar_azimuth`` must be >=0
677659
and <=360. The Azimuth convention is defined as degrees east of
678660
north (e.g. North = 0, East = 90, West = 270).
679661
@@ -682,13 +664,33 @@ def klucher(surface_tilt, surface_azimuth, dhi, ghi, solar_zenith,
682664
diffuse : numeric
683665
The sky diffuse component of the solar radiation.
684666
667+
Notes
668+
-----
669+
The Klucher (1979) model determines the diffuse irradiance
670+
from the sky (ground reflected irradiance is not included in this
671+
algorithm) on a tilted surface using the surface tilt angle, surface
672+
azimuth angle, diffuse horizontal irradiance, direct normal irradiance,
673+
global mhorizontal irradiance, extraterrestrial irradiance, sun zenith
674+
angle, and sun azimuth angle. The expression for the diffuse irradiance,
675+
:math:`I_d`, is as follows:
676+
677+
.. math::
678+
679+
I_{d} = DHI \frac{1 + \cos\theta_T}{2} (1 + F' \sin^3(\theta_T/2))
680+
(1 + F' \cos^2\theta\sin^3\theta_z).
681+
682+
DHI is the diffuse horizontal irradiance, :math:`\theta_T` is the surface
683+
tilt angle, :math:`\theta_z` is the solar zenith angle. :math:`F'` is a
684+
modulating function to account for when skies change from clear to
685+
overcast, and is defined as follows:
686+
687+
.. math::
688+
689+
F' = 1 - (I_{d0} / GHI)^2
690+
685691
References
686692
----------
687-
.. [1] Loutzenhiser P.G. et. al. "Empirical validation of models to compute
688-
solar irradiance on inclined surfaces for building energy simulation"
689-
2007, Solar Energy vol. 81. pp. 254-267
690-
691-
.. [2] Klucher, T.M., 1979. Evaluation of models to predict insolation on
693+
.. [1] Klucher, T.M., 1979. Evaluation of models to predict insolation on
692694
tilted surfaces. Solar Energy 23 (2), 111-114.
693695
'''
694696

0 commit comments

Comments
 (0)