Skip to content

PV subhourly clipping correction#1050

Merged
mjprilliman merged 18 commits into
developfrom
pv-subhourly-clipping
Sep 15, 2023
Merged

PV subhourly clipping correction#1050
mjprilliman merged 18 commits into
developfrom
pv-subhourly-clipping

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Implements Allen method of correcting PV energy output by underprediction of clipping at hourly intervals.
-SDK feature for modifying default correction lookup matrix
-Adds Ineichen clearsky model for all irradiance calculations
-Adds tests of subhourly clipping calculation, Ineichen implementation

@mjprilliman mjprilliman added enhancement pv photovoltaic, pvsam, pvwatts labels Sep 13, 2023
@mjprilliman mjprilliman added this to the SAM Fall 2023 Release milestone Sep 13, 2023
@mjprilliman mjprilliman self-assigned this Sep 13, 2023

@janinefreeman janinefreeman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job implementing a complex model, that needs to carry through to a bunch of different parts of the code! I do have some comments on a few workflow changes (posted in-line). I think they are mostly smaller changes. Happy to talk through any of my thoughts/comments.

Comment thread shared/lib_pv_io_manager.cpp Outdated
Comment thread ssc/cmod_pvsamv1.cpp Outdated
Comment thread ssc/cmod_pvsamv1.cpp Outdated
Comment thread ssc/cmod_pvsamv1.cpp Outdated
Comment thread ssc/cmod_pvsamv1.cpp
{ SSC_OUTPUT, SSC_ARRAY, "inv_total_loss", "Inverter total power loss", "kW", "", "Time Series (Inverter)", "*", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "ac_wiring_loss", "AC wiring loss", "kW", "", "Time Series (Inverter)", "*", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "ac_gross", "Inverter AC output power", "kW", "", "Time Series (Array)", "*", "", "" },
{ SSC_OUTPUT, SSC_ARRAY, "clipping_potential", "Clipping potential", "", "", "Time Series (Inverter)", "", "", "" },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three outputs should be conditionally assigned, only if the subhourly clipping model is enabled, I think. @cpaulgilman - what do you think?

Comment thread ssc/cmod_pvsamv1.cpp
// annual_ac_gross
{ SSC_OUTPUT, SSC_NUMBER, "annual_ac_inv_eff_loss_percent", "AC inverter efficiency loss", "%", "", "Loss", "", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "annual_ac_wiring_loss_percent", "AC wiring loss", "%", "", "Loss", "", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "annual_subhourly_clipping_loss_percent", "Subhourly clipping correction loss percent", "%", "", "Loss", "", "", "" },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpaulgilman curious on your thoughts if this output should be reported if the subhourly clipping loss model isn't enabled. I don't have a strong opinion one way or the other for the annual results.

Comment thread ssc/cmod_pvsamv1.cpp Outdated
Comment thread ssc/cmod_pvsamv1.cpp Outdated
@mjprilliman mjprilliman requested review from cpaulgilman and janinefreeman and removed request for brtietz September 14, 2023 21:54
@mjprilliman mjprilliman merged commit 2267513 into develop Sep 15, 2023
@mjprilliman mjprilliman deleted the pv-subhourly-clipping branch September 15, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants