Skip to content

Commit

Permalink
Add positive checks for ground clearance height variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Nov 10, 2023
1 parent 7326475 commit 255550f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ssc/cmod_pvsamv1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static var_info _cm_vtab_pvsamv1[] = {
{ SSC_INPUT, SSC_NUMBER, "spe_is_bifacial", "Modules are bifacial", "0/1", "0=monofacial,1=bifacial", "Simple Efficiency Module Model", "module_model=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "spe_bifacial_transmission_factor", "Bifacial transmission factor", "0-1", "", "Simple Efficiency Module Model", "module_model=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "spe_bifaciality", "Bifaciality factor", "%", "", "Simple Efficiency Module Model", "module_model=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "spe_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "Simple Efficiency Module Model", "module_model=0", "", "" },
{ SSC_INPUT, SSC_NUMBER, "spe_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "Simple Efficiency Module Model", "module_model=0", "POSITIVE", "" },

// cec model
{ SSC_INPUT, SSC_NUMBER, "cec_area", "Module area", "m2", "", "CEC Performance Model with Module Database", "module_model=1", "", "" },
Expand All @@ -324,7 +324,7 @@ static var_info _cm_vtab_pvsamv1[] = {
{ SSC_INPUT, SSC_NUMBER, "cec_is_bifacial", "Modules are bifacial", "0/1", "0=monofacial,1=bifacial", "CEC Performance Model with Module Database", "module_model=1", "INTEGER,MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_bifacial_transmission_factor", "Bifacial transmission factor", "0-1", "", "CEC Performance Model with Module Database", "module_model=1", "MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_bifaciality", "Bifaciality factor", "%", "", "CEC Performance Model with Module Database", "module_model=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "CEC Performance Model with Module Database", "module_model=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "CEC Performance Model with Module Database", "module_model=1", "POSITIVE", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_standoff", "Standoff mode", "", "0=bipv,1=>3.5in,2=2.5-3.5in,3=1.5-2.5in,4=0.5-1.5in,5=<0.5in,6=ground/rack", "CEC Performance Model with Module Database", "module_model=1", "INTEGER,MIN=0,MAX=6", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_height", "Array mounting height", "", "0=one story,1=two story", "CEC Performance Model with Module Database", "module_model=1", "INTEGER,MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_mounting_config", "Mounting configuration", "", "0=rack,1=flush,2=integrated,3=gap", "CEC Performance Model with Module Database", "module_model=1&cec_temp_corr_mode=1","INTEGER,MIN=0,MAX=3", "" },
Expand All @@ -338,7 +338,7 @@ static var_info _cm_vtab_pvsamv1[] = {
{ SSC_INPUT, SSC_NUMBER, "cec_backside_temp", "Module backside temperature", "C", "", "CEC Performance Model with Module Database", "module_model=1&cec_temp_corr_mode=1","POSITIVE", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_lacunarity_enable", "Enable lacunarity heat transfer model", "0/1", "", "CEC Performance Model with Module Database", "?=0","", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_lacunarity_length", "Module lacurnarity length for spatial heterogeneity", "C", "", "CEC Performance Model with Module Database", "cec_lacunarity_enable=1&cec_temp_corr_mode=1", "", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_ground_clearance_height", "Module ground clearance height for heat transfer coefficient", "m", "", "CEC Performance Model with Module Database", "cec_lacunarity_enable=1&cec_temp_corr_mode=1","", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_ground_clearance_height", "Module ground clearance height for heat transfer coefficient", "m", "", "CEC Performance Model with Module Database", "cec_lacunarity_enable=1&cec_temp_corr_mode=1","POSITIVE", "" },
{ SSC_INPUT, SSC_NUMBER, "cec_transient_thermal_model_unit_mass","Module unit mass", "kg/m^2", "", "CEC Performance Model with Module Database", "module_model=1","POSITIVE", "" },

// 6 par model
Expand All @@ -358,7 +358,7 @@ static var_info _cm_vtab_pvsamv1[] = {
{ SSC_INPUT, SSC_NUMBER, "6par_is_bifacial", "Modules are bifacial", "0/1", "0=monofacial,1=bifacial", "CEC Performance Model with User Entered Specifications","module_model=2", "INTEGER,MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "6par_bifacial_transmission_factor", "Bifacial transmission factor", "0-1", "", "CEC Performance Model with User Entered Specifications","module_model=2", "", "" },
{ SSC_INPUT, SSC_NUMBER, "6par_bifaciality", "Bifaciality factor", "%", "", "CEC Performance Model with User Entered Specifications","module_model=2", "", "" },
{ SSC_INPUT, SSC_NUMBER, "6par_bifacial_ground_clearance_height","Module ground clearance height", "m", "", "CEC Performance Model with User Entered Specifications","module_model=2", "", "" },
{ SSC_INPUT, SSC_NUMBER, "6par_bifacial_ground_clearance_height","Module ground clearance height", "m", "", "CEC Performance Model with User Entered Specifications","module_model=2", "POSITIVE", "" },
{ SSC_INPUT, SSC_NUMBER, "6par_transient_thermal_model_unit_mass","Module unit mass", "kg/m^2", "", "CEC Performance Model with User Entered Specifications","module_model=2", "", "" },

// snl module model
Expand Down Expand Up @@ -489,7 +489,7 @@ static var_info _cm_vtab_pvsamv1[] = {
{ SSC_INPUT, SSC_NUMBER, "mlm_is_bifacial", "Modules are bifacial", "0/1", "0=monofacial,1=bifacial", "Mermoud Lejeune Single Diode Model", "module_model=5", "INTEGER,MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "mlm_bifacial_transmission_factor", "Bifacial transmission factor", "0-1", "", "Mermoud Lejeune Single Diode Model", "module_model=5", "MIN=0,MAX=1", "" },
{ SSC_INPUT, SSC_NUMBER, "mlm_bifaciality", "Bifaciality factor", "%", "", "Mermoud Lejeune Single Diode Model", "module_model=5", "", "" },
{ SSC_INPUT, SSC_NUMBER, "mlm_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "Mermoud Lejeune Single Diode Model", "module_model=5", "", "" },
{ SSC_INPUT, SSC_NUMBER, "mlm_bifacial_ground_clearance_height", "Module ground clearance height", "m", "", "Mermoud Lejeune Single Diode Model", "module_model=5", "POSITIVE", "" },


// inverter model
Expand Down

0 comments on commit 255550f

Please sign in to comment.