Skip to content

Commit

Permalink
Update lifetime wave mode for wave battery module
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Feb 28, 2024
1 parent e5c0c9c commit 5a5dfae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssc/cmod_mhk_wave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ class cm_mhk_wave : public compute_module
size_t nyears = 1;
std::vector<ssc_number_t> sys_degradation;
size_t number_records_gen = number_records;
if (number_records == 2920) number_records_gen *= 3.0;


/*
Expand Down Expand Up @@ -584,7 +585,7 @@ class cm_mhk_wave : public compute_module
sys_degradation.push_back(1); // single year mode - degradation handled in financial models.
}
ssc_number_t* energy_hourly_kWh = allocate("energy_hourly_kWh", number_records_gen);
ssc_number_t* energy_hourly_kW = allocate("energy_hourly_kW", 8760); //8760 of kW values
ssc_number_t* energy_hourly_kW = allocate("energy_hourly_kW", number_records_gen); //8760 of kW values
ssc_number_t* energy_hourly_gen = allocate("gen", number_records_gen);
ssc_number_t* sig_wave_height_index_mat = allocate("sig_wave_height_index_mat", number_records);
ssc_number_t* sig_wave_height_data = allocate("sig_wave_height_data", number_records);
Expand Down

0 comments on commit 5a5dfae

Please sign in to comment.