![]() |
deltaFlow
|
Reactive power limit enforcement implementation. More...
#include <cmath>#include <limits>#include <vector>#include "Qlim.H"#include "Logger.H"#include "Data.H"
Go to the source code of this file.
Functions | |
| bool | checkQlimits (const Eigen::VectorXd &V, const Eigen::VectorXd &delta, Eigen::VectorXi &type_bus, const Eigen::MatrixXd &G, const Eigen::MatrixXd &B, BusData &busData, const std::vector< int > &pv_bus_id, int n_bus) |
| Checks reactive power limits on PV buses after solver convergence. | |
Reactive power limit enforcement implementation.
Definition in file Qlim.C.
| bool checkQlimits | ( | const Eigen::VectorXd & | V, |
| const Eigen::VectorXd & | delta, | ||
| Eigen::VectorXi & | type_bus, | ||
| const Eigen::MatrixXd & | G, | ||
| const Eigen::MatrixXd & | B, | ||
| BusData & | busData, | ||
| const std::vector< int > & | pv_bus_id, | ||
| int | n_bus | ||
| ) |
Checks reactive power limits on PV buses after solver convergence.
Computes the reactive power at each bus using converged voltages and angles, then checks if PV buses violate their $$ Q_{gmax} $$ or $$ Q_{gmin} $$ limits. Violating PV buses are converted to PQ type (type 3 in C++ convention).
| V | Converged voltage magnitudes [p.u.]. |
| delta | Converged voltage angles [rad]. |
| type_bus | (in/out) Bus type vector; PV buses that violate limits are set to PQ. |
| G | Conductance matrix. |
| B | Susceptance matrix. |
| busData | Bus data (for Ql, Qgmax, Qgmin). |
| pv_bus_id | 0-based indices of PV buses (before any conversion). |
| n_bus | Total number of buses. |
Definition at line 34 of file Qlim.C.
References LOG_DEBUG, BusData::Qg, BusData::Qgmax, BusData::Qgmin, and BusData::Ql.
