Skip to content

Commit

Permalink
Add ssc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Oct 24, 2023
1 parent a8563a6 commit 5d389f2
Show file tree
Hide file tree
Showing 4 changed files with 17,583 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/input_cases/pvsamv1_common_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ char subarray1_shading[256] = {};
char subarray2_shading[256] = {};
char temperature_path[256] = {};
char solar_resource_path_15min_fail[256] = {};
char measured_temp_array_path[256] = {};
char custom_rot_angle_array_path[256] = {};

int n1 = sprintf(solar_resource_path, "%s/test/input_cases/pvsamv1_data/USA AZ Phoenix (TMY2).csv", SSCDIR);
int n2 = sprintf(load_profile_path, "%s/test/input_cases/pvsamv1_data/pvsamv1_residential_load.csv", SSCDIR);
Expand All @@ -52,6 +54,8 @@ int n6 = sprintf(subarray1_shading, "%s/test/input_cases/pvsamv1_data/subarray1_
int n7 = sprintf(subarray2_shading, "%s/test/input_cases/pvsamv1_data/subarray2_shading_timestep.csv", SSCDIR);
int n8 = sprintf(temperature_path, "%s/test/input_cases/battery_data/batt_room_temperature_celsius_60min.csv", SSCDIR);
int n9 = sprintf(solar_resource_path_15min_fail, "%s/test/input_cases/pvsamv1_data/LosAngeles_WeatherFile_15min_timestamp_fail.csv", SSCDIR);
int n10 = sprintf(measured_temp_array_path, "%s/test/input_cases/pvsamv1_data/measured_temp_array.csv", SSCDIR);
int n11 = sprintf(custom_rot_angle_array_path, "%s/test/input_cases/pvsamv1_data/custom_rot_angle_array.csv", SSCDIR);


/**
Expand Down Expand Up @@ -100,6 +104,8 @@ void pvsamv_nofinancial_default(ssc_data_t& data)
ssc_data_set_number(data, "subarray1_dcwiring_loss", 2);
ssc_data_set_number(data, "subarray1_tracking_loss", 0);
ssc_data_set_number(data, "subarray1_nameplate_loss", 0);
set_array(data, "subarray1_measured_temp_array", measured_temp_array_path, 8760);
set_array(data, "subarray1_custom_tilt_angles_array", custom_rot_angle_array_path, 8760);
ssc_data_set_number(data, "subarray2_rear_soiling_loss", 0);
ssc_data_set_number(data, "subarray2_rack_shading", 0);
ssc_data_set_number(data, "subarray2_electrical_mismatch", 0);
Expand Down
Loading

0 comments on commit 5d389f2

Please sign in to comment.