-
Notifications
You must be signed in to change notification settings - Fork 1.1k
port Purdue bifacial irradiance model from PVLib Matlab #863
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
Comments
@nappaillav porting is doable, it would be a big effort though. @wholmgren @mikofski The bifacial irradiance model is the major difference in capability between pvlib-python and Pvlib for MATLAB. Beyond that, Pvlib for MATLAB also has a set of functions to translate IV curves and estimate module-level series resistance, but I think these are of much less interest. |
The matlab codes are well written with demo codes and examples. Hence porting is doable. |
Should we drop #717 then? it's nearly done, the last bit is just to integrate over the angles from zero to pi for each position on the front or back of the pv surface. I guess I should've checked the MATLAB pvlib first. How does it compare with nrel/bifacialvf? #717 has an advantage that it isn't limited by the number of rows in front of or behind the row in consideration. |
@mikofski I think it is worth completing #717, and I'll volunteer to review. There are several variants of the "infinite sheds", 2D, modeling approach for back surface irradiance, each differing in details of effects accounted for/neglected, and calculation style. I don't see that industry has converged to one model and there have been several recent papers comparing among available models. From my point of view, more models is better at this stage of maturity. |
Functions to implement from brief examination :
I found equivalent |
The other functions are not in |
I'm having doubts if We might also have to add |
Good point. As far as additional trig functions, please add them to bifacial.py as needed for this PR. We can move them to tools.py later if there are other uses in the library. |
I'd put them in
Agree, agree. |
To start with I will add trigonometry to tools.py along with the tests. |
And thanks! |
I have created a pull request for additional trigonometry function, can you please review the request. |
Code looks fine. Test failure is unrelated, don't worry about it. |
I have a doubt wrt to |
|
|
The value for |
@cwhanse can you check the code and help me write unit test for |
No objection to closing stale PRs; we can always reopen if desired. Would it make sense to change this issue's goal to be an independent implementation consistent with the reference instead of porting the Matlab code? |
It would. The concerns are details of implementation that are not specified in the paper and don't appear correct in the Matlab code. I believe there was a thesis behind the work, which I haven't looked for. |
Closing due to merge of #717 |
PVLib MATLAB contains open source code for a model for front and rear surface irradiance, for bifacial modeling, in three files starting with "pvl_Purdue_". It would be valuable to port this model to python. The model takes the "infinite sheds" bifacial irradiance approach. #717
The text was updated successfully, but these errors were encountered: