|
Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
A class that output simulation results in the .vtk format. More...
#include <particle_viewer.h>
Public Member Functions | |
| VTKParticleViewer (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 simulation results to the output file in the .vtk format. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ParticleViewer | |
| std::string | rightFlush (std::size_t writeStep, std::size_t numDigits) |
| A small helper function that organizes the format of output filename. More... | |
Protected Attributes inherited from ParticleViewer | |
| 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 simulation results in the .vtk format.
Co-author: Yu, Kwangmin (yukwangmin@gmail.com) on initial interface and data structure design
Created on: 2014/05/23
| VTKParticleViewer::VTKParticleViewer | ( | 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 simulation results to the output file in the .vtk format.
| [in] | time | The physical output time |
| [in] | writeStep | The number of times of output |
Implements ParticleViewer.
1.8.6