Skip to content

Commit

Permalink
IPH Single Owner configurations ready for initial testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Nov 4, 2024
1 parent 2659c60 commit b0a0202
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
31 changes: 30 additions & 1 deletion deploy/runtime/metrics.lk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ function is_btm()
financing() == 'Host Developer' );
}



function rescom_metrics()
{
metric( 'lcoe_nom',{'label'='LCOE Levelized cost of energy nominal', 'post'=' \u00A2/kWh', 'mode'='f', 'deci'='2' } );
Expand Down Expand Up @@ -98,6 +100,32 @@ function so_metrics()
}
}

function so_metrics_heat()
{
metric( 'ppa', {'label'='PPA price in Year 1', 'post'= ' \u00A2/kWht', 'mode'='f', 'deci'='2' } );
metric( 'ppa_escalation', {'label'='PPA price escalation', 'mode'='f', 'post'=' %/year', 'deci'='2' } );
metric( 'lppa_nom', {'label'='LPPA Levelized PPA price nominal', 'mode'='f', 'post'=' \u00A2/kWht', 'deci'='2' } );
metric( 'lppa_real', {'label'='LPPA Levelized PPA price real', 'mode'='f', 'post'=' \u00A2/kWht', 'deci'='2' } );
metric( 'lcoe_nom', {'label'='LCOH Levelized cost of heat nominal', 'post'=' \u00A2/kWht', 'mode'='f', 'deci'='2' } );
metric( 'lcoe_real', {'label'='LCOH Levelized cost of heat real', 'post'=' \u00A2/kWht', 'mode'='f', 'deci'='2' } );
metric( 'project_return_aftertax_npv', {'label'='NPV Net present value', 'mode'='f', 'deci'='0', 'thousep'='true', 'pre'='$', 'post'=' ' } );
metric( 'flip_actual_irr', {'label'='IRR Internal rate of return', 'mode'='f', 'post'=' %', 'deci'='2' } );
metric( 'flip_actual_year', {'label'='Year IRR is achieved', 'post'=' '} );
metric( 'project_return_aftertax_irr', {'label'='IRR at end of project', 'mode'='f', 'post'=' %', 'deci'='2' } );
metric( 'cost_installed', {'label'='Net capital cost', 'mode'='f', 'deci'='0', 'thousep'='true', 'pre'='$', 'post'=' ' } );
metric( 'size_of_equity', {'label'='Equity', 'mode'='f', 'deci'='0', 'thousep'='true', 'pre'='$', 'post'=' ' } );
metric( 'size_of_debt', {'label'='Size of debt', 'mode'='f', 'deci'='0', 'thousep'='true', 'pre'='$', 'post'=' ' } );
if ( value('debt_option')==0 )
{
metric( 'min_dscr', {'label'='Minimum DSCR','mode'='f', 'deci'='2' } );
}
else
{
metric( 'debt_fraction', {'label'='Debt percent','mode'='f', 'deci'='2', 'post'='%' } );
}
}


function mp_metrics()
{
metric( 'lcoe_nom', {'label'='LCOE Levelized cost of energy nominal', 'post'=' \u00A2/kWh', 'mode'='f', 'deci'='2' } );
Expand Down Expand Up @@ -606,7 +634,8 @@ metrics{ 'Host Developer' } = define() { host_developer_metrics(); };
metrics{ 'LCOE Calculator' } = define() { lcoefcr_metrics(); };
metrics{ 'LCOH Calculator' } = define() { iph_lcoefcr_metrics(); };
metrics{ 'Independent Power Producer' } = define() { ipp_metrics(); };
metrics{ 'Single Owner' } = define() { so_metrics(); };
//metrics{ 'Single Owner' } = define() { so_metrics(); };
metrics{ 'Single Owner' } = define() { if (is_iph_tech()) so_metrics_heat(); else so_metrics(); };
metrics{ 'Community Solar' } = define() { cs_metrics(); };
metrics{ 'Merchant Plant' } = define() { mp_metrics(); };
metrics{ 'All Equity Partnership Flip' } = define() { aepf_metrics(); };
Expand Down
8 changes: 4 additions & 4 deletions deploy/runtime/ui/Financial Cash Incentives IPH.json
Original file line number Diff line number Diff line change
Expand Up @@ -6391,7 +6391,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type a Federal PBI amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
"String": "Type a Federal PBI amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
},
"TabOrder": {
"Type": 3.0,
Expand Down Expand Up @@ -6733,7 +6733,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type an Other PBI amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
"String": "Type an Other PBI amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
},
"TabOrder": {
"Type": 3.0,
Expand Down Expand Up @@ -7075,7 +7075,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type a State PBI amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
"String": "Type a State PBI amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
},
"TabOrder": {
"Type": 3.0,
Expand Down Expand Up @@ -7417,7 +7417,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type a Utility PBI amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
"String": "Type a Utility PBI amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation to the PBI amount."
},
"TabOrder": {
"Type": 3.0,
Expand Down
4 changes: 2 additions & 2 deletions deploy/runtime/ui/Financial Tax Credits IPH.json
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type a Federal PTC amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation or escalation to these values."
"String": "Type a Federal PTC amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation or escalation to these values."
},
"TabOrder": {
"Type": 3.0,
Expand Down Expand Up @@ -1979,7 +1979,7 @@
},
"Description": {
"Type": 5.0,
"String": "Type a State PTC amount ($/kWh) for each year. Use nominal dollars. SAM does not apply inflation or escalation to these values."
"String": "Type a State PTC amount ($/MMBtu) for each year. Use nominal dollars. SAM does not apply inflation or escalation to these values."
},
"TabOrder": {
"Type": 3.0,
Expand Down

0 comments on commit b0a0202

Please sign in to comment.