Programmierpraktikum NPDGL I
|
Data output class writing data stored on a 1D MyGrid to a gnuplot data file. Mehr ...
#include <dataoutput.hh>
Öffentliche Methoden | |
GnuplotOneD (const Grid &grid, const std::string pathname) | |
constructor defining the used grid and a pathname for file system storage | |
template<class DofVectorType > | |
void | write (const DofVectorType &df, unsigned int timeStep=0, double time=0.0) const |
writes a gnuplot file for 1D data at specified time step and time instance |
Data output class writing data stored on a 1D MyGrid to a gnuplot data file.
DataOutput::GnuplotOneD::GnuplotOneD | ( | const Grid & | grid, |
const std::string | pathname | ||
) | [inline] |
constructor defining the used grid and a pathname for file system storage
grid | a reference to the MyGrid instance. |
pathname | string containing the pathname and the filename base for the files created by the write() method. The actual files will have the format "pathname[timeStep]" |
void DataOutput::GnuplotOneD::write | ( | const DofVectorType & | df, |
unsigned int | timeStep = 0 , |
||
double | time = 0.0 |
||
) | const [inline] |
writes a gnuplot file for 1D data at specified time step and time instance
DofVectorType | vector storing data. This needs to be derived from DofVectorInterface |
df | Dof vector that needs to be written to the harddrive |
timeStep | optional timeStep that is added to the filename. |
time | optional time instance that is added to the gnuplot file for animations of trajectories. |
Erneute Implementation von DataOutputInterface.