#include <Recorder.h>
holds results for a number of variables recorded at distinct moments along a dynamical simulation or along a convergence path
#include <libpf/core/Recorder.h>
- Warning
-
Thread safe:
-
Extendable:
-
Platform dependencies:
◆ Recorder()
Recorder::Recorder |
( |
std::string |
recorderName | ) |
|
|
explicit |
- Parameters
-
recorderName | the recoder descriptive name |
◆ ~Recorder()
Recorder::~Recorder |
( |
void |
| ) |
|
◆ clear()
void Recorder::clear |
( |
void |
| ) |
|
◆ markStream()
void Recorder::markStream |
( |
Object & |
model, |
|
|
std::string |
streamName |
|
) |
| |
mark stream for recording; the following variables are recorded: T, P, Tphase.ndot and the molar fraction vector Tphase.x
- Parameters
-
model | reference to the model where the stream is located |
streamName | stream name |
◆ markVariable()
void Recorder::markVariable |
( |
Object & |
model, |
|
|
std::string |
variableName |
|
) |
| |
mark variable for recording
- Parameters
-
model | reference to the model where the variable is located |
variableName | full tag string for the variable |
◆ name()
const std::string & Recorder::name |
( |
void |
| ) |
const |
◆ printCsv()
std::ostream & Recorder::printCsv |
( |
std::ostream & |
os | ) |
const |
print the stored values in tabular form as a semicolon separated (CSV) table
◆ store()
void Recorder::store |
( |
double |
moment | ) |
|
store current values of all marked variables
- Parameters
-
moment | a sequential counter or progression indicator (such as time) to identify when the variables are stored |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Recorder & |
r |
|
) |
| |
|
friend |
print the stored values in human-readable form
The documentation for this class was generated from the following file: