Skip to content

Commit

Permalink
PVWatts - Wind - Fuel Cell - Battery / single Owner running
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Aug 22, 2023
1 parent e65d5ce commit a5b8431
Show file tree
Hide file tree
Showing 7 changed files with 18,559 additions and 330 deletions.
17 changes: 17 additions & 0 deletions deploy/runtime/autographs.lk
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,23 @@ autographs { 'PVWatts Wind Battery Hybrid|Single Owner' } = define () {
};


autographs { 'PVWatts Wind FuelCell Battery Hybrid|Single Owner' } = define () {
// monthly energy
//agraph( 'monthly_energy,year1_monthly_load', 'Monthly AC Energy and Load in Year 1', '', 'kWh', -1, true, true, 'bottom' );
agraph( 'pvwatts_monthly_energy,wind_monthly_energy', 'Monthly AC Energy in Year 1', '', 'kWh' , -1, false, true, 'bottom', 1 );
// heatmaps
agraph( 'pvwatts_annual_energy_distribution_time', 'PV annual AC energy in Year 1 (kW)', 'Day', 'Hour', -1, true, false, 'bottom', 4);
agraph( 'wind_annual_energy_distribution_time', 'Wind annual AC energy in Year 1 (kW)', 'Day', 'Hour', -1, true, false, 'bottom', 4);
// losses
if (varinfo('wind_total_uncert')){
columns = 'wind_avail_losses,wind_elec_losses,wind_env_losses,ops_losses,wind_turb_losses,wind_wake_losses';
agraph(columns, 'Wind energy Loss', '', '%', -1, false, true, 'right');
}
// single owner
ppa_revenue_graphs(); ppa_financial_graphs();
};


autographs { 'PVWatts Wind Battery Hybrid|Host Developer' } = define () {
// monthly energy
//agraph( 'monthly_energy,year1_monthly_load', 'Monthly AC Energy and Load in Year 1', '', 'kWh', -1, true, true, 'bottom' );
Expand Down
9 changes: 8 additions & 1 deletion deploy/runtime/cashflow.lk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function is_fuel_tech()
function cf_production()
{
cfline( 'ENERGY', -1);
if ( technology() == 'PVWatts Wind Battery Hybrid')
if (( technology() == 'PVWatts Wind Battery Hybrid') || ( technology() == 'PVWatts Wind FuelCell Battery Hybrid') )
{
cfline( 'pvwatts_cf_energy_net',0);
cfline( 'wind_cf_energy_net',0);
Expand Down Expand Up @@ -255,6 +255,13 @@ function cf_om_expenses()
cfline( 'wind_cf_om_fixed,wind_cf_om_production,wind_cf_om_capacity',0);
cfline( 'battery_cf_om_fixed,battery_cf_om_production,battery_cf_om_capacity,battery_cf_battery_replacement_cost_schedule',0);
}
if ( technology() == 'PVWatts Wind FuelCell Battery Hybrid')
{
cfline( 'pvwatts_cf_om_fixed,pvwatts_cf_om_production,pvwatts_cf_om_capacity,pvwatts_cf_om_land_lease',0);
cfline( 'wind_cf_om_fixed,wind_cf_om_production,wind_cf_om_capacity',0);
cfline( 'fuelcell_cf_om_fixed,fuelcell_cf_om_production,fuelcell_cf_om_capacity,fuelcell_cf_fuelcell_replacement_cost_schedule',0);
cfline( 'battery_cf_om_fixed,battery_cf_om_production,battery_cf_om_capacity,battery_cf_battery_replacement_cost_schedule',0);
}

}

Expand Down
Loading

0 comments on commit a5b8431

Please sign in to comment.