Programmierpraktikum NPDGL I
Öffentliche Methoden

DataOutput::GnuplotOneD Klassenreferenz

Data output class writing data stored on a 1D MyGrid to a gnuplot data file. Mehr ...

#include <dataoutput.hh>

Klassendiagramm für DataOutput::GnuplotOneD:
Inheritance graph
[Legende]
Zusammengehörigkeiten von DataOutput::GnuplotOneD:
Collaboration graph
[Legende]

Aufstellung aller Elemente

Ö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

Ausführliche Beschreibung

Data output class writing data stored on a 1D MyGrid to a gnuplot data file.

Beispiele:

test_projection.cc und test_spaceoperator.cc.


Beschreibung der Konstruktoren und Destruktoren

DataOutput::GnuplotOneD::GnuplotOneD ( const Grid grid,
const std::string  pathname 
) [inline]

constructor defining the used grid and a pathname for file system storage

Parameter:
grida reference to the MyGrid instance.
pathnamestring containing the pathname and the filename base for the files created by the write() method. The actual files will have the format "pathname[timeStep]"

Dokumentation der Elementfunktionen

template<class DofVectorType >
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

Template Parameters:
DofVectorTypevector storing data. This needs to be derived from DofVectorInterface
Parameter:
dfDof vector that needs to be written to the harddrive
timeStepoptional timeStep that is added to the filename.
timeoptional time instance that is added to the gnuplot file for animations of trajectories.

Erneute Implementation von DataOutputInterface.

Beispiele:
test_projection.cc und test_spaceoperator.cc.

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: