Skip to content

Standalone battery models in SAM#659

Merged
mjprilliman merged 19 commits into
developfrom
standalone_battery
Nov 17, 2021
Merged

Standalone battery models in SAM#659
mjprilliman merged 19 commits into
developfrom
standalone_battery

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-gen is always zero for standalone battery model cases
-en_standalone_batt variable controls compute module behavior for standalone batteries
-Otherwise battery model runs as normal

@mjprilliman mjprilliman added this to the SAM Fall 2021 Release milestone Nov 15, 2021
@mjprilliman mjprilliman self-assigned this Nov 15, 2021
Comment thread ssc/cmod_battery.cpp Outdated
// System generation output, which is lifetime (if system_lifetime_output == true);
std::vector<ssc_number_t> power_input_lifetime = as_vector_ssc_number_t("gen");
if (as_boolean("en_standalone_batt")) {
power_input_lifetime.resize(8760.0 * as_integer("analysis_period"), 0.0);

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.

I expect users will complain about only being able to run this on an hourly basis. For behind the meter, we can match the frequency of the load profile. How should we handle setting the time step for front of meter?

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.

Maybe make an optional timestep input that keys off of the size of the curtailment array?

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.

That makes sense to me for this release, at least. The battery needs the curtailment array anyway for powerflow calculations, so might as well use it for timestep.

@brtietz brtietz self-requested a review November 16, 2021 19:36
@mjprilliman mjprilliman merged commit ea04313 into develop Nov 17, 2021
@brtietz brtietz deleted the standalone_battery branch December 13, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants