![]() |
deltaFlow
|
Functions for writing solver output, status, message, and data files. More...
Functions | |
| std::string | hostname () |
| Returns the current hostname. | |
| std::string | timestamp () |
| Returns the current timestamp string. | |
| std::string | dateStr () |
| Returns the current date string. | |
| std::string | timeStr () |
| Returns the current time string. | |
| bool | writeOutputFile (const std::string &jobName, const std::string &inputFile, const std::string &solverName, const std::string &formatName, const BusData &busData, const BranchData &branchData, const Eigen::MatrixXcd &Y, int iterations, double finalError, double tolerance, double elapsedSec, double basemva=100.0) |
| Writes the main output file (.out) with full analysis results. | |
| bool | writeStatusFile (const std::string &jobName, const std::string &inputFile, const std::string &solverName, const std::string &formatName, int nBus, int nBranch, int iterations, double finalError, double tolerance, bool converged, double elapsedSec) |
| Writes the status file (.sta) with a compact solver summary. | |
| bool | writeMessageFile (const std::string &jobName, const std::string &solverName, const std::vector< std::pair< int, double > > &iterationHistory, double tolerance, bool converged) |
| Writes the message file (.msg) with iteration history. | |
| bool | writeDatFile (const std::string &jobName, const std::string &inputFile, const std::string &solverName, const std::string &formatName, const BusData &busData, const BranchData &branchData, const std::vector< std::pair< int, double > > &iterationHistory, int totalIterations, double finalError, double tolerance, bool converged, double elapsedSec, double basemva=100.0) |
| Writes the detailed data file (.dat) with full input/output records. | |
Functions for writing solver output, status, message, and data files.
|
inline |
Returns the current date string.
Definition at line 83 of file OutputFile.H.

|
inline |
Returns the current hostname.
Definition at line 60 of file OutputFile.H.

|
inline |
Returns the current timestamp string.
Definition at line 75 of file OutputFile.H.

|
inline |
Returns the current time string.
Definition at line 91 of file OutputFile.H.

|
inline |
Writes the detailed data file (.dat) with full input/output records.
| jobName | Job name (used as output filename stem). |
| inputFile | Path to the input data file. |
| solverName | Name of the solver method used. |
| formatName | Name of the input file format. |
| busData | Solved bus data. |
| branchData | Branch data. |
| iterationHistory | Vector of (iteration, error) pairs. |
| totalIterations | Total number of iterations performed. |
| finalError | Final convergence error. |
| tolerance | Convergence tolerance. |
| converged | Whether the solver converged. |
| elapsedSec | Wall-clock time in seconds. |
| basemva | System base MVA (default: 100). |
Definition at line 457 of file OutputFile.H.
References Display::center(), dateStr(), BusData::delta, Display::fileBanner(), BranchData::From, Display::pageWidth, BusData::Pg, BusData::Pl, BusData::Qg, BusData::Ql, Display::sectionHeader(), timeStr(), BusData::Type, and BusData::V.


|
inline |
Writes the message file (.msg) with iteration history.
| jobName | Job name (used as output filename stem). |
| solverName | Name of the solver method used. |
| iterationHistory | Vector of (iteration, error) pairs. |
| tolerance | Convergence tolerance. |
| converged | Whether the solver converged. |
Definition at line 397 of file OutputFile.H.
References dateStr(), Display::fileBanner(), Display::pageWidth, Display::sectionHeader(), and timeStr().


|
inline |
Writes the main output file (.out) with full analysis results.
| jobName | Job name (used as output filename stem). |
| inputFile | Path to the input data file. |
| solverName | Name of the solver method used. |
| formatName | Name of the input file format. |
| busData | Solved bus data. |
| branchData | Branch data. |
| Y | Bus admittance matrix. |
| iterations | Number of solver iterations performed. |
| finalError | Final convergence error. |
| tolerance | Convergence tolerance. |
| elapsedSec | Wall-clock time in seconds. |
| basemva | System base MVA (default: 100). |
Definition at line 112 of file OutputFile.H.
References BranchData::B, Display::center(), dateStr(), BusData::delta, Display::fileBanner(), BranchData::From, hostname(), Display::pageWidth, BusData::Pg, BusData::Pl, BusData::Qg, BusData::Ql, Display::sectionHeader(), BranchData::tapRatio, timeStr(), BranchData::To, BusData::Type, and BusData::V.


|
inline |
Writes the status file (.sta) with a compact solver summary.
| jobName | Job name (used as output filename stem). |
| inputFile | Path to the input data file. |
| solverName | Name of the solver method used. |
| formatName | Name of the input file format. |
| nBus | Number of buses. |
| nBranch | Number of branches. |
| iterations | Number of solver iterations performed. |
| finalError | Final convergence error. |
| tolerance | Convergence tolerance. |
| converged | Whether the solver converged. |
| elapsedSec | Wall-clock time in seconds. |
Definition at line 314 of file OutputFile.H.
References dateStr(), hostname(), timestamp(), and timeStr().

