35#ifndef POWER_FLOW_APPLICATION_H
36#define POWER_FLOW_APPLICATION_H
Data structures and utility functions for reading and displaying bus and branch data in power system ...
Plain parsed-options data, separated from ArgumentParser's parsing logic (ISP).
Abstract base class for power system data file readers.
Orchestrates the full power-flow analysis pipeline for one run.
std::unique_ptr< Reader > reader_
void loadInput()
Reads and validates the input file via ReaderFactory.
void writeFailureStatus(double elapsedSec) const
Writes only the status file, used on the non-convergence early-exit path.
void finalizeResults()
Recomputes slack/PV bus power injections and updates busData_ post-solve.
~PowerFlowApplication()=default
void writeOutputs(double elapsedSec) const
Writes all output files (.out, .sta, .dat, .msg) and CSV/terminal display.
int run()
Runs the full analysis pipeline: load input, solve, apply Q-limits, recompute results,...
PowerFlowOptions options_
PowerFlowApplication & operator=(const PowerFlowApplication &)=delete
void solve()
Runs the selected solver, re-running on Q-limit violations.
std::vector< std::pair< int, double > > iterationHistory_
PowerFlowApplication(const PowerFlowApplication &)=delete
void prepareModel()
Computes Y_bus and sets up the flat-start voltage/angle vectors.
Contains all relevant data for each transmission line or transformer branch.
Contains all relevant data for each bus in the power system.
Plain data holder for parsed command-line options.