deltaFlow
DatFileWriter.H
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Saud Zahir
3 *
4 * This file is part of deltaFlow.
5 *
6 * deltaFlow is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * deltaFlow is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public
17 * License along with deltaFlow. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
29#ifndef DAT_FILE_WRITER_H
30#define DAT_FILE_WRITER_H
31
32#include <string>
33#include <utility>
34#include <vector>
35
36#include "Data.H"
37
42class DatFileWriter final {
43 public:
61 bool write(
62 const std::string& jobName,
63 const std::string& inputFile,
64 const std::string& solverName,
65 const std::string& formatName,
66 const BusData& busData,
67 const BranchData& branchData,
68 const std::vector<std::pair<int, double>>& iterationHistory,
69 int totalIterations,
70 double finalError,
71 double tolerance,
72 bool converged,
73 double elapsedSec,
74 double basemva = 100.0
75 ) const;
76};
77
78#endif
Data structures and utility functions for reading and displaying bus and branch data in power system ...
Writes the detailed data file (.dat) with full input/output records.
bool write(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) const
Writes the detailed data file (.dat) with full input/output records.
Contains all relevant data for each transmission line or transformer branch.
Definition Data.H:83
Contains all relevant data for each bus in the power system.
Definition Data.H:55