![]() |
deltaFlow
|
Terminal output writer implementation for bus data and line flow results. More...
#include <complex>#include <fstream>#include <iomanip>#include "Display.H"#include "Data.H"#include "Logger.H"#include "Writer.H"
Go to the source code of this file.
Functions | |
| void | dispBusData (const BusData &busData) |
| Displays bus data in a human-readable format. | |
| void | dispLineFlow (const BusData &busData, const BranchData &branchData, const Eigen::MatrixXcd &Y, double basemva) |
| Displays the line flow results, including power flow and losses. | |
| bool | writeOutputCSV (const BusData &busData) |
| Writes bus data results to a CSV file. | |
Terminal output writer implementation for bus data and line flow results.
Definition in file Writer.C.
| void dispBusData | ( | const BusData & | busData | ) |
Displays bus data in a human-readable format.
| busData | The bus data to display. |
Definition at line 36 of file Writer.C.
References BusData::delta, LOG_INFO, Display::LOGO_COLOR, BusData::Pg, BusData::Pl, Display::printSectionHeader(), BusData::Qg, BusData::Ql, and BusData::V.


| 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.
| busData | The bus data structure. |
| branchData | The branch data structure. |
| Y | The bus admittance matrix ($$ Y_{bus} $$). |
| basemva | The base MVA for per-unit system (default: 100). |
Definition at line 76 of file Writer.C.
References BranchData::B, BusData::delta, BranchData::From, LOG_INFO, Display::LOGO_COLOR, BusData::Pg, BusData::Pl, Display::printSectionHeader(), BusData::Qg, BusData::Ql, BranchData::tapRatio, BranchData::To, and BusData::V.


| bool writeOutputCSV | ( | const BusData & | busData | ) |
Writes bus data results to a CSV file.
This function exports the results contained in the BusData structure to a CSV file. The output may include bus voltages, angles, power generation, loads, and other calculated quantities.
| busData | The bus data structure containing simulation results. |
Definition at line 192 of file Writer.C.
References BusData::Bs, BusData::delta, BusData::Gs, BusData::ID, BusData::Name, BusData::Pg, BusData::Pl, BusData::Qg, BusData::Qgmax, BusData::Qgmin, BusData::Ql, BusData::Type, and BusData::V.
