Skip to content

Commit

Permalink
Initial setup of separate fuel cell and battery dispatch pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaulgilman committed Aug 25, 2023
1 parent 0f8abb3 commit c552ef8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 4 additions & 2 deletions deploy/runtime/startup.lk
Original file line number Diff line number Diff line change
Expand Up @@ -2733,13 +2733,15 @@ addpage( [[ 'Wind Farm Costs']], { 'sidebar'='Wind Installation Costs', 'help'='
addpage( [[ 'Operating Costs' ]], {'sidebar' = 'Wind Operating Costs', 'help'='oc_operating', 'bin_name'='Wind'} );
//fuel cell
addpage( [[ 'Fuel Cell']], {'sidebar'='Fuel Cell', 'help'='fuelcell_fuel_cell', 'bin_name'='FuelCell'});
//addpage( [[{'name'='Fuel Cell Dispatch Fixed Output', 'caption'='Fixed Output'}], [{'name'='Fuel Cell Dispatch Follow Load', 'caption'='Load Following'}], [{'name'='Fuel Cell Dispatch Manual', 'caption'='Manual'}], [{'name'='Fuel Cell Dispatch Input', 'caption'='Input Dispatch'}]], { 'sidebar'='Fuel Cell Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'fuelcell_dispatch_excl', 'exclusive_header_pages' = ['Fuel Cell Dispatch'], 'exclusive_tabs'=true, 'exclusive_hide'=true} );
addpage( [[{'name'='AA Empty', 'caption'='Fixed Output'}], [{'name'='AA Empty', 'caption'='Load Following'}], [{'name'='AA Empty', 'caption'='Manual'}], [{'name'='AA Empty', 'caption'='Input Dispatch'}]], { 'sidebar'='Fuel Cell Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'fuelcell_dispatch_excl', 'exclusive_header_pages' = ['Fuel Cell Dispatch'], 'exclusive_tabs'=true, 'exclusive_hide'=true, 'bin_name'='FuelCell'} );
addpage( [[ 'Fuel Cell Costs Hybrid' ]], { 'sidebar'='Fuel Cell Installation Costs', 'help'='cc_fuel_cell', 'bin_name'='FuelCell' } );
addpage( [[ 'Operating Costs Fuel Cell Hybrid' ]], { 'sidebar'='Fuel Cell Operating Costs', 'help'='oc_fuel_cell', 'bin_name'='FuelCell' } );
// battery
setup_pages_battery_cell_and_system(false, false); // No REopt and FOM
setup_pages_battery_life();
addpage( [[ {'name'='Battery Dispatch Automated FOM', 'caption'='Automated'} ], [ {'name'='Battery Dispatch Custom Time Series', 'caption'='Custom Time Series'} ], [{'name'='Fuel Cell Dispatch Manual', 'caption'='Manual'}]], { 'sidebar'='Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'batt_dispatch_excl', 'exclusive_header_pages' = ['Fuel Cell Dispatch', 'Battery Dispatch Common', 'Battery Dispatch Standalone Options FOM'], 'exclusive_tabs'=true, 'exclusive_hide'=true} );
addpage( [[ 'Standalone Battery Costs', 'Battery Enable' ]], { 'sidebar'='Battery Installation Costs', 'help'='cc_standalone_battery', 'bin_name'='Battery' } );
addpage( [[ {'name'='Battery Dispatch Automated FOM', 'caption'='Automated'} ], [ {'name'='Battery Dispatch Custom Time Series', 'caption'='Custom Time Series'} ], [ {'name'='Fuel Cell Dispatch Manual', 'caption'='Manual'} ]], { 'sidebar'='Battery Dispatch', 'help'='fuelcell_dispatch', 'exclusive_var' = 'batt_dispatch_excl', 'exclusive_header_pages' = ['Battery Dispatch Common', 'Battery Dispatch Standalone Options FOM'], 'exclusive_tabs'=true, 'exclusive_hide'=true, 'bin_name'='Battery'} );
addpage( [[ 'Standalone Battery Costs'/*, 'Battery Enable' set on battery dispatch automated fom*/ ]], { 'sidebar'='Battery Installation Costs', 'help'='cc_standalone_battery', 'bin_name'='Battery' } );
addpage( [[ 'Operating Costs Standalone Battery']], { 'sidebar'='Battery Operating Costs', 'help'='oc_battery', 'bin_name'='Battery' } );
setup_grid_limits_page();
// single owner
Expand Down
9 changes: 9 additions & 0 deletions deploy/runtime/ui/AA Empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Name": "AA Empty",
"Width": 987.0,
"Height": 1758.0,
"FormObjects": {},
"VarDatabase": {},
"Equations": [],
"Callbacks": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@
"{",
"\tshow_hide_charge_options();",
"\tcheck_auto_ppa();\r",
"\tif ( technology() == 'PVWatts Wind FuelCell Battery Hybrid' \r",
"\t/*if ( technology() == 'PVWatts Wind FuelCell Battery Hybrid' \r",
"\t || technology() == 'Generic PVWatts Wind FuelCell Battery Hybrid' )\r",
"\t{\r",
"\t\tcheck_fuel_cell_dispatch(); // function defined in Fuel Cell Dispatch callback\r",
"\t}\r",
"\t}*/\r",
"\t",
"\tvalue('batt_dispatch_excl', value('batt_dispatch_choice_ui'));",
"};",
Expand Down
5 changes: 3 additions & 2 deletions deploy/runtime/ui/Fuel Cell Dispatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,9 @@
"on_change{'fuelcell_dispatch_choice'} = define()",
"{",
"\tenable_fc_dispatch_options();",
"\ttoggle_dispatch_fc(); // from Fuel Cell Dispatch Manual so manual dispatch options update",
"\tcheck_fuel_cell_dispatch();",
"\t//toggle_dispatch_fc(); // from Fuel Cell Dispatch Manual so manual dispatch options update",
"\tcheck_fuel_cell_dispatch();\r",
"\tvalue('fuelcell_dispatch_excl', value('fuelcell_dispatch_choice'));\r",
"};",
"",
"function enable_fc_dispatch_options()",
Expand Down

0 comments on commit c552ef8

Please sign in to comment.