You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a python implementation of the Fuentes model I can contribute. However because the model includes a thermal inertia effect, each temperature calculation depends on the previous value in a nontrivial way and I haven't found a way to vectorize it with numpy, so unfortunately it's a little slow. Calculating cell temperature for an 8760 takes 4-5 seconds on my computer. Is slow code better than no code? If so, I will open a PR.
The code is pretty similar to the original FORTRAN77 code in the reference's Appendix A... it would be a good candidate for rewriting in cython if pvlib goes that way.
Activity
kandersolar commentedon Aug 29, 2020
I have a python implementation of the Fuentes model I can contribute. However because the model includes a thermal inertia effect, each temperature calculation depends on the previous value in a nontrivial way and I haven't found a way to vectorize it with numpy, so unfortunately it's a little slow. Calculating cell temperature for an 8760 takes 4-5 seconds on my computer. Is slow code better than no code? If so, I will open a PR.
The code is pretty similar to the original FORTRAN77 code in the reference's Appendix A... it would be a good candidate for rewriting in cython if pvlib goes that way.
wholmgren commentedon Aug 29, 2020
Numba is also a good option.