太阳能性能与设计库
solp的Python项目详细描述
索比
背景
solpy是一个python库,用于模拟与pvwatts或nrel的system advisor模型(sam)相似的太阳能系统功率性能。我最初是在孟加拉国作为一个相当粗糙的计算器开始写这篇文章的,从鱼眼全景图到csv矢量图进行阴影计算,但是有几个部分被添加进来,使其对分析和设计都更有用。 丹尼尔·托马斯确实在增加唐的真空玻璃管模型。为太阳定位添加了pyephem。还有一个用于读取tmy3数据的简单模块。这个工具是初级的,但功能强大。
这主要是一个研究和分析工具,对计算没有保证。
功能
- Liu&Jordan漫反射辐照度模型
- Perez等人漫射辐照度模型
- Sandia逆变器型号
- NEC压降计算
- 基本系统验证
- 基本字符串大小库
- 简单的参数化系统设计工具
- 使用天气数据进行实时系统性能预测
文件
- design.py-参数化设计库
- enphase.py-enphase api包装器
- py-epw天气数据函数
- expedit.py-计算快速许可流程所需的信息
- fisheye.py-鱼眼图像到着色向量
- forecast.py-forecast.io API包装器
- noaa.py-noaa天气数据api包装器
- Pv.py-系统性能预测
- pv cli-cli用于使用历史天气数据进行pv建模
- tmy3.py-读取tmy3数据
- vd.py-电压降
用法
光伏系统用json描述。例如:
{"system_name":"System Name", "zipcode":"17601", "tilt":34, "azimuth":180, "phase":1, "voltage":240, "array":[ {"inverter":"SMA America: SB6000US 240V", "panel":"Mage Solar : USA Powertec Plus 250-6 MNCS", "series":14, "parallel":2} ] }
如果名为template.json的文件中的json可以从cli建模。
pvcli -f template.json
ipython
这是一个很适合ipython的项目。自从发现那个项目以来,我一直试图让事情在那个环境中自然流动。我真的很喜欢qtconsole的内联图形。
$ipython qtconsole–colors=linux–pylab=inline
基本系统验证
对于过电压或过大比率的命令行警告,支持简单的设计验证。
ncharles@vm0 $ cat unit.json {"system_name":"HAPPY CUSTOMER", "address":"15013 Denver W Pkwy, Golden, CO", "zipcode":"80401", "phase":1, "voltage":240, "array":[ {"inverter":"SMA America: SB3000TL-US 240V *", "tilt":25, "azimuth":180, "panel":"Mage Solar : Powertec Plus 300-6 PL *", "shape":[{"series":6, "parallel":1}, {"series":6, "parallel":1}], "scale":1 }, {"inverter":"Enphase Energy: M215-60-2LL-S2x-IG-NA (240 V) 240V", "panel":"Mage Solar : Powertec Plus 250-6 PL", "quantity":20, "azimuth":180, "tilt":25 } ]} ncharles@vm0 $ expedite.py -f unit.json HAPPY CUSTOMER - 15013 Denver W Pkwy, Golden, CO 80401 7.3 KW AC RATED 8.62 KW DC RATED System AC Output Current: 30.4 A Nominal AC Voltage: 240 V Minimum Temperature: -22.9 C 2 Percent Max Temperature: 30.2 C Weather Source: DENVER/CENTENNIAL [GOLDEN - NREL] 724666 PV Module Ratings @ STC Module Make: Mage Solar Module Model: Powertec Plus 300-6 PL * Quantity: 12 Max Power-Point Current (Imp): 8.01 A Max Power-Point Voltage (Vmp): 37.51 V Open-Circuit Voltage (Voc): 45.19 V Short-Circuit Current (Isc): 8.66 A Maximum Power (Pmax): 300.5 W Inverter Make: SMA America Inverter Model: SB3000TL-US 240V * Quantity: 1 Max Power: 3.0 KW Max AC Current: 12.5 A DC Operating Current: 16.0 A DC Short Circuit Current: 17.3 A DC Operating Voltage: 225.1 V System Max DC Voltage: 311.4 V Pnom Ratio: 1.2 PV Module Ratings @ STC Module Make: Mage Solar Module Model: Powertec Plus 250-6 PL Quantity: 20 Max Power-Point Current (Imp): 8.01 A Max Power-Point Voltage (Vmp): 31.28 V Open-Circuit Voltage (Voc): 37.66 V Short-Circuit Current (Isc): 8.66 A Maximum Power (Pmax): 250.6 W Inverter Make: Enphase Energy Inverter Model: M215-60-2LL-S2x-IG-NA (240 V) 240V Quantity: 20 Max Power: 0.2 KW Max AC Current: 0.9 A Array Azimuth: 180 Degrees Array Tilt: 25 Degrees December 21 9:00 AM Sun Azimuth: 138.2 Degrees December 21 9:00 AM Sun Altitude: 14.3 Degrees December 21 3:00 PM Sun Azimuth: 222.2 Degrees December 21 3:00 PM Sun Altitude: 14.3 Degrees Magnetic declination: 9.0 Degrees Minimum Row space ratio: 2.95 Minimum Bundle 8 CU : EGC 10 CU : 1/2" EMT