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

Public Member Functions | |
| CSVWriter (int numberOfBins, std::string filename) | |
| Construct new CSVWriter. A csv file is opened ones and closed, when this class is destructed. More... | |
| ~CSVWriter () | |
| When this object is destructed, the csv file is closed. More... | |
| int | writeProfile (std::vector< double > &velocities, double time) |
| Write one data set of a velocity profile to a csv file. More... | |
Private Attributes | |
| std::ofstream | file |
| int | numberOfBins |
Writing profiles to a csv file.
| CSVWriter::CSVWriter | ( | int | numberOfBins, |
| std::string | filename | ||
| ) |
Construct new CSVWriter. A csv file is opened ones and closed, when this class is destructed.
| numberOfBins | Number of bins to use. |
| CSVWriter::~CSVWriter | ( | ) |
When this object is destructed, the csv file is closed.
| int CSVWriter::writeProfile | ( | std::vector< double > & | velocities, |
| double | time | ||
| ) |
Write one data set of a velocity profile to a csv file.
| velocities | Average velocities along y-axis of particles in each bin |
| time | Current time in the simulation. |

|
private |
|
private |