コード例 #1
0
ファイル: solarTSPPA.py プロジェクト: acmbc68/omf
# in the same way that the PVWatts service specifies the weather data
# --> essentially, this service and PVWatts should use exactly the same
#     method to get weather data for a location request

ssc = PySSC()
data = ssc.data_create()

ssc.data_set_string(data, 'weather_file', 'daggett.tm2' )
ssc.data_set_number(data, 'ac_derate', ac_derate )
ssc.data_set_number(data, 'modules_per_string', num_series )
ssc.data_set_number(data, 'strings_in_parallel', num_parallel )
ssc.data_set_number(data, 'inverter_count', num_inverters )
ssc.data_set_number(data, 'subarray1_tilt', tilt )
ssc.data_set_number(data, 'subarray1_azimuth', azimuth )
ssc.data_set_number(data, 'subarray1_track_mode', track_mode )
ssc.data_set_matrix(data, 'subarray1_shading_mxh', shading_mxh )
ssc.data_set_array(data, 'subarray1_soiling', [soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling ] )
ssc.data_set_number(data, 'subarray1_derate', dc_derate )

# set up values for other sub arrays - not used (currently)
ssc.data_set_number(data, 'subarray2_tilt', 0 )
ssc.data_set_number(data, 'subarray3_tilt', 0 )
ssc.data_set_number(data, 'subarray4_tilt', 0 )

ssc.data_set_number(data, 'module_model', 1 )

ssc.data_set_number(data, 'cec_area', cec_area )
ssc.data_set_number(data, 'cec_a_ref', cec_a_ref )
ssc.data_set_number(data, 'cec_adjust', cec_adjust )
ssc.data_set_number(data, 'cec_alpha_sc', cec_alpha_sc )
ssc.data_set_number(data, 'cec_beta_oc', cec_beta_oc )
コード例 #2
0
ファイル: simpleSamMatrix.py プロジェクト: cdkkim/omf
ssc.data_set_matrix(dat, "shading_mxh",
                    [[
                        0, 0, 0, 0, 0, 0, 0, 0, 0.475, 0.95, 1, 1, 0.7875,
                        0.2375, 0.25, 0.3625, 0, 0, 0, 0, 0, 0, 0, 0
                    ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0, 0.4875, 1, 1, 1, 0.925,
                         0.6375, 0.6625, 0.225, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.15, 0.925, 1, 1, 1, 1, 1, 0.75,
                         0.2, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.45, 0.9125, 1, 1, 1, 1, 1,
                         0.625, 0.375, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0.075, 0.05, 0.7875, 1, 1, 1, 1, 1, 1,
                         0.625, 0.4875, 0.025, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0.15, 0.075, 0.9, 1, 1, 1, 1, 1, 1,
                         0.675, 0.5, 0.05, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0.1, 0.0625, 0.8375, 1, 1, 1, 1, 1, 1,
                         0.6375, 0.4875, 0.025, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.6625, 0.9625, 1, 1, 1, 1, 1,
                         0.6125, 0.4, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.2, 0.9125, 1, 1, 1, 1, 1,
                         0.7375, 0.2125, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.0625, 0.7, 1, 1, 1, 0.9375,
                         0.8, 0.7, 0.1875, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0, 0.45, 0.95, 1, 1, 0.8125,
                         0.3625, 0.3625, 0.375, 0, 0, 0, 0, 0, 0, 0, 0
                     ],
                     [
                         0, 0, 0, 0, 0, 0, 0, 0.0125, 0.525, 0.95, 1, 0.9875,
                         0.75, 0.175, 0.2125, 0.275, 0, 0, 0, 0, 0, 0, 0, 0
                     ]])
コード例 #3
0
# in the same way that the PVWatts service specifies the weather data
# --> essentially, this service and PVWatts should use exactly the same
#     method to get weather data for a location request

ssc = PySSC()
data = ssc.data_create()

ssc.data_set_string(data, 'weather_file', 'daggett.tm2')
ssc.data_set_number(data, 'ac_derate', ac_derate)
ssc.data_set_number(data, 'modules_per_string', num_series)
ssc.data_set_number(data, 'strings_in_parallel', num_parallel)
ssc.data_set_number(data, 'inverter_count', num_inverters)
ssc.data_set_number(data, 'subarray1_tilt', tilt)
ssc.data_set_number(data, 'subarray1_azimuth', azimuth)
ssc.data_set_number(data, 'subarray1_track_mode', track_mode)
ssc.data_set_matrix(data, 'subarray1_shading_mxh', shading_mxh)
ssc.data_set_array(data, 'subarray1_soiling', [
    soiling, soiling, soiling, soiling, soiling, soiling, soiling, soiling,
    soiling, soiling, soiling, soiling
])
ssc.data_set_number(data, 'subarray1_derate', dc_derate)

# set up values for other sub arrays - not used (currently)
ssc.data_set_number(data, 'subarray2_tilt', 0)
ssc.data_set_number(data, 'subarray3_tilt', 0)
ssc.data_set_number(data, 'subarray4_tilt', 0)

ssc.data_set_number(data, 'module_model', 1)

ssc.data_set_number(data, 'cec_area', cec_area)
ssc.data_set_number(data, 'cec_a_ref', cec_a_ref)