deltaFlow
PowerMismatch.H File Reference

Power mismatch computation for Newton-Raphson power flow analysis. More...

#include <Eigen/Dense>
#include <vector>
Include dependency graph for PowerMismatch.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PowerMismatch
 Computes the power mismatch vector for use in Newton-Raphson iterations. More...
 

Detailed Description

Power mismatch computation for Newton-Raphson power flow analysis.

Computes the active and reactive power at each bus and returns the mismatch vector $$ [\Delta P; \Delta Q] $$ used in iterative solvers.

Active power: $$ P_i = \sum_{j=1}^{n} |V_i||V_j|(G_{ij}\cos(\delta_i - \delta_j) + B_{ij}\sin(\delta_i - \delta_j)) $$

Reactive power: $$ Q_i = \sum_{j=1}^{n} |V_i||V_j|(G_{ij}\sin(\delta_i - \delta_j) - B_{ij}\cos(\delta_i - \delta_j)) $$

Definition in file PowerMismatch.H.