143 void help() const noexcept;
InputFormat
Supported input file formats.
@ IEEE
IEEE Common Data Format (.cdf, .txt)
@ PSSE
PSS/E Raw Data Format (.raw)
SolverType
Types of solvers supported by deltaFlow.
@ NewtonRaphson
Newton-Raphson iterative method.
@ GaussSeidel
Gauss-Seidel iterative method.
Parses and stores command-line arguments for deltaFlow.
~ArgumentParser()=default
Destructor (default).
InputFormat getInputFormat() const noexcept
Get the input file format.
double relaxation
Relaxation coefficient ($$ \omega $$)
std::string inputFile
Path to input CDF file.
std::string jobName
Job name (defaults to input filename)
ArgumentParser & operator=(const ArgumentParser &)=delete
ArgumentParser & operator=(ArgumentParser &&)=delete
std::string getJobName() const noexcept
Get the job name.
double getTolerance() const noexcept
Get the convergence tolerance ($$ \epsilon $$).
void parse_args(int argc, char *argv[])
Parse the provided arguments.
void help() const noexcept
Print help message to stdout.
double tolerance
Convergence tolerance ($$ \epsilon $$)
ArgumentParser(const ArgumentParser &&)=delete
SolverType getSolverType() const noexcept
Get the solver type.
std::string getInputFile() const noexcept
Get the input CDF file path.
double getRelaxationCoefficient() const noexcept
Get the relaxation coefficient ($$ \omega $$).
ArgumentParser(const ArgumentParser &)=delete
SolverType method
Solver type.
int maxIterations
Maximum number of iterations ($$ N_{max} $$)
int getMaxIterations() const noexcept
Get the maximum number of iterations ($$ N_{max} $$).
InputFormat format
Input file format.