Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capacity factor input to tidal turbine ssc_eqn #1218

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ssc/cmod_mhk_eqns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ bool me_array_cable_length(ssc_data_t data)
vt_get_number(vt, "water_depth", &water_depth);
vt_get_number(vt, "number_devices", &number_devices);
vt_get_number(vt, "distance_to_shore", &distance_to_shore);



double length = (devices_per_row - 1) * device_spacing_in_row * number_rows + row_spacing * (number_rows - 1);
Expand Down Expand Up @@ -98,9 +99,9 @@ bool tidal_turbine_calculate_powercurve(ssc_data_t data)

double rotor_diameter, cut_in,
cut_out, rotor_area, number_rotors = 0;
double target_cf = 0.3;
double rated_power_rotor = 0;
double generator_rated_capacity = 0;
double target_cf = 0;
util::matrix_t<double> tidal_resource;
std::vector<double> pto_efficiency;
std::vector<double> max_cp;
Expand All @@ -112,6 +113,7 @@ bool tidal_turbine_calculate_powercurve(ssc_data_t data)
vt_get_array_vec(vt, "pto_efficiency", pto_efficiency);
vt_get_number(vt, "cut_in", &cut_in);
vt_get_number(vt, "cut_out", &cut_out);
vt_get_number(vt, "target_cf", &target_cf);
vt_get_matrix(vt, "tidal_resource", tidal_resource);
//vt_get_number(vt, "generator_rated_capacity", &generator_rated_capacity);
//vt_get_number(vt, "tidal_turbine_target_cf", &target_cf);
Expand All @@ -136,6 +138,7 @@ bool tidal_turbine_calculate_powercurve(ssc_data_t data)
powercurve_powerout.resize(array_size);
powercurve_powerout_rated.resize(array_size);
rotor_area = pow((rotor_diameter / 2), 2) * M_PI * number_rotors;
target_cf = target_cf / 100.0;
double tidal_vel, p_fluid, p_rotor, eff, p_electric;
double tidal_freq = 0;
double max_cp_value, pto_eff_value;
Expand Down