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

Class for profiling the nano-scale flow. More...

#include <Statistics.h>

Collaboration diagram for Statistics:
Collaboration graph

Public Member Functions

 Statistics (int numberOfBins)
 Construct a new statistic object. More...
 
void calculateVelocityAndDensityProfile (ParticleContainer &particles, std::array< double, 3 > dimensions, double time)
 Calculate velocity and density profile and write it to two csv file (each profile has its own file). More...
 

Private Attributes

CSVWriter csvVelocityWriter
 
CSVWriter csvDensityWriter
 
int numberOfBins
 

Detailed Description

Class for profiling the nano-scale flow.

Constructor & Destructor Documentation

◆ Statistics()

Statistics::Statistics ( int  numberOfBins)
explicit

Construct a new statistic object.

Parameters
numberOfBinsNumber of bins into which the x-axis is divided.

Member Function Documentation

◆ calculateVelocityAndDensityProfile()

void Statistics::calculateVelocityAndDensityProfile ( ParticleContainer particles,
std::array< double, 3 >  dimensions,
double  time 
)

Calculate velocity and density profile and write it to two csv file (each profile has its own file).

Parameters
particlesParticles to profile.
dimensionsDimensions of the domain {x,y,z}.
timeCurrent time in the simulation.
Here is the call graph for this function:

Member Data Documentation

◆ csvDensityWriter

CSVWriter Statistics::csvDensityWriter
private

◆ csvVelocityWriter

CSVWriter Statistics::csvVelocityWriter
private

◆ numberOfBins

int Statistics::numberOfBins
private

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