![]() |
|
#include <SphericalParticleVtkWriter.h>
Inheritance diagram for SphericalParticleVtkWriter: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 |
Public Member Functions inherited from ParticleVtkWriter | |
| ParticleVtkWriter (ParticleHandler &particleHandler) | |
| virtual | ~ParticleVtkWriter ()=default |
Public Member Functions inherited from BaseVTKWriter< ParticleHandler > | |
| BaseVTKWriter (ParticleHandler &handler) | |
| BaseVTKWriter (const BaseVTKWriter &other) | |
| unsigned | getFileCounter () const |
| void | setFileCounter (unsigned fileCounter) |
| void | setOutputDirectory (const std::string &dir) |
| const std::string & | getOutputDirectory () const |
| std::string | getFileName () const |
Private Member Functions | |
| void | writeVTKVelocity (std::fstream &file) const |
| void | writeVTKAngularVelocity (std::fstream &file) const |
| void | writeVTKRadius (std::fstream &file) const |
| void | writeVTKId (std::fstream &file) const |
| Writes the id (unique integer) of the particles to the vtu file. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ParticleVtkWriter | |
| void | writeExtraFields (std::fstream &file) const |
| void | writeVTKIndSpecies (std::fstream &file) const |
| void | writeVTKPositions (std::fstream &file) const |
| bool | particleMustBeWritten (BaseParticle *particle) const |
Protected Member Functions inherited from BaseVTKWriter< ParticleHandler > | |
| std::fstream | makeVTKFileWithHeader () const |
| void | writeVTKFooterAndClose (std::fstream &file) const |
Protected Attributes inherited from BaseVTKWriter< ParticleHandler > | |
| ParticleHandler & | handler_ |
| particle handler from which the particles should be written More... | |
| unsigned int | fileCounter |
| std::string | outputDirectory_ |
|
inlineexplicit |
|
overridedefault |
|
inlineoverridevirtual |
Implements ParticleVtkWriter.
|
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 >.
References BaseHandler< T >::begin(), BaseHandler< T >::end(), BaseVTKWriter< ParticleHandler >::handler_, BaseVTKWriter< ParticleHandler >::makeVTKFileWithHeader(), p, ParticleVtkWriter::writeExtraFields(), writeVTKAngularVelocity(), BaseVTKWriter< ParticleHandler >::writeVTKFooterAndClose(), writeVTKId(), ParticleVtkWriter::writeVTKIndSpecies(), ParticleVtkWriter::writeVTKPositions(), writeVTKRadius(), and writeVTKVelocity().
|
private |
References BaseHandler< T >::getDPMBase(), DPMBase::getRotation(), BaseVTKWriter< ParticleHandler >::handler_, p, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().
|
private |
Writes the id (unique integer) of the particles to the vtu file.
This enables the tracing of particles through multiple files.
| [in] | file | Output filestream. |
References BaseVTKWriter< ParticleHandler >::handler_, p, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().
|
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. |
References BaseVTKWriter< ParticleHandler >::handler_, p, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().
|
private |
References BaseVTKWriter< ParticleHandler >::handler_, p, and ParticleVtkWriter::particleMustBeWritten().
Referenced by writeVTK().