Skip to content

Commit 9000035

Browse files
author
Tobin Ford
committed
reasonable aceleration factor calculated
1 parent 500b0ed commit 9000035

File tree

2 files changed

+109
-102
lines changed

2 files changed

+109
-102
lines changed

pvdeg/degradation.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1000,10 +1000,10 @@ def deg(
10001000

10011001
# inner integral
10021002
# wavelength d lambda
1003-
irr_weighted = irr * np.exp(-C2 * wavelengths) # weight irradiances
1004-
irr_weighted *= wav_bin
1005-
irr_pow = irr_weighted ** p
1006-
wavelength_integral = np.sum(irr_pow, axis=1) # sum over wavelengths
1003+
irr_weighted = irr * np.exp(-C2 * wavelengths) # weight irradiances
1004+
irr_weighted *= wav_bin # multiply instantanous irradiance by bin size for rectangular integration
1005+
irr_pow = irr_weighted ** p # dependence on irradiance
1006+
wavelength_integral = np.sum(irr_pow, axis=1) # sum over wavelengths for integration
10071007

10081008
# outer integral
10091009
# arrhenius integral dt

0 commit comments

Comments
 (0)