Skip to content

Fix standalone battery capacity factor, add sales capacity factor#820

Merged
brtietz merged 4 commits into
patchfrom
standalone_capacity_factor
May 31, 2022
Merged

Fix standalone battery capacity factor, add sales capacity factor#820
brtietz merged 4 commits into
patchfrom
standalone_capacity_factor

Conversation

@mjprilliman

Copy link
Copy Markdown
Collaborator

-Remove 0 initialization for capacity factor to allow for capacity factor calculation
-Add capacity factor based on energy sales within gen for standalone battery, generic battery (should it be there for all technologies?)
-Fixes #819

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

Code makes sense, pending Paul's approval of names. Does there need to be an associated SAM PR to add this to the stand-alone battery metrics table?

Comment thread ssc/cmod_battery.cpp Outdated
{ SSC_INPUT, SSC_NUMBER, "run_resiliency_calcs", "Enable resilence calculations for every timestep", "0/1", "0=DisableCalcs,1=EnableCalcs", "Load", "?=0", "", "" },
{ SSC_INOUT, SSC_NUMBER, "capacity_factor", "Capacity factor", "%", "", "System Output", "?=0", "", "" },
{ SSC_INOUT, SSC_NUMBER, "capacity_factor", "Capacity factor", "%", "", "System Output", "", "", "" },
{ SSC_OUTPUT, SSC_NUMBER, "capacity_factor_sales", "Capacity factor based on energy sales", "%", "", "System Output", "", "", "" },

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 think our preferred language here is "Capacity factor based on energy to grid" - "energy sales" is sort of internal code lingo.

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

Looks good after my label changes per email discussion.

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.

Capacity Factor reporting NaN for standalone battery configs

3 participants