The only input by the user here is susceptance matrix B=[NxN] and vector of injected powers P (length(P)=N), where N is the number of nodes in the network. The calculation is done both in per-unit system and in absolute system, the user is left to decide in which system will be the calculation. In the pdf file, there is a detail explanation of linear DC model, also there is a Readme file with the full explanation of using this program. This code can be used for up to 9999 nodes of a various system models, the main thing is to input the susceptance B and vector of injected powers P correctly. Latter on, there is a possibility for further calculations, when there are contingencies in the system (generator is off, line is off...) and even full N-1 or N-1-1 analysis.
Cite As
Dejan Bundalo (2025). DC Power Flow Analysis (https://se.mathworks.com/matlabcentral/fileexchange/60579-dc-power-flow-analysis), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Radar > Phased Array System Toolbox > Waveform Design and Signal Synthesis > Motion Modeling and Coordinate Systems >
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.5.0.0 | Updated description
|
||
| 1.4.0.0 | Included line by line inputing of the matrix B (faster) and added full N-1 and N-1-1 analysis. Also updated Readme file with the full explanation of using the program.
|
||
| 1.3.0.0 | Optimized code and updated description |
||
| 1.2.0.0 | Updated code so that the mistakes made by an user while inputing data are reduced to minimum. |
||
| 1.1.0.0 | Updated the contingency case part of the code
|
||
| 1.0.0.0 | updated description |