![]() |
deltaFlow
|
Output utilities for writing power system analysis results to CSV files. More...
#include <Eigen/Dense>#include <string>

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=100) |
| Displays the line flow results, including power flow and losses. | |
| bool | writeOutputCSV (const BusData &busData) |
| Writes bus data results to a CSV file. | |
Output utilities for writing power system analysis results to CSV files.
This file declares functions for exporting simulation results (such as bus voltages, power flows, etc.) to CSV files for further analysis or reporting.
Definition in file Writer.H.
| 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.
