MercuryDPM
Trunk
|
#include <SphericalParticleVtkWriter.h>
Public Member Functions | |
SphericalParticleVtkWriter (ParticleHandler &particleHandler) | |
~SphericalParticleVtkWriter () override=default | |
void | writeVTK () const override |
Writes all particles into a vtk file format (unstructured grid), consisting of particle positions, velocities, radii and type of species (IndSpecies) More... | |
std::string | getName () const override |
![]() | |
ParticleVtkWriter (ParticleHandler &particleHandler) | |
virtual | ~ParticleVtkWriter ()=default |
![]() | |
BaseVTKWriter (ParticleHandler &handler) | |
BaseVTKWriter (const BaseVTKWriter &other) | |
unsigned | getFileCounter () const |
void | setFileCounter (unsigned fileCounter) |
Private Member Functions | |
void | writeVTKVelocity (std::fstream &file) const |
void | writeVTKRadius (std::fstream &file) const |
Additional Inherited Members | |
![]() | |
void | writeExtraFields (std::fstream &file) const |
void | writeVTKIndSpecies (std::fstream &file) const |
void | writeVTKPositions (std::fstream &file) const |
bool | particleMustBeWritten (BaseParticle *particle) const |
![]() | |
std::fstream | makeVTKFileWithHeader () const |
void | writeVTKFooterAndClose (std::fstream &file) const |
![]() | |
ParticleHandler & | handler_ |
particle handler from which the particles should be written More... | |
unsigned int | fileCounter |
Definition at line 33 of file SphericalParticleVtkWriter.h.
|
inlineexplicit |
Definition at line 39 of file SphericalParticleVtkWriter.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements ParticleVtkWriter.
Definition at line 50 of file SphericalParticleVtkWriter.h.
|
overridevirtual |
Writes all particles into a vtk file format (unstructured grid), consisting of particle positions, velocities, radii and type of species (IndSpecies)
Writes all points ans cells to a file in the VTK format. The filename is hard-coded in this method, and is based on the name of the DPMBase and has a unique counter in it to ensure there are no two files with the same name.
Implements BaseVTKWriter< ParticleHandler >.
Definition at line 35 of file SphericalParticleVtkWriter.cc.
References BaseHandler< T >::begin(), BaseHandler< T >::end(), BaseVTKWriter< ParticleHandler >::handler_, BaseVTKWriter< ParticleHandler >::makeVTKFileWithHeader(), ParticleVtkWriter::particleMustBeWritten(), ParticleVtkWriter::writeExtraFields(), BaseVTKWriter< ParticleHandler >::writeVTKFooterAndClose(), ParticleVtkWriter::writeVTKIndSpecies(), ParticleVtkWriter::writeVTKPositions(), writeVTKRadius(), and writeVTKVelocity().
|
private |
Notice that we write GrainRadius in the file, since there is a bug in Paraview that defaults to the first scalar-value in lexicographic order. We therefore need a description for the radius which starts with a letter before N.
file | The filestream to which the radius must be written. |
Definition at line 76 of file SphericalParticleVtkWriter.cc.
References BaseVTKWriter< ParticleHandler >::handler_, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().
|
private |
Definition at line 53 of file SphericalParticleVtkWriter.cc.
References BaseVTKWriter< ParticleHandler >::handler_, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().