|
Molecular Dynamics
v0.4
Project for the Practical hosted by the Scientific Computing Chair
|
#include <VTKWriter.h>

Public Member Functions | |
| VTKWriter () | |
| virtual | ~VTKWriter () |
| void | initializeOutput (int numParticles) |
| void | plotParticle (Particle &p) |
| void | writeFile (const std::string &filename, int iteration) |
Private Attributes | |
| VTKFile_t * | vtkFile |
This class implements the functionality to generate vtk output from particles.
|
default |
|
virtualdefault |
| void outputWriter::VTKWriter::initializeOutput | ( | int | numParticles | ) |
set up internal data structures and prepare to plot a particle.


| void outputWriter::VTKWriter::plotParticle | ( | Particle & | p | ) |
plot type, mass, position, velocity and force of a particle.


| void outputWriter::VTKWriter::writeFile | ( | const std::string & | filename, |
| int | iteration | ||
| ) |
writes the final output file.
| filename | the base name of the file to be written. |
| iteration | the number of the current iteration, which is used to generate an unique filename |


|
private |