From ca666740e273c60f629ed7fed895a777d4a0e182 Mon Sep 17 00:00:00 2001 From: Matt Prilliman <54449384+mjprilliman@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:25:51 -0600 Subject: [PATCH] Compare cases should work for all base technologies; battery has separate script --- .../macros/Flat Plate PV/Compare Cases.lk | 966 ++++++++++++++++++ .../macros/Flat Plate PV/PV Compare Cases.lk | 27 +- .../macros/Wind Power/PV Compare Cases.lk | 947 +++++++++++++++++ 3 files changed, 1934 insertions(+), 6 deletions(-) create mode 100644 deploy/runtime/macros/Flat Plate PV/Compare Cases.lk create mode 100644 deploy/runtime/macros/Wind Power/PV Compare Cases.lk diff --git a/deploy/runtime/macros/Flat Plate PV/Compare Cases.lk b/deploy/runtime/macros/Flat Plate PV/Compare Cases.lk new file mode 100644 index 0000000000..fc5d88cb55 --- /dev/null +++ b/deploy/runtime/macros/Flat Plate PV/Compare Cases.lk @@ -0,0 +1,966 @@ +/*@ +This macro allows you to compare multiple PV Battery cases. +This may be helpful for modeling a variety of scenarios, including: +
' + ' | '+cases[3]+' | ' + ''+cases[2]+' | ' + ''+cases[1]+' | ' + ''+cases[0]+' | ' + '
---|---|---|---|---|
Technology | ' + ''+ tech[3] +' | ' + ''+ tech[2] +' | ' + ''+ tech[1] +' | ' + ''+ tech[0] +' | ' + '
Levelized Cost of Energy | ' + ''+ sprintf("$%.2f",lcoe[3]) +' /kWh | ' + ''+ sprintf("$%.2f",lcoe[2]) +' /kWh | ' + ''+ sprintf("$%.2f",lcoe[1]) +' /kWh | ' + ''+ sprintf("$%.2f",lcoe[0]) +' /kWh | ' + '
Annual Energy Production | ' + ''+ sprintf("%,",aep[3]) +' kWh | ' + ''+ sprintf("%,",aep[2]) +' kWh | ' + ''+ sprintf("%,",aep[1]) +' kWh | ' + ''+ sprintf("%,",aep[0]) +' kWh | ' + '
Capacity Factor | ' + ''+ sprintf("%.1f",capacityFactor[3]) +'% | ' + ''+ sprintf("%.1f",capacityFactor[2]) +'% | ' + ''+ sprintf("%.1f",capacityFactor[1]) +'% | ' + ''+ sprintf("%.1f",capacityFactor[0]) +'% | ' + '
Total Installed Cost | ' + ''+ sprintf("$%,",capEx[3]) +' | ' + ''+ sprintf("$%,",capEx[2]) +' | ' + ''+ sprintf("$%,",capEx[1]) +' | ' + ''+ sprintf("$%,",capEx[0]) +' | ' + '
Operational Expenditures (present value) | ' + ''+ sprintf("$%,",opEx[3]) +' | ' + ''+ sprintf("$%,",opEx[2]) +' | ' + ''+ sprintf("$%,",opEx[1]) +' | ' + ''+ sprintf("$%,",opEx[0]) +' | ' + '
Net Present Value | ' + ''+ sprintf("$%,",npv[3]) +' | ' + ''+ sprintf("$%,",npv[2]) +' | ' + ''+ sprintf("$%,",npv[1]) +' | ' + ''+ sprintf("$%,",npv[0]) +' | ' + '
'+sprintf(irr_bill_string)+' | ' + ''+ sprintf("%.1f",irr_bill[3]) +' % | ' + ''+ sprintf("%.1f",irr_bill[2]) +' % | ' + ''+ sprintf("%.1f",irr_bill[1]) +' % | ' + ''+ sprintf("%.1f",irr_bill[0]) +' % | ' + '