使用ModelChain与平面阵列(POA)作为气象输入

2024-03-29 06:44:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我非常喜欢pvlib中ModelChain的概念。但是,我希望能够使用ModelChain对给定系统(多个模块和逆变器)的直流和交流输出进行建模,使用阵列辐照度平面作为weather输入,而不是输入GHI、DNI和DHI分量(我没有测量),然后将换位模型指定为ModelChain的一部分。这可能吗?你知道吗

这是我的系统设计

`system=pvlib.pvsystem.PVSystem(surface_tilt=22.5,
                        surface_azimuth=180,
                        modules_per_string=30,
                        strings_per_inverter=100,
                module_parameters=cec_modules['Yingli_Energy__China__YL300P_35b'],                        inverter_parameters=cec_inverters['SMA_America__SC800CP_US_360V__CEC_2012_'])`

以下是我的天气数据示例:

`weather.loc['2018-07-01 10:00:00':'2018-07-01 12:00:00'].head()
Out[420]: 
                            poa_global  temp_air  wind_speed
Timestamp                                                   
2018-07-01 10:00:00-07:00  1031.487152  41.69515     0.77450
2018-07-01 10:05:00-07:00  1031.917903  41.62194     0.82462
2018-07-01 10:10:00-07:00  1033.182229  46.01999     0.54983
2018-07-01 10:15:00-07:00  1031.597900  38.67440     0.95819
2018-07-01 10:20:00-07:00  1031.660918  39.16293     0.86196`

这正是我最想用ModelChain做的:

`mc=pvlib.modelchain.ModelChain(system,location,
                               aoi_model='physical',
                               transposition_model='None',
                               dc_model='singlediode',
                               ac_model='snlinverter',
                               spectral_model='no_loss',
                               losses_model='pvwatts')`

`mc.run_model(times=weather.index,weather=weather)`

Tags: 模块modules概念model系统mcsystemsurface
1条回答
网友
1楼 · 发布于 2024-03-29 06:44:00

目前无法将ModelChain.run_model与数组天气输入平面一起使用。我建议您在pvlib问题跟踪器上请求一个特性。但是,您可以检查ModelChain.run_model源代码并将post POA步骤复制到您自己的函数中,该函数接受ModelChain对象作为输入。背景见Demystifying ModelChain internals。你知道吗

相关问题 更多 >