Standalone battery models in SAM#659
Merged
Merged
Conversation
Added standalone battery enable boolean SSC variable
system_capacity in singleowner.cpp
brtietz
reviewed
Nov 15, 2021
| // 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); |
Collaborator
There was a problem hiding this comment.
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?
Collaborator
Author
There was a problem hiding this comment.
Maybe make an optional timestep input that keys off of the size of the curtailment array?
Collaborator
There was a problem hiding this comment.
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.
cpaulgilman
approved these changes
Nov 16, 2021
variables not present in standalone battery configurations
brtietz
approved these changes
Nov 16, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-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