|
ODT
|
#include <inputoutput.h>
Public Member Functions | |
| void | outputProperties (const string fname, const double time) |
| actually write the data file | |
| void | dumpDomainIfNeeded () |
| calls outputProperties for dumpTimes | |
| void | writeDataFile (const string fnameRaw, const double time) |
| writes the gnuplot file and calls outputProperties | |
| void | outputHeader () |
| output header info during odt solution | |
| void | outputProgress () |
| output data going with the header info | |
| void | loadVarsFromRestartFile () |
| void | set_iNextDumpTime (double time) |
| inputoutput (const string p_inputFileDir, const int nShift) | |
| void | init (domain *p_domn) |
| ~inputoutput () | |
Public Attributes | |
| domain * | domn |
| pointer to domain object | |
| ostream * | ostrm |
| Runtime: points to cout or to a file. | |
| string | caseName |
| input file directory | |
| string | inputFileDir |
| input file directory | |
| string | dataDir |
| data directory (output) | |
| YAML::Node | inputFile |
| yaml input file object base node | |
| YAML::Node | params |
| yaml sub node | |
| YAML::Node | streamProps |
| yaml sub node | |
| YAML::Node | initParams |
| yaml sub node | |
| YAML::Node | radParams |
| yaml sub node | |
| YAML::Node | dvParams |
| yaml sub node | |
| YAML::Node | dTimes |
| yaml sub node | |
| YAML::Node | dumpTimesGen |
| yaml sub node | |
| YAML::Node | bcCond |
| yaml sub node | |
| vector< double > | dumpTimes |
| vector of dump times | |
| int | iNextDumpTime |
| index of next dump time | |
| bool | LdoDump |
| flag for whether we are dumping a file | |
| ofstream | gnufile |
| gnuplot script file | |
| int | nShift |
| for file naming | |
Class implementing inputoutput object
Definition at line 25 of file inputoutput.h.
| inputoutput::inputoutput | ( | const string | p_caseName, |
| const int | p_nShift ) |
inputoutput constructor function
| p_caseName | input: directory with input files |
| p_nShift | input: shift the file numbers by this amount (used for multiple sets of parallel runs). |
< use these "nodes" to access parameters as needed
< add an extra "infinity" for easy handling of the last time
Definition at line 37 of file inputoutput.cc.
| inputoutput::~inputoutput | ( | ) |
Destructor function
Definition at line 110 of file inputoutput.cc.
| void inputoutput::dumpDomainIfNeeded | ( | ) |
calls outputProperties for dumpTimes
Dumps a domain, sets flag, increments next dump
Definition at line 198 of file inputoutput.cc.
| void inputoutput::init | ( | domain * | p_domn | ) |
inputoutput initialization function
| p_domn | input: set domain pointer with. |
Definition at line 25 of file inputoutput.cc.
| void inputoutput::loadVarsFromRestartFile | ( | ) |
Restart The number of columns in the restart file should match the number and order of domainvariables that are output to a data file. (That is, the order of the domainvariables in domain).
Definition at line 285 of file inputoutput.cc.
| void inputoutput::outputHeader | ( | ) |
output header info during odt solution
Output title of properties displayed to screen.
Definition at line 229 of file inputoutput.cc.
| void inputoutput::outputProgress | ( | ) |
output data going with the header info
Outputs the data corresponding to outputHeader. After a given number of accepted eddies, output this info.
Definition at line 257 of file inputoutput.cc.
| void inputoutput::outputProperties | ( | const string | fname, |
| const double | time ) |
actually write the data file
Writes a data file of the domain properties (in order)
| fname | input: name of the file to write including path |
| time | input: time of the output |
Definition at line 124 of file inputoutput.cc.
| void inputoutput::set_iNextDumpTime | ( | double | time | ) |
Set iNextDumpTime from time. Used for restarts.
| time | input: time to use to set iNextDumpTime. |
Definition at line 185 of file inputoutput.cc.
| void inputoutput::writeDataFile | ( | const string | fnameRaw, |
| const double | time ) |
writes the gnuplot file and calls outputProperties
Dumps a domain, sets flag, increments next dump
| fnameRaw | input: file name without the path (just the name). |
| time | input: time of the output |
Definition at line 218 of file inputoutput.cc.
| YAML::Node inputoutput::bcCond |
yaml sub node
Definition at line 47 of file inputoutput.h.
| string inputoutput::caseName |
input file directory
Definition at line 35 of file inputoutput.h.
| string inputoutput::dataDir |
data directory (output)
Definition at line 37 of file inputoutput.h.
| domain* inputoutput::domn |
pointer to domain object
Definition at line 31 of file inputoutput.h.
| YAML::Node inputoutput::dTimes |
yaml sub node
Definition at line 45 of file inputoutput.h.
| vector<double> inputoutput::dumpTimes |
vector of dump times
Definition at line 49 of file inputoutput.h.
| YAML::Node inputoutput::dumpTimesGen |
yaml sub node
Definition at line 46 of file inputoutput.h.
| YAML::Node inputoutput::dvParams |
yaml sub node
Definition at line 44 of file inputoutput.h.
| ofstream inputoutput::gnufile |
gnuplot script file
Definition at line 53 of file inputoutput.h.
| int inputoutput::iNextDumpTime |
index of next dump time
Definition at line 50 of file inputoutput.h.
| YAML::Node inputoutput::initParams |
yaml sub node
Definition at line 42 of file inputoutput.h.
| YAML::Node inputoutput::inputFile |
yaml input file object base node
Definition at line 39 of file inputoutput.h.
| string inputoutput::inputFileDir |
input file directory
Definition at line 36 of file inputoutput.h.
| bool inputoutput::LdoDump |
flag for whether we are dumping a file
Definition at line 51 of file inputoutput.h.
| int inputoutput::nShift |
for file naming
Definition at line 55 of file inputoutput.h.
| ostream* inputoutput::ostrm |
Runtime: points to cout or to a file.
Definition at line 33 of file inputoutput.h.
| YAML::Node inputoutput::params |
yaml sub node
Definition at line 40 of file inputoutput.h.
| YAML::Node inputoutput::radParams |
yaml sub node
Definition at line 43 of file inputoutput.h.
| YAML::Node inputoutput::streamProps |
yaml sub node
Definition at line 41 of file inputoutput.h.