Adds faiman_rad and ross models to get_cell_temperature().#2631
Adds faiman_rad and ross models to get_cell_temperature().#2631ramaroesilva wants to merge 26 commits intopvlib:mainfrom
Conversation
|
Have included tests for the added temperature models. @adriesse, for the
Afterwards, I can get the expected output by running pvlib.temperature.faiman_rad for |
For the test it doesn't really matter what the values are, and what you've done seems fine. Not sure if you want to keep ir_down a scalar as discussed above. In practice the reduction in U values will depend on the ir_down conditions at the location. |
cwhanse
left a comment
There was a problem hiding this comment.
@ramaroesilva this fell off my radar, sorry. I don't have an opinion about the ross wind_speed accommodation. The if structure is OK with me, it's easy for a functools novice to understand :)
|
@adriesse @kandersolar nudging you if you wanted to look at this lingering PR again. |
I'm not familiar with the PVSystem class. |
…ystem-temp-models
Co-authored-by: Echedey Luis <80125792+echedey-ls@users.noreply.github.com> Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
|
@kandersolar @echedey-ls please take at look at this clean up |
kandersolar
left a comment
There was a problem hiding this comment.
Let's name the parameter longwave_down instead of ir_down, towards #2653
|
ugh - something about end of line characters and now every line in pvsystem.py is marked as changed. Reverting, I'll replace |
ef2f7b4 to
d55cf78
Compare
pvlib/pvsystem.py
Outdated
| self.temperature_model_parameters) | ||
| elif model == 'faiman_rad': | ||
| func = functools.partial(temperature.faiman_rad, | ||
| longwave_down=longwave_down) |
There was a problem hiding this comment.
| longwave_down=longwave_down) | |
| ir_down=longwave_down) |
We haven't renamed the parameter name in temperature.faiman_rad yet
There was a problem hiding this comment.
Took me an iteration to understand this
|
@kandersolar replacing |
docs/sphinx/source/referencefor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.Differently from what was originally discussed with @cwhanse and @echedey-ls, I decided not to include a verification on whether both k and noct are provided within
get_cell_temperature. imo, this type of verification should be (and is) done within thetemperature.rossfunction itself and we see that the opposite situation - expected parameters not being provided - is never verified withinget_cell_temperatureas I imagine it is done within each temperature model function.@cwhanse about wind and
rossmodel, if that's okay I still included a small note in thewind_speeddescription to alertrossusers that providing aNoneis enough.