-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Townsend snow #1251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Townsend snow #1251
Changes from 2 commits
0b736d4
3f2c40d
974d516
655fa79
c0c8b4d
f0e1f3a
78716f7
5e06a40
a5c5315
f79e906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,3 +185,104 @@ def dc_loss_nrel(snow_coverage, num_strings): | |
| Available at https://www.nrel.gov/docs/fy18osti/67399.pdf | ||
| ''' | ||
| return np.ceil(snow_coverage * num_strings) / num_strings | ||
|
|
||
| def townsend_Se(S, N): | ||
| ''' | ||
| Calculates effective snow for a given month based upon the total snowfall | ||
| received in a month in inches and the number of events where snowfall is greater | ||
| than 1 inch | ||
|
|
||
| Parameters | ||
| ---------- | ||
| S : numeric | ||
| Snowfall in inches received in a month | ||
|
|
||
| N: numeric | ||
| Number of snowfall events with snowfall > 1" | ||
|
|
||
| Returns | ||
| ------- | ||
| effective_snowfall : numeric | ||
| Effective snowfall as defined in the townsend model | ||
|
|
||
| References | ||
| ---------- | ||
| .. [1] Townsend, Tim & Powers, Loren. (2011). Photovoltaics and snow: An | ||
| update from two winters of measurements in the SIERRA. Conference | ||
| Record of the IEEE Photovoltaic Specialists Conference. | ||
| 003231-003236. 10.1109/PVSC.2011.6186627. | ||
| Available at https://www.researchgate.net/publication/261042016_Photovoltaics_and_snow_An_update_from_two_winters_of_measurements_in_the_SIERRA | ||
|
|
||
| ''' | ||
| return(np.where(N>0, 0.5 * S * (1 + 1/N), 0)) | ||
|
|
||
| def townsend_snow_loss_model(S, N, tilt, RH, T_air, POA, R, H, P=40): | ||
|
||
| ''' | ||
| Calculates monthly snow loss based on a generalized monthly snow loss model discussed in [1]_. | ||
|
|
||
| Parameters | ||
| ---------- | ||
| S : numeric | ||
| Inches of snow received in the current month | ||
|
|
||
| N : numeric | ||
| Number of snowfall events with snowfall > 1" | ||
|
|
||
| tilt : numeric | ||
kandersolar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Array tilt in degrees | ||
|
|
||
| RH : numeric | ||
| Relative humidity in percentage | ||
|
|
||
| T_air : numeric | ||
| Ambient temperature in celcius | ||
kandersolar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| POA : numeric | ||
| Plane of array irradiance in kWh/m2/month | ||
kandersolar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| R : numeric | ||
| Row length in the slanted plane of array dimension in inches | ||
|
|
||
| H : numeric | ||
| Drop height from array edge to ground in inches | ||
|
|
||
| P : numeric | ||
| piled snow angle, assumed to stabilize at 40° , the midpoint of | ||
| 25°-55° avalanching slope angles | ||
|
|
||
| S_prev : numeric | ||
| Inches of snow received in the previous month | ||
|
|
||
| N_prev : numeric | ||
| Number of 1" or greater snow events in the previous month | ||
|
|
||
| Returns | ||
| ------- | ||
| loss : numeric | ||
| Average monthly DC capacity loss in percentage due to snow coverage | ||
kandersolar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add a |
||
| References | ||
| ---------- | ||
| .. [1] Townsend, Tim & Powers, Loren. (2011). Photovoltaics and snow: An | ||
| update from two winters of measurements in the SIERRA. Conference | ||
| Record of the IEEE Photovoltaic Specialists Conference. | ||
| 003231-003236. 10.1109/PVSC.2011.6186627. | ||
| Available at https://www.researchgate.net/publication/261042016_Photovoltaics_and_snow_An_update_from_two_winters_of_measurements_in_the_SIERRA | ||
| ''' | ||
|
|
||
| C1 = 5.7e04 | ||
| C2 = 0.51 | ||
|
|
||
| S_prev = np.roll(S,1) | ||
| N_prev = np.roll(N,1) | ||
|
|
||
| Se = townsend_Se(S, N) | ||
| Se_prev = townsend_Se(S_prev, N_prev) | ||
|
|
||
| Se_weighted = 1/3 * Se_prev + 2/3 * Se | ||
| gamma = (R * Se_weighted * np.cos(np.deg2rad(tilt)))/(np.clip((H**2 - Se_weighted**2),a_min=0.01,a_max=None)/2/np.tan(np.deg2rad(P))) | ||
|
|
||
| GIT = 1 - C2 * np.exp(-gamma) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd also change this to |
||
| loss = C1 * Se_weighted * (np.cos(np.deg2rad(tilt)))**2 * GIT * RH / (T_air+273.15)**2 / POA**0.67 | ||
|
|
||
| return (np.round(loss,2)) | ||
Uh oh!
There was an error while loading. Please reload this page.