deltaFlow
Writer.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
29#ifndef WRITER_H
30#define WRITER_H
31
32#include <Eigen/Dense>
33#include <string>
34
35// Forward declaration
36struct BusData;
37struct BranchData;
38
43void dispBusData(const BusData& busData);
44
52void dispLineFlow(
53 const BusData& busData,
54 const BranchData& branchData,
55 const Eigen::MatrixXcd& Y,
56 double basemva = 100
57);
58
68bool writeOutputCSV(const BusData& busData);
69
70#endif
void dispBusData(const BusData &busData)
Displays bus data in a human-readable format.
Definition Writer.C:36
void dispLineFlow(const BusData &busData, const BranchData &branchData, const Eigen::MatrixXcd &Y, double basemva=100)
Displays the line flow results, including power flow and losses.
Definition Writer.C:76
bool writeOutputCSV(const BusData &busData)
Writes bus data results to a CSV file.
Definition Writer.C:192
Contains all relevant data for each transmission line or transformer branch.
Definition Data.H:83
Contains all relevant data for each bus in the power system.
Definition Data.H:55