Repository navigation
Add wind-dependent freestanding PVsyst temperature preset - #2938
sahaja9707 wants to merge 2 commits into
Conversation
Hey @sahaja9707! 🎉Thanks for opening your first pull request! We appreciate your If AI is used for any portion of this PR, you must vet the content Finally, be sure the PR description includes the PR |
|
I've made a change to add the The PR also documents the wind measurement height and adds a numerical test. All 34 temperature tests and style checks pass. This addresses the free-standing portion of #2834. Could you please review the PR and merge it if everything looks good? I’m happy to address any feedback. |
|
@sahaja9707 you're ahead of the maintainers with this one :) We need to get consensus that pvlib should change these defaults, before reviewing this PR. Thanks for your patience. |
|
I support this improvement. |
|
Finally a useful AI contribution! I'd describe this as adding a new option that is widely used in the industry. It doesn't change default behavior and it's entirely opt-in. I suggest we merge it in a few days unless anyone objects. |
| .. [3] PVsyst SA, "Heat transfer coefficients (U-values)," PVsyst | ||
| documentation. [Online]. Available: | ||
| https://www.pvsyst.com/help/project-design/array-and-system-losses/array-thermal-losses/u-value-measurement.html. | ||
| [Accessed: 8-Nov-2026]. | ||
|
|
There was a problem hiding this comment.
| .. [3] PVsyst SA, "Heat transfer coefficients (U-values)," PVsyst | |
| documentation. [Online]. Available: | |
| https://www.pvsyst.com/help/project-design/array-and-system-losses/array-thermal-losses/u-value-measurement.html. | |
| [Accessed: 8-Nov-2026]. |
The new coefficients are already in [1]. I don't see the need to cite one more time the same content. You may update [1] accessed date.
There was a problem hiding this comment.
The new link looks like the modern version of [1]. Anyway, it seems like PVUSA needs to be referenced here also.
There was a problem hiding this comment.
| The ``freestanding_wind`` parameters are the PVUSA correlation described | ||
| in [3]_ for open-rack systems with wind speed data. Standard meteorological | ||
| wind speed is measured at 10 m above ground. The wind loss coefficient | ||
| must be appropriate for the measurement height; these coefficients are | ||
| not universal. Use coefficients fitted to the installation when available. |
There was a problem hiding this comment.
Although true, this sounds a bit misleading. One can more easily change the wind speed from the measured height to the height of interest than fit data. At least mention atmosphere.windspeed_powerlaw.
Do not state Use coefficients fitted to the installation when available.. That is true for all experimental models.
There was a problem hiding this comment.
Do not state
Use coefficients fitted to the installation when available.. That is true for all experimental models.
But it's more true for temperature models!!
There was a problem hiding this comment.
I updated the docstring in 2880b00 to explain how to use pvlib.atmosphere.windspeed_powerlaw to estimate wind speed at 10 m when measurements are taken at another height. I also removed the general advice about fitting coefficients. All 34 temperature tests, Flake8, and git diff --check passed locally. @echedey-ls, could you take another look when you have a chance?
|
@sahaja9707 can you respond to the review comments? |
Thanks for the ping and for the review. Sorry about the delay in the reply. I’ll update the docstring to reuse the existing PVsyst reference, credit PVUSA explicitly, and show how to estimate 10 m wind speed with pvlib.atmosphere.windspeed_powerlaw when the data were measured at another height. I’ll reply in both threads once I’ve pushed the update. |
The named PVsyst temperature presets currently all have
u_v=0, so selecting them does not account for wind speed. Addfreestanding_windwithu_c=25.0andu_v=1.2, the PVUSA correlation described in PVsyst's heat transfer documentation.Document the wind measurement height and the need to match coefficients to the measurement conditions. This addresses the free-standing portion of #2834; rooftop-specific coefficients are outside this change.
Validation: all 34 tests in
tests/test_temperature.pypass; Flake8 on both changed Python files andgit diff --checkpass. A full documentation build has not been run.AI assistance was used to prepare this patch. The coefficients and measurement guidance were checked against the primary source above, and the implementation was tested locally.