in

Power Flow Coding with AI – Two Bus Example



Generative AI is utilized to develop Python code for a two-bus power flow. Starts with review of power flow modeling and equation development for a two-bus power system with source, line and load. Then three examples using ChatGPT are provided for prompt inputs consisting of (i) minimal program requirements (ii) detailed program requirements and finally (iii) detailed program flowchart. Concludes with summarization of pros and cons of each approach.

The code examples are provided in a Jupyter notebook format as well as a Python code export of the notebook cells. Both files can be downloaded at the channel Github site:
https://github.com/DavidLubkeman/Power_System_Analysis_with_Python/tree/main/Power_Flow_Coding_with_AI/Two_Bus_Example

Other useful links:
Installation of Jupyter notebook – https://jupyter.org/install
Installation of data science environment that includes Jupyter notebook – https://www.anaconda.com/download/
ChatGPT account – https://openai.com/chatgpt/

0:00 Introduction
0:24 Power Flow Model
4:09 Power Flow Equations
6:18 Two-Bus Test Case
7:04 Generative AI Overview
8:05 Example Scenarios
8:50 Example 1 – Minimal Requirements
15:35 Example 2 – Detailed Requirements
18:44 Example 3 – Flowchart
21:25 Summary

Major Sites Are Saying No to Apple’s AI Scraping

Major Sites Are Saying No to Apple’s AI Scraping

How to embrace Secure by Design principles while adopting AI