Prerequisites
Make sure you have PyPowSyBl installed. If not, follow the installation guide.Your First Load Flow
Create a network
PyPowSyBl provides built-in test networks. Let’s create the IEEE 14-bus test network:This creates a standard IEEE 14-bus network that’s commonly used for testing power system algorithms.
Run a load flow calculation
Now, run an AC load flow calculation on the network:You should see output similar to:
The
status=CONVERGED indicates that the load flow calculation successfully converged to a solution.Complete Example
Here’s the complete working example:Working with Different Network Types
Creating Networks
PyPowSyBl supports multiple ways to create or load networks:Running Load Flow with Parameters
You can customize the load flow calculation with parameters:DC Load Flow
For faster calculations, you can run a DC load flow:Extracting Network Elements
PyPowSyBl provides methods to extract various network elements as Pandas DataFrames:What’s Next?
PyPowSyBl offers much more than basic load flow calculations:Security Analysis
Perform N-1 security analysis and contingency simulations
Sensitivity Analysis
Calculate sensitivity factors for network analysis
Network Formats
Work with CGMES, MATPOWER, UCTE, and other formats
Visualization
Generate substation and network diagrams
For more examples and advanced features, check out the PyPowSyBl notebooks repository.
Getting Help
Documentation
Full API reference and detailed guides
Slack Community
Join the PowSyBl community on Slack
