gpt4 book ai didi

python - 使用带有阵列平面 (POA) 的 ModelChain 作为天气输入

转载 作者:太空宇宙 更新时间:2023-11-03 12:00:02 28 4
gpt4 key购买 nike

我真的很喜欢 pvlib 中 ModelChain 的概念。但是,我希望能够使用 ModelChain 对给定系统(多个模块和逆变器)的 DC 和 AC 输出进行建模,使用平面阵列辐照度作为 天气 输入,而不是输入 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)`

最佳答案

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

关于python - 使用带有阵列平面 (POA) 的 ModelChain 作为天气输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51863542/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com