Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
A class that output 1D simulation results in the .txt format. More...
#include <particle_viewer.h>
Public Member Functions | |
TXTParticleViewer1D (ParticleData *data, const std::string &particleType, const std::string &outputfileName="", int numDigits=7) | |
Constructor. More... | |
virtual int | writeResult (double time, std::size_t writeStep) |
Write 1D simulation results to the output file in the .txt format. More... | |
Additional Inherited Members | |
![]() | |
std::string | rightFlush (std::size_t writeStep, std::size_t numDigits) |
A small helper function that organizes the format of output filename. More... | |
![]() | |
ParticleData * | m_pParticleData |
A pointer to the object which holds particle information and data. | |
std::string | m_sOutputfileName |
The name of the output file. | |
int | m_iNumDigits |
The number of digits for the indexing of output file name. | |
std::string | m_sParticleType |
The type of particle data to output (all, fluid, boundary, etc) | |
A class that output 1D simulation results in the .txt format.
Created on: 2015/03/14
TXTParticleViewer1D::TXTParticleViewer1D | ( | ParticleData * | data, |
const std::string & | particleType, | ||
const std::string & | outputfileName = "" , |
||
int | numDigits = 7 |
||
) |
Constructor.
[in] | data | A pointer to the object which holds particle information and data |
[in] | particleType | The type of particle to output (all, fluid, boundary, ghost) |
[in] | outputfileName | The name of the output file |
[in] | numDigits | The number of digits for the indexing of output file name |
|
virtual |
Write 1D simulation results to the output file in the .txt format.
[in] | time | The physical output time |
[in] | writeStep | The number of times of output |
Implements ParticleViewer.