4

我真的很喜欢ModelChainin pvlib 的概念。但是,我希望能够使用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)`
4

2 回答 2

1

目前无法ModelChain.run_model与阵列天气输入平面一起使用。我建议您在 pvlib 问题跟踪器上提出功能请求。但是,您可以检查ModelChain.run_model源代码并将 POA 后的步骤复制到您自己的函数中,该函数接受ModelChain对象作为输入。有关背景信息,请参阅揭秘 ModelChain 内部

于 2018-08-15T20:31:51.773 回答
0

此功能是在pvlib 0.8.0中添加的(查看pvlib.__version__您安装的版本)。

请参阅此处的文档页面:https ://pvlib-python.readthedocs.io/en/stable/generated/pvlib.modelchain.ModelChain.run_model_from_poa.html

于 2021-01-08T20:58:16.823 回答