dc-power-flow

Solve DC power-flow problems for transmission networks with linearized power flows.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill dc-power-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dc-power-flow
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/tasks/grid-dispatch-operator/environment/skills/dc-power-flow
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill dc-power-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) components.

What problem does it solve?

DC power-flow analysis provides a fast, linearized view of transmission networks to support planning and operations, reducing computational burden relative to full AC models.

Core Features & Use Cases

  • Construct the susceptance matrix B from branch data, including non-contiguous bus numbering.
  • Compute line flows and loading percentages from bus angle solutions.
  • Support slack-bus handling and simple sensitivity analyses for contingency studies.
  • Use Case: Quickly estimate grid responses under small-angle DC approximations for planning and operation.

Quick Start

Run the DC power-flow workflow on a sample network to compute the susceptance matrix and line flows.

Frequently Asked Questions about dc-power-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate DC power flow for transmission networks with non-contiguous bus numbers?

To calculate DC power flow with non-contiguous bus numbers, construct the susceptance matrix from branch data using bus-number mapping. This linearized approach computes line flows and loading percentages from bus angle solutions for fast grid analysis.

What is DC power flow analysis used for in grid operations?

DC power flow analysis provides a fast, linearized view of transmission networks to support planning and operations. It reduces computational burden relative to full AC models by using small-angle approximations to quickly estimate grid responses.

Can I perform contingency analysis using a linearized power flow model?

Yes, you can perform contingency analysis using a linearized power flow model by computing simple sensitivity analyses. The model supports slack-bus handling to evaluate grid responses during transmission line outages for operational studies.

Does this DC power flow solution require complex external power system libraries?

No, this DC power flow solution does not require complex external libraries. It operates entirely using numpy for numerical computations, constructing the susceptance matrix and calculating line loading percentages independently.

When should I use a DC power flow model instead of a full AC model for grid analysis?

Use a DC power flow model instead of a full AC model for grid analysis when you need fast contingency screening and planning studies. The linearized small-angle approximation reduces computational burden but sacrifices AC voltage and reactive power accuracy.