Skip to content

Inverter Temperature Derate based on Pmax ratio#471

Merged
mjprilliman merged 20 commits into
developfrom
inv_temp_derate_pmax
Nov 9, 2020
Merged

Inverter Temperature Derate based on Pmax ratio#471
mjprilliman merged 20 commits into
developfrom
inv_temp_derate_pmax

Conversation

@mjprilliman

@mjprilliman mjprilliman commented Oct 27, 2020

Copy link
Copy Markdown
Collaborator

-Changed inverter derate table to be based on ratio of max output power to rated power rather than efficiency
-Update Y-axis label to reflect the ratio rather than the percentage
-Update default inverter temperature derate table to reflect more realistic examples (resource provided by Will Hobbs from Southern Company: https://files.sma.de/downloads/Temp-Derating-TI-en-15.pdf)
-Closes #442

Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
@mjprilliman mjprilliman requested a review from dguittet October 27, 2020 20:00
@mjprilliman mjprilliman added this to the SAM 2021 Release milestone Oct 28, 2020
@dguittet

Copy link
Copy Markdown
Collaborator

See also NatLabRockies/SAM#412

Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
for (size_t i = 0; i < DCStringVoltage.size(); i++)
avgDCVoltage += DCStringVoltage[i];
avgDCVoltage /= DCStringVoltage.size();
calculateTempDerate(avgDCVoltage, tempC, powerAC_Watts, power_ratio, tempLoss);

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.

tempLoss will now be in DC. So any comments and the var_info table label should specify that

Comment thread shared/lib_shared_inverter.cpp Outdated
}
double power_ratio = 1.0;
if (m_tempEnabled) {
calculateTempDerate(DCStringVoltage, tempC, powerAC_Watts, power_ratio, tempLoss);

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.

Since this code is now working to potentially clip the input DC power, this should be done before the calls to acpower.

Comment thread test/shared_test/lib_shared_inverter_test.cpp

@mjprilliman mjprilliman left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@dguittet Need input on how to handle PVYield inverter derate

Comment thread shared/lib_pv_io_manager.cpp
double startT2 = 0.0;
double Vdc2 = 0.0;

double p_dc_max = getInverterDCMaxPower(p_dc_rated);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added function to get rated DC power from inverter.

Comment thread shared/lib_shared_inverter.cpp
Comment thread shared/lib_shared_inverter.cpp
Comment thread shared/lib_shared_inverter.cpp
Comment thread shared/lib_shared_inverter.cpp
Comment thread shared/lib_shared_inverter.cpp
Comment thread shared/lib_shared_inverter.h
Comment thread ssc/cmod_pvsamv1.cpp
Comment thread test/shared_test/lib_shared_inverter_test.cpp Outdated
@mjprilliman mjprilliman requested a review from dguittet November 3, 2020 22:32

@dguittet dguittet 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.

Thanks, looks great!

Comment thread shared/lib_shared_inverter.cpp Outdated
Comment thread shared/lib_shared_inverter.cpp Outdated
@mjprilliman mjprilliman merged commit ee314f4 into develop Nov 9, 2020
@dguittet dguittet deleted the inv_temp_derate_pmax branch December 23, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inverter Temperature Derate of Max Power

2 participants