【问题标题】:Using ModelChain with Plane of Array (POA) as weather input使用带有阵列平面 (POA) 的 ModelChain 作为天气输入
【发布时间】:2018-08-15 17:25:42
【问题描述】:

我真的很喜欢 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)`

【问题讨论】:

    标签: python pvlib


    【解决方案1】:

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

    【讨论】:

    • 明白了。非常感谢。我会提出功能要求。我认为这是一个“你可以制作自己的模型链”,只是不确定。感谢您的所有出色工作!
    【解决方案2】:

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

    在此处查看文档页面:https://pvlib-python.readthedocs.io/en/stable/generated/pvlib.modelchain.ModelChain.run_model_from_poa.html

    【讨论】:

      猜你喜欢
      • 2021-10-22
      • 1970-01-01
      • 1970-01-01
      • 2014-06-20
      • 2018-09-11
      • 2014-08-05
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多