![]() |
deltaFlow
|
Orchestrates the full power-flow analysis pipeline for one run. More...
#include <PowerFlowApplication.H>

Public Member Functions | |
| PowerFlowApplication (PowerFlowOptions options) | |
| Construct the application from already-parsed command-line options. | |
| ~PowerFlowApplication ()=default | |
| PowerFlowApplication (const PowerFlowApplication &)=delete | |
| PowerFlowApplication & | operator= (const PowerFlowApplication &)=delete |
| int | run () |
| Runs the full analysis pipeline: load input, solve, apply Q-limits, recompute results, and write all output files. | |
Private Member Functions | |
| void | loadInput () |
| Reads and validates the input file via ReaderFactory. | |
| void | prepareModel () |
| Computes Y_bus and sets up the flat-start voltage/angle vectors. | |
| void | solve () |
| Runs the selected solver, re-running on Q-limit violations. | |
| void | finalizeResults () |
| Recomputes slack/PV bus power injections and updates busData_ post-solve. | |
| void | writeOutputs (double elapsedSec) const |
| Writes all output files (.out, .sta, .dat, .msg) and CSV/terminal display. | |
| void | writeFailureStatus (double elapsedSec) const |
| Writes only the status file, used on the non-convergence early-exit path. | |
Private Attributes | |
| PowerFlowOptions | options_ |
| std::unique_ptr< Reader > | reader_ |
| BusData | busData_ |
| BranchData | branchData_ |
| Eigen::MatrixXcd | Y_ |
| int | N_ = 0 |
| int | nBranch_ = 0 |
| Eigen::VectorXd | V_ |
| Eigen::VectorXd | delta_ |
| Eigen::VectorXi | typeBus_ |
| bool | finalConverged_ = false |
| int | totalIterations_ = 0 |
| double | finalError_ = 0.0 |
| std::vector< std::pair< int, double > > | iterationHistory_ |
| std::string | solverName_ |
| std::string | formatName_ |
Orchestrates the full power-flow analysis pipeline for one run.
Depends only on PowerFlowOptions (the parsed-options data), not on the full ArgumentParser interface (ISP) – it doesn't need parsing or help-printing.
Definition at line 55 of file PowerFlowApplication.H.
|
explicit |
Construct the application from already-parsed command-line options.
| options | Parsed command-line options. |
Definition at line 43 of file PowerFlowApplication.C.
|
default |
|
delete |
|
private |
Recomputes slack/PV bus power injections and updates busData_ post-solve.
Definition at line 167 of file PowerFlowApplication.C.
References busData_, BusData::delta, delta_, LOG_DEBUG, N_, BusData::Pg, BusData::Pl, BusData::Qg, BusData::Ql, BusData::Type, BusData::V, V_, and Y_.

|
private |
Reads and validates the input file via ReaderFactory.
Definition at line 46 of file PowerFlowApplication.C.
References branchData_, busData_, ReaderFactory::create(), formatName_, BranchData::From, BusData::ID, PowerFlowOptions::inputFile, PowerFlowOptions::inputFormat, LOG_DEBUG, LOG_ERROR, LOG_INFO, N_, nBranch_, options_, reader_, and BusData::Type.


|
delete |
|
private |
Computes Y_bus and sets up the flat-start voltage/angle vectors.
Definition at line 79 of file PowerFlowApplication.C.
References branchData_, Admittance::build(), busData_, delta_, LOG_DEBUG, N_, BusData::Type, typeBus_, BusData::V, V_, and Y_.


| int PowerFlowApplication::run | ( | ) |
Runs the full analysis pipeline: load input, solve, apply Q-limits, recompute results, and write all output files.
Definition at line 239 of file PowerFlowApplication.C.
References finalConverged_, finalizeResults(), PowerFlowOptions::inputFile, PowerFlowOptions::jobName, loadInput(), LOG_DEBUG, Display::LOGO_COLOR, PowerFlowOptions::maxIterations, options_, prepareModel(), solve(), PowerFlowOptions::tolerance, writeFailureStatus(), and writeOutputs().


|
private |
Runs the selected solver, re-running on Q-limit violations.
Definition at line 99 of file PowerFlowApplication.C.
References SolverContext::B, busData_, Qlim::check(), SolverFactory::create(), SolverContext::delta, delta_, finalConverged_, finalError_, SolverContext::G, iterationHistory_, SolverContext::iterHistory, LOG_DEBUG, LOG_ERROR, LOG_INFO, SolverContext::maxIter, PowerFlowOptions::maxIterations, SolverContext::N, N_, SolverContext::n_pq, SolverContext::observer, SolverContext::omega, options_, SolverContext::P, BusData::Pg, BusData::Pl, SolverContext::pq_bus_id, SolverContext::Q, BusData::Qg, BusData::Ql, PowerFlowOptions::relaxation, solverName_, PowerFlowOptions::solverType, SolverContext::tolerance, PowerFlowOptions::tolerance, totalIterations_, SolverContext::type_bus, typeBus_, SolverContext::V, V_, SolverContext::Y, and Y_.


|
private |
Writes only the status file, used on the non-convergence early-exit path.
Definition at line 206 of file PowerFlowApplication.C.
References formatName_, PowerFlowOptions::inputFile, PowerFlowOptions::jobName, PowerFlowOptions::maxIterations, N_, nBranch_, options_, solverName_, PowerFlowOptions::tolerance, and StaFileWriter::write().


|
private |
Writes all output files (.out, .sta, .dat, .msg) and CSV/terminal display.
Definition at line 212 of file PowerFlowApplication.C.
References branchData_, busData_, dispBusData(), dispLineFlow(), finalConverged_, finalError_, formatName_, PowerFlowOptions::inputFile, iterationHistory_, PowerFlowOptions::jobName, N_, nBranch_, options_, solverName_, PowerFlowOptions::tolerance, totalIterations_, OutFileWriter::write(), DatFileWriter::write(), StaFileWriter::write(), MsgFileWriter::write(), writeOutputCSV(), and Y_.


|
private |
Definition at line 81 of file PowerFlowApplication.H.
|
private |
Definition at line 80 of file PowerFlowApplication.H.
|
private |
Definition at line 88 of file PowerFlowApplication.H.
|
private |
Definition at line 91 of file PowerFlowApplication.H.
|
private |
Definition at line 93 of file PowerFlowApplication.H.
|
private |
Definition at line 97 of file PowerFlowApplication.H.
|
private |
Definition at line 94 of file PowerFlowApplication.H.
|
private |
Definition at line 84 of file PowerFlowApplication.H.
|
private |
Definition at line 85 of file PowerFlowApplication.H.
|
private |
Definition at line 77 of file PowerFlowApplication.H.
|
private |
Definition at line 79 of file PowerFlowApplication.H.
|
private |
Definition at line 96 of file PowerFlowApplication.H.
|
private |
Definition at line 92 of file PowerFlowApplication.H.
|
private |
Definition at line 89 of file PowerFlowApplication.H.
|
private |
Definition at line 87 of file PowerFlowApplication.H.
|
private |
Definition at line 82 of file PowerFlowApplication.H.