https://github.com/maples7/powerflowcalculation
电力系统潮流计算 using Python
https://github.com/maples7/powerflowcalculation
Last synced: 12 months ago
JSON representation
电力系统潮流计算 using Python
- Host: GitHub
- URL: https://github.com/maples7/powerflowcalculation
- Owner: Maples7
- Created: 2015-04-07T09:45:52.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-23T13:33:11.000Z (about 11 years ago)
- Last Synced: 2025-03-20T00:41:10.156Z (over 1 year ago)
- Language: Python
- Size: 1.05 MB
- Stars: 74
- Watchers: 3
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PowerFlowCalculation
电力系统潮流计算 using Python through Newton-Raphson method
参考 《电力系统分析(第二版)》(夏道止 主编,中国电力出版社)附录
* 输入输出:
输入输出均采用文件方式,
输入数据格式与要求均与上述附录相同,注意数据块之间的空行严格为一行。
* 画收敛图 DrawConvergenceGraph.py:
程序在计算之后画出了迭代收敛图,
横坐标为 迭代次数,纵坐标为 最大功率误差。
同时与PQ分解法的收敛图对比,硬编码在程序中的数据来自于与 input.txt 默认数据相同的测例,可参考上述书籍 Page 115。
一般可作为该项目的入口文件。
* makeInput.py:
基于原始的输入数据input.txt,通过改变输入倍数(times)等其他因素生成新的输入数据存入input1.txt。
在设置好times等参数后可直接运行DrawConvergenceGraph.py(作为入口文件运行),全自动化得出基于input1.txt输入数据的输出。
* drawTimesComparisonGraph.py:
timesResultComparison.txt来自于几次对makeInput.py中输入线路(gv.line)times的更改而生成的输入数据对应的数据结果的整理。
基于此txt用该py画出了其对比图分析线路参数与其收敛的情况。