Skip to content

Om cost inputs#927

Merged
cpaulgilman merged 14 commits into
patchfrom
om_cost_inputs
Feb 11, 2022
Merged

Om cost inputs#927
cpaulgilman merged 14 commits into
patchfrom
om_cost_inputs

Conversation

@cpaulgilman

@cpaulgilman cpaulgilman commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator

Description

This PR fixes several issues with O&M cost inputs and cash flow outputs:

  • Remove duplicate cf_om_batt_production_expense battery O&M variables for LCOS calculations.

  • Remove non-battery O&M costs from cash flow for standalone battery configurations.

  • For fuel cell model, disable battery O&M cost inputs when battery not enabled, and display a UI message if those inputs are set to non-zero by a script or opening an old file. This is not enforced in SSC, so SDK users could model battery O&M costs for a system with no batteries.

  • Set default fuel cell O&M cost by capacity and replacement cost to zero so that battery O&M cost is not included in operating expenses when battery is disabled. This changes the default LCOE for Fuel Cell configurations, so requires running test script.

  • Show LCOS calculations in cash flow for all battery configs, not just "has_roe()" configs.

  • Remove has_roe flag from cash flow script because we removed ROE metric in Retire PV India Wizard #549

  • Use consistent SSC group names for O&M outputs "Cash Flow Operating Expenses" (output group names do not affect PySAM). Note that Sale Leaseback uses "Sale Leaseback" for most output variables.

  • Add battery and fuel cell O&M costs to cash flow calculations in SSC for LPF, AEPF, SLB, and Host Developer financial models.

  • Add cf_energy_without_battery to all financial models based on implementation in Single Owner.

  • Fix variable O&M for FOM and BTM with battery configurations.

  • Remove redundant sales_energy_value.

  • Use consistent variable labels for cash flow energy terms: Electricity to grid, Electricity from grid, Electricity to grid net

Fixes #901 and #880

Goes with NatLabRockies/ssc#753

Type of change

Please delete options that are not relevant.

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ x] This change requires a documentation update

Checklist:

If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

  • [x ] My code follows the style guidelines of this project
  • [x ] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • [ x] I have made corresponding changes to the documentation
  • [ x] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • [x ] I have checked my code and corrected any misspellings

cpaulgilman and others added 11 commits February 7, 2022 09:08
Set battery O&M cost to zero for fuel cell

Change "energy" in metrics, autograph and loss diagram labels to "electricity"

Fix operating expenses in cash flow

Fix URDB URL in webapis.conf
* Set default battery O&M and replacement cost to zero  for fuel cell configs to fix issue with total operating cost including battery costs when battery disabled. This changes the default LCOE for fuel cell configs.

* Disable battery O&M cost inputs on fuel cell operating costs page when battery disabled, and add UI text instructions.

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

Battery / Residential configuration has issues with "Electricity to grid net" in cash flow.
Year 1 value = sum("Energy to load from battery (kWh))" value (sign change if compared to no system maybe?):
image

@cpaulgilman cpaulgilman requested a review from sjanzou February 11, 2022 17:42
@cpaulgilman cpaulgilman dismissed sjanzou’s stale review February 11, 2022 19:34

Changes have been addressed. Ready to merge this PR so I can include this work in Send to Excel with Equations fixes.

@cpaulgilman cpaulgilman merged commit 6b8c680 into patch Feb 11, 2022
@cpaulgilman cpaulgilman deleted the om_cost_inputs branch February 11, 2022 19:35

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

Approved in ssc 753

@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Feb 21, 2022
@cpaulgilman cpaulgilman mentioned this pull request Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

O&M Bug in Standalone Battery

3 participants