Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

ModelChain disregards diffuse optical losses for non-Sandia modules

未關閉
#2,509 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
22/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
backend

研究方向

Start with the effective_irradiance_model function in pvlib/modelchain.py, which applies the FD module parameter to poa_diffuse and defaults to 1. Then read martin_ruiz_diffuse and marion_diffuse in pvlib/iam.py to see what they return. The open question is how to choose a diffuse loss model for non-Sandia modules, which the thread does not settle, so agree on that with maintainers before writing code.

由索引模型根據 Issue 內容生成。

描述

Is your feature request related to a problem? Please describe.
modelchain.ModelChain and modelchain.ModelChain.with_pvwatts only consider optical losses for diffuse irradiance for modules from the Sandia Database, which contain an FD parameter for this. This can be seen in the effective_irradiance_model function in here.

def effective_irradiance_model(self):
def _eff_irrad(module_parameters, total_irrad, spect_mod, aoi_mod):
fd = module_parameters.get('FD', 1.)
return spect_mod * (total_irrad['poa_direct'] * aoi_mod +
fd * total_irrad['poa_diffuse'])

In my opinion, this is relevant for pvwatts approach. Not sure for more detailed approaches like single-diode model, etc.

Describe the solution you'd like
pvlib already contains well-established functions to compute diffuse irradiance losses such as the Martin-Ruiz and Marion's models. Would "just" be a matter of implementing them in the modelchain workflow.

Additional context
Even for Sandia modules, could it make sense to allow users to replace the FD constant by values from the Martin-Ruiz or Marion models?

主要語言
Python
星號
1.7k
分支
1.2k
平均合併
3 天 21 小時
30 天內合併 PR
15

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

pvlib/pvlib-python 的其他 Issue

查看 pvlib/pvlib-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。