Repository navigation
Add wind-dependent freestanding PVsyst temperature preset #2938
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
Open
sahaja9707
wants to merge
2
commits into
pvlib:main
Choose a base branch
from
sahaja9707:codex/2834-pvsyst-wind
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−14
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |||||||||||
| 'insulated_back_glass_polymer': {'a': -2.81, 'b': -.0455, 'deltaT': 0}, | ||||||||||||
| }, | ||||||||||||
| 'pvsyst': {'freestanding': {'u_c': 29.0, 'u_v': 0}, | ||||||||||||
| 'freestanding_wind': {'u_c': 25.0, 'u_v': 1.2}, | ||||||||||||
| 'insulated': {'u_c': 15.0, 'u_v': 0}, | ||||||||||||
| 'semi_integrated': {'u_c': 20.0, 'u_v': 0}} | ||||||||||||
| } | ||||||||||||
|
|
@@ -342,8 +343,8 @@ def pvsyst_cell(poa_global, temp_air, wind_speed=1.0, u_c=29.0, u_v=0.0, | |||||||||||
|
|
||||||||||||
| wind_speed : numeric, default 1.0 | ||||||||||||
| Wind speed in m/s measured at the same height for which the wind loss | ||||||||||||
| factor was determined. The default value 1.0 m/s is the wind | ||||||||||||
| speed at module height used to determine NOCT. [m/s] | ||||||||||||
| factor was determined. See Notes for the ``freestanding_wind`` | ||||||||||||
| parameter set. [m/s] | ||||||||||||
|
|
||||||||||||
| u_c : float, default 29.0 | ||||||||||||
| Combined heat loss factor coefficient. The default value is | ||||||||||||
|
|
@@ -388,15 +389,23 @@ def pvsyst_cell(poa_global, temp_air, wind_speed=1.0, u_c=29.0, u_v=0.0, | |||||||||||
| factors provided represent the combined effect of convection, radiation and | ||||||||||||
| conduction, and their values are experimentally determined. | ||||||||||||
|
|
||||||||||||
| +-----------------+---------------+---------------+ | ||||||||||||
| | Mounting | :math:`U_{c}` | :math:`U_{v}` | | ||||||||||||
| +=================+===============+===============+ | ||||||||||||
| | freestanding | 29.0 | 0.0 | | ||||||||||||
| +-----------------+---------------+---------------+ | ||||||||||||
| | insulated | 15.0 | 0.0 | | ||||||||||||
| +-----------------+---------------+---------------+ | ||||||||||||
| | semi_integrated | 20.0 | 0.0 | | ||||||||||||
| +-----------------+---------------+---------------+ | ||||||||||||
| +-------------------+---------------+---------------+ | ||||||||||||
| | Parameter set | :math:`U_{c}` | :math:`U_{v}` | | ||||||||||||
| +===================+===============+===============+ | ||||||||||||
| | freestanding | 29.0 | 0.0 | | ||||||||||||
| +-------------------+---------------+---------------+ | ||||||||||||
| | freestanding_wind | 25.0 | 1.2 | | ||||||||||||
| +-------------------+---------------+---------------+ | ||||||||||||
| | insulated | 15.0 | 0.0 | | ||||||||||||
| +-------------------+---------------+---------------+ | ||||||||||||
| | semi_integrated | 20.0 | 0.0 | | ||||||||||||
| +-------------------+---------------+---------------+ | ||||||||||||
|
|
||||||||||||
| The ``freestanding_wind`` parameter set uses the PVUSA coefficients | ||||||||||||
| reported by PVsyst [1]_ for open-rack systems with meteorological wind | ||||||||||||
| data, typically measured at 10 m above ground. If wind speed is measured | ||||||||||||
| at another height, use :py:func:`~pvlib.atmosphere.windspeed_powerlaw` | ||||||||||||
| to estimate the wind speed at 10 m before passing it to this function. | ||||||||||||
|
Comment on lines
+404
to
+408
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.
Suggested change
This goes in the text above the table. |
||||||||||||
|
|
||||||||||||
| Mounting cases can be described in terms of air flow across and around the | ||||||||||||
| rear-facing surface of the module: | ||||||||||||
|
|
@@ -410,9 +419,10 @@ def pvsyst_cell(poa_global, temp_air, wind_speed=1.0, u_c=29.0, u_v=0.0, | |||||||||||
|
|
||||||||||||
| References | ||||||||||||
| ---------- | ||||||||||||
| .. [1] "PVsyst 7 Help", [Online]. Available: | ||||||||||||
| https://www.pvsyst.com/help/index.html?thermal_loss.htm. | ||||||||||||
| [Accessed: 30-Jan-2024]. | ||||||||||||
| .. [1] 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: 2-Dec-2026]. | ||||||||||||
|
|
||||||||||||
| .. [2] Faiman, D. (2008). "Assessing the outdoor operating temperature of | ||||||||||||
| photovoltaic modules." Progress in Photovoltaics 16(4): 307-315. | ||||||||||||
|
|
||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -78,6 +78,14 @@ def test_pvsyst_cell_kwargs(): | |||||||||||||
| assert_allclose(result, 33.315, 0.001) | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| def test_pvsyst_cell_freestanding_wind(): | ||||||||||||||
| params = temperature._temperature_model_params( | ||||||||||||||
| 'pvsyst', 'freestanding_wind') | ||||||||||||||
| result = temperature.pvsyst_cell(1000, 20, wind_speed=np.array([0, 5]), | ||||||||||||||
| **params) | ||||||||||||||
| assert_allclose(result, [52.4, 46.12903226]) | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
|
Comment on lines
+81
to
+88
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.
Suggested change
This is not needed. |
||||||||||||||
| def test_pvsyst_cell_ndarray(): | ||||||||||||||
| temps = np.array([0, 10, 5]) | ||||||||||||||
| irrads = np.array([0, 500, 0]) | ||||||||||||||
|
|
||||||||||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to call out one specific parameter set when all are mentioned in the Notes.