An abstract class for classes that output simulations results.
More...
#include <particle_viewer.h>
|
virtual int | writeResult (double time, std::size_t writeStep)=0 |
| Write simulation results to the output file. More...
|
|
|
std::string | rightFlush (std::size_t writeStep, std::size_t numDigits) |
| A small helper function that organizes the format of output filename. More...
|
|
An abstract class for classes that output simulations results.
- Author
- Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
Co-author: Yu, Kwangmin (yukwa.nosp@m.ngmi.nosp@m.n@gma.nosp@m.il.c.nosp@m.om) on initial interface and data structure design
- Version
- 1.0
- Date
- 2014/07/12
Created on: 2014/05/23
string ParticleViewer::rightFlush |
( |
std::size_t |
writeStep, |
|
|
std::size_t |
numDigits |
|
) |
| |
|
protected |
A small helper function that organizes the format of output filename.
- Parameters
-
[in] | writeStep | The number of times of output |
[in] | numDigits | The number of digits for the indexing of output file name |
virtual int ParticleViewer::writeResult |
( |
double |
time, |
|
|
std::size_t |
writeStep |
|
) |
| |
|
pure virtual |
Write simulation results to the output file.
- Parameters
-
[in] | time | The physical output time |
[in] | writeStep | The number of times of output |
- Returns
- 0 if output success; 1 otherwise
Implemented in TXTParticleViewer1D, and VTKParticleViewer.
The documentation for this class was generated from the following files: