Skip to content

Commit

Permalink
reasonable aceleration factor calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobin Ford committed Dec 18, 2024
1 parent 500b0ed commit 9000035
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 102 deletions.
8 changes: 4 additions & 4 deletions pvdeg/degradation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,10 @@ def deg(

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

# outer integral
# arrhenius integral dt
Expand Down
Loading

0 comments on commit 9000035

Please sign in to comment.