NREL / SAM

System Advisor Model (SAM)
BSD 3-Clause "New" or "Revised" License
345 stars 142 forks source link

LCOE real for PV + Storage discrepancy in the cash flow 'send to Excel with equations' workbook. #1403

Closed TheMakiran closed 1 year ago

TheMakiran commented 1 year ago

Describe the bug

We noted a difference in the LCOE real as reported in the Summary tab compared to the cash flow workbook created with 'send to Excel with equations'. The values are equivalent when modelling PV only, but when modelling Storage only or PV + Storage, the discrepancy occurs. For our PV + Storage model, the Summary report shows a real LCOE is 16.91 R / kWh. In the excel workbook, the real LCOE is R 2.86. When I model the PV only system with a higher installation cost that matches the cost of the PV + Storage, the real LCOE is 2.53 R/kWh in both the summary report and the excel workbook. The 16.91 R / kWh seems much too high for the PV + storage.

To Reproduce

Steps to reproduce the behavior:

  1. Create a 'PV-Battery, Commercial' model
  2. Simulate
  3. Note the real LCOE on the Summary Tab
  4. Click on the 'Cash Flow' tab
  5. 'Send to Excel with equations'
  6. Note the real LCOE on the 'Inputs and Outputs' tab

Expected behavior

I expect the reported real LCOE to be similar, maybe with 5% due to the limited functionality of the excel workbook model, not 5x or so as noted.

Screenshots

See attachments. Note the values are in Rand-cents, not USD-cents

Operating System and Version

Additional context

pv_storage_summary_report 20230510 S8_pv_storage.xlsx

I attached the summary report and the excel workbook for the PV + storage project.

TheMakiran commented 1 year ago

This discrepancy only seems to occur when I include a 'grid outage' profile profile.

cpaulgilman commented 1 year ago

@TheMakiran Thank you for reporting this issue. We'll need to check that the Excel workbook for SAM's "Send to Excel with Equations" feature is working correctly with grid outage data from SAM. In this special case (battery storage with grid outage), the Excel workbook is not replicating SAM's cash flow calculations correctly.

cpaulgilman commented 1 year ago

Also note issue with BTM battery O&M costs in Excel spreadsheet (need to check for Fuel Cell and other techs as well): https://sam.nrel.gov/forum/forum-general/4240

cpaulgilman commented 1 year ago

Also:

When using Detailed PV-battery model, in SAM cashflow includes battery operating expenses and information about energy discharged annualy:

thumbnail_image

But spreadsheet generated with your default file do not.

thumbnail_image-1

When using merchant model the are present:

thumbnail_image