问题标签 [pvlib]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
110 浏览

python - PVLIB 设定直流功率比

我被要求使用 pvlib 和 python 来估计太阳能光伏性能,从文档中看,大部分似乎是合乎逻辑的。但是,这些示例显示您指定了一个模块和一个逆变器,并且似乎没有任何变量可以设置两者之间的比率?

这个数字必须存在,因为运行该模型会产生年产量,但现代太阳能公园的直流:交流比率为 1.4:1。我希望我遗漏了一些明显的东西,有人可以帮助我。

提前致谢!

0 投票
1 回答
73 浏览

python - 为不在 Sandia DB(python 库)中的模块系统运行 PVWatts

我想在似乎没有出现的 Amerisolar 315 模块上运行 PVWatts 模型(具体是为了获得 pvwatts_dc)。我要做的是复制手册中的步骤,这只需要系统 DC 大小。

当我进入功率模型时,公式说g_poa_effective必须已经校正了入射角损失。我该如何做这个更正?我考虑过使用物理校正公式pvlib.pvsystem.physicaliam(aoi),但这是正确的方法吗?

0 投票
1 回答
419 浏览

pvlib - Model Chain example PVLIB - don't trust in 1 axis tracking AC output

I'm trying to use PVLIB to estimate output power for a PV System installed in the west of my country.

As an example I've got 2 days of hourly GHI, 2m Temperature and 10m wind speed from MERRA2 reanalysis.

I want to estimate how much power a fixed PV System or 1 axis tracking system would generate using the forementioned dataset, and ModelChain function from PVLIB. I first estimate DNI and DHI from GHI data using DISC model to obtain DNI and then DHI is the difference between GHI and DNI*cos(Z)

a) First behaviour I am not completely sure if it is Ok. Here is the plot of GHI, DNI , DHI, T2m and Wind Speed. It seems that DNI is shifted with its maximum occurring 1 hour before GHI maximum.

Weather Figure

After preparing irradiance data I calculated AC using Model Chain, specifying the fixed PV System and 1 axis single tracking system. The thing is that I don't trust in the AC output for a 1-single axis system. I expected a plateau shape of AC output and i found a kind of weird behaviour.

Here is the otuput values of power generation i expected to see:

Expectation

And here is the estimated output by PVLIB

Reality

I hope someone can help me to find the error on my proccedure.

Here is the code:

I hope anyone could help me with the intepretation of the results and debugging of the code.

Thanks a lot!

0 投票
1 回答
341 浏览

pvlib - 从全局辐照度估计漫射和直接分量

我正在寻找分离全局辐照度的漫反射和直接分量,并在 pvlib 中找到了 Erbs 模型(请参阅pvlib.irradiance.erbs)但是,我得到了非常奇怪的结果。我希望直接法向辐照度(DNI)低于全球水平辐照度(GHI);还是我错过了什么?这些天的 GHI 值不超过 800 W m^2。

在此处输入图像描述


编辑:根据 Cliff H 的建议,我将太阳天顶限制在 85 弧度以下;结果有所改善,但是 DNI 值出现了很大的峰值,看起来不太合理,例如 07-16 开始。

在此处输入图像描述

0 投票
1 回答
337 浏览

pvlib - 如何从 GHI 估计直接水平辐照度

pvlib 中的 Erbs 函数(参见pvlib.irradiance.erbs)可用于从全局水平辐照度 (GHI) 估计直接法向辐照度 (DNI) 和漫反射水平辐照度 (DHI),其中 DHI 用于水平表面,DNI是垂直于光线的表面,而不是水平表面。如何估计给定 GHI 的直接水平辐照度?例如,在这种情况下,人们可能希望从对同一水平表面的 GHI 测量中分离出漫反射分量和直接分量。使用 Erbs 模型,计算 DHI,从 GHI 中减去 DHI 是否合理?即Direct horizontal irradiance = GHI - DHI

0 投票
1 回答
825 浏览

python - NSRDB 不再提供 TMY3 数据?

几个月前,我能够从 NSRDB 下载 TMY3 数据并将其与pvlib.tmy.readtmy3

现在我尝试下载其他位置的文件,但这些文件似乎采用不同的格式。我正在使用 NSRDB 数据查看器,更具体地说是数据下载向导。我单击 MTS2,因为这似乎是现在唯一在 TMY3 中提供数据的模型,当我选择要下载的文件时单击 TMY3 按钮。但是得到的 CSV 文件的内部结构和我几个月前得到的明显不同pvlib.tmy.readtmy3预期的明显不同(我检查了当前的python源代码)。

https://nsrdb.nrel.gov/tmy我得到以下信息:

TMY 数据格式

所有 TMY 数据现在都采用 System Advisor Model (SAM) CSV 文件格式。以前,TMY 数据只能通过 TMY 文件格式(即 TMY、TMY2、TMY3)获得。通过切换到对用户更友好的 SAM CSV,TMY 数据比以往更加灵活,可以插入到绝大多数太阳能建模程序中。

这似乎暗示 TMY3 格式的数据不再可用,即使 TMY3 数据似乎在 NSRDB 数据下载向导中可用。

我是否需要编写自己的代码来使 NSRDB 文件适应 pvlib 的期望?

0 投票
1 回答
89 浏览

python - 计算地外辐射时的小错误(方法“asce”)?

在查看计算地外辐射的代码get_extra_radiation()并与文献进行交叉检查时,我注意到对于“asce”和“spencer”这两种方法solarposition._calculate_simple_day_angle(doy)都使用了该函数。这个函数基本上只是计算(2. * np.pi / 365.) * (doy- 1),对于method='spencer'是正确的。

但我认为对于 method='asce' 它应该只是(2. * np.pi * doy / 365.)- 没有“- 1” - 如“ JA Duffie 和 WA Beckman,“热过程的太阳能工程,第 3 版”J. Wiley and Sons,New第 9 页中所述约克 (2006) "

0 投票
1 回答
447 浏览

python - 将 TMY 数据与 ModelChain 一起使用

我正在使用 PVlib 来生成 PV 系统的 PV 功率输出。使用模型链,我尝试生成 PV 功率输出。用于光伏系统的代码如下:

但与教程 [https://github.com/pvlib/pvlib-python/blob/master/docs/tutorials/tmy_to_power.ipynb ] 中的代码相比,我没有看到光伏功率输出与单模块光伏发电相比的变化。我在两者中都使用了相同的天气文件。在教程的光伏系统(单模块)中,我们可以看到光伏输出的变化在此处输入图像描述

但是在我创建的系统中,光伏系统输出没有太大变化在此处输入图像描述

特别是在有效太阳辐照度较低的时候,我预计设计的光伏输出会降低。我错过了什么吗?

0 投票
1 回答
562 浏览

python - 光束辐射倾斜系数计算

我想使用各向同性天空模型计算总太阳辐照度。

我的问题是计算Rb(光束辐射倾斜因子),其中我达到了一些无意义的负值。

公式:

Python中的代码:

你能帮我解决负值Rb吗?

(我的参考资料:太阳能工程:过程和系统,Soteris A. Kalogirou)

0 投票
0 回答
57 浏览

pvlib - 使用 15 分钟天气数据分辨率而不是每小时值时,“sapm_celltemp”函数中的 AttributeError

(我是新来的,所以请原谅这个可能不完美的问题)

从 ModelChain 类运行 run_model() 方法时遇到问题。我希望可以在每小时数据分辨率和 15 分钟天气数据分辨率之间进行选择。使用每小时数据,计算工作正常并提供合理的结果。使用 15 分钟分辨率时,“sapm_celltemp”函数中会出现 AttributeError: 'numpy.float64' object has no attribute 'exp''。其他一切都保持不变。

我使用 CEC 模块和逆变器数据库

这些是我为计算选择的 PVSystem 和 ModelChain 参数:

有没有人有类似的问题或知道可能导致错误的原因?提前致谢

干杯,菲利克斯