deltaFlow
Qlim.H
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Saud Zahir
3 *
4 * This file is part of deltaFlow.
5 *
6 * deltaFlow is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * deltaFlow is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public
17 * License along with deltaFlow. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
33#ifndef QLIM_H
34#define QLIM_H
35
36#include <Eigen/Dense>
37
38struct BusData;
39
57bool checkQlimits(
58 const Eigen::VectorXd& V,
59 const Eigen::VectorXd& delta,
60 Eigen::VectorXi& type_bus,
61 const Eigen::MatrixXd& G,
62 const Eigen::MatrixXd& B,
63 BusData& busData,
64 const std::vector<int>& pv_bus_id,
65 int n_bus
66);
67
68#endif
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.
Definition Qlim.C:34
Contains all relevant data for each bus in the power system.
Definition Data.H:55
Eigen::VectorXd V
Voltage magnitude [p.u.].
Definition Data.H:60
Eigen::VectorXd delta
Voltage angle [rad or deg].
Definition Data.H:61