Molecular Dynamics  v0.4
Project for the Practical hosted by the Scientific Computing Chair
Public Member Functions | Private Attributes | List of all members
outputWriter::VTKWriter Class Reference

#include <VTKWriter.h>

Collaboration diagram for outputWriter::VTKWriter:
Collaboration graph

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_tvtkFile
 

Detailed Description

This class implements the functionality to generate vtk output from particles.

Constructor & Destructor Documentation

◆ VTKWriter()

outputWriter::VTKWriter::VTKWriter ( )
default

◆ ~VTKWriter()

outputWriter::VTKWriter::~VTKWriter ( )
virtualdefault

Member Function Documentation

◆ initializeOutput()

void outputWriter::VTKWriter::initializeOutput ( int  numParticles)

set up internal data structures and prepare to plot a particle.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ plotParticle()

void outputWriter::VTKWriter::plotParticle ( Particle p)

plot type, mass, position, velocity and force of a particle.

Note
: initializeOutput() must have been called before.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeFile()

void outputWriter::VTKWriter::writeFile ( const std::string &  filename,
int  iteration 
)

writes the final output file.

Parameters
filenamethe base name of the file to be written.
iterationthe number of the current iteration, which is used to generate an unique filename
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ vtkFile

VTKFile_t* outputWriter::VTKWriter::vtkFile
private

The documentation for this class was generated from the following files: