Skip to content
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

Inverter Temperature Derate based on Pmax ratio #471

Merged
merged 20 commits into from
Nov 9, 2020

Conversation

mjprilliman
Copy link
Collaborator

@mjprilliman mjprilliman commented Oct 27, 2020

-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

shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
@mjprilliman mjprilliman added this to the SAM 2021 Release milestone Oct 28, 2020
@dguittet
Copy link
Collaborator

See also NREL/SAM#412

shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
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
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

}
double power_ratio = 1.0;
if (m_tempEnabled) {
calculateTempDerate(DCStringVoltage, tempC, powerAC_Watts, power_ratio, tempLoss);
Copy link
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.

test/shared_test/lib_shared_inverter_test.cpp Show resolved Hide resolved
Copy link
Collaborator Author

@mjprilliman mjprilliman left a comment

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

shared/lib_pv_io_manager.cpp Show resolved Hide resolved
double startT2 = 0.0;
double Vdc2 = 0.0;

double p_dc_max = getInverterDCMaxPower(p_dc_rated);
Copy link
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.

shared/lib_shared_inverter.cpp Show resolved Hide resolved
shared/lib_shared_inverter.cpp Show resolved Hide resolved
shared/lib_shared_inverter.cpp Show resolved Hide resolved
shared/lib_shared_inverter.cpp Show resolved Hide resolved
shared/lib_shared_inverter.cpp Show resolved Hide resolved
shared/lib_shared_inverter.h Show resolved Hide resolved
ssc/cmod_pvsamv1.cpp Show resolved Hide resolved
Copy link
Collaborator

@dguittet dguittet left a comment

Choose a reason for hiding this comment

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

Thanks, looks great!

shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
shared/lib_shared_inverter.cpp Outdated Show resolved Hide resolved
@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