Skip to content

Commit

Permalink
Merge pull request #1091 from NREL/pysam_hybrids
Browse files Browse the repository at this point in the history
Update for pysam hybrids
  • Loading branch information
sjanzou authored Mar 6, 2024
2 parents 177b903 + c556803 commit 222bde6
Show file tree
Hide file tree
Showing 20 changed files with 2,270 additions and 97,348 deletions.
16 changes: 8 additions & 8 deletions ssc/cmod_battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,16 @@ var_info vtab_battery_inputs[] = {
{ SSC_INPUT, SSC_NUMBER, "batt_cycle_cost_choice", "Use SAM cost model for degradaton penalty or input custom via batt_cycle_cost", "0/1", "0=UseCostModel,1=InputCost", "BatteryDispatch", "?=0", "", "" },
{ SSC_INPUT, SSC_ARRAY, "batt_cycle_cost", "Input battery cycle degradaton penalty per year", "$/cycle-kWh","length 1 or analysis_period, length 1 will be extended using inflation", "BatteryDispatch", "batt_cycle_cost_choice=1", "", "" },

{ SSC_INPUT, SSC_NUMBER, "inflation_rate", "Inflation rate", "%", "", "Lifetime", "?=0", "MIN=-99", "" },
{ SSC_INPUT, SSC_ARRAY, "load_escalation", "Annual load escalation", "%/year", "", "Load", "?=0", "", "" },
{ SSC_INPUT, SSC_ARRAY, "om_batt_replacement_cost" , "Replacement cost 1" , "$/kWh" , "" , "System Costs" , "?=0.0" , "" , "" },
{ SSC_INPUT, SSC_NUMBER, "om_replacement_cost_escal" , "Replacement cost escalation" , "%/year" , "" , "System Costs" , "?=0.0" , "" , "" },
{ SSC_INPUT, SSC_NUMBER, "inflation_rate", "Inflation rate", "%", "", "Lifetime", "?=0", "MIN=-99", "" },
{ SSC_INPUT, SSC_ARRAY, "load_escalation", "Annual load escalation", "%/year", "", "Load", "?=0", "", "" },
{ SSC_INPUT, SSC_ARRAY, "om_batt_replacement_cost", "Replacement cost 1", "$/kWh", "", "System Costs" , "?=0.0" , "" , "" },
{ SSC_INPUT, SSC_NUMBER, "om_replacement_cost_escal", "Replacement cost escalation", "%/year", "", "System Costs" , "?=0.0" , "" , "" },

{ SSC_INPUT,SSC_ARRAY , "om_batt_variable_cost" , "Battery production-based System Costs amount" , "$/MWh" , "" , "System Costs" , "?=0.0" , "" , "" },
{ SSC_INPUT, SSC_NUMBER, "om_production_escal", "Production-based O&M escalation", "%/year", "", "System Costs", "?=0.0", "", "" },
{ SSC_INPUT, SSC_ARRAY, "om_batt_variable_cost", "Battery production-based System Costs amount", "$/MWh", "", "System Costs" , "?=0.0" , "" , "" },
{ SSC_INPUT, SSC_NUMBER, "om_production_escal", "Production-based O&M escalation", "%/year", "", "System Costs", "?=0.0", "", "" },

// Powerflow calculation inputs
{ SSC_INPUT, SSC_ARRAY, "fuelcell_power", "Electricity from fuel cell AC", "kW", "", "FuelCell", "", "", "" },
{ SSC_INPUT, SSC_ARRAY, "fuelcell_power", "Electricity from fuel cell AC", "kW", "", "FuelCell", "", "", "" },


var_info_invalid
Expand Down Expand Up @@ -2261,7 +2261,7 @@ class cm_battery : public compute_module
add_var_info(vtab_resilience_outputs);
add_var_info(vtab_utility_rate_common);
add_var_info(vtab_grid_curtailment);
add_var_info(vtab_hybrid_tech_om);
add_var_info(vtab_hybrid_tech_om_outputs);

}

Expand Down
2 changes: 1 addition & 1 deletion ssc/cmod_fuelcell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ cm_fuelcell::cm_fuelcell()
add_var_info(vtab_fuelcell_input);
add_var_info(vtab_fuelcell_output);
add_var_info(vtab_technology_outputs);
add_var_info(vtab_hybrid_tech_om);
add_var_info(vtab_hybrid_tech_om_outputs);
}

// Have to add this since compute module isn't actually fully constructed until compute is called with
Expand Down
2 changes: 1 addition & 1 deletion ssc/cmod_generic_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class cm_generic_system : public compute_module
// performance adjustment factors
add_var_info(vtab_adjustment_factors);
add_var_info(vtab_technology_outputs);
add_var_info(vtab_hybrid_tech_om);
add_var_info(vtab_hybrid_tech_om_outputs);
}

void exec( )
Expand Down
Loading

0 comments on commit 222bde6

Please sign in to comment.