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.
19 file <<
"<Piece NumberOfPoints=\"" << numberOfParticlesToWrite
20 <<
"\" NumberOfCells=\"" << 0 <<
"\">\n";
22 file <<
"<PointData Vectors=\"vector\">\n";
29 file <<
"</PointData>\n";
float * p
Definition: Tutorial_Map_using.cpp:9
const std::vector< T * >::const_iterator begin() const
Gets the begin of the const_iterator over all Object in this BaseHandler.
Definition: BaseHandler.h:698
const std::vector< T * >::const_iterator end() const
Gets the end of the const_iterator over all BaseBoundary in this BaseHandler.
Definition: BaseHandler.h:712
Definition: BaseParticle.h:33
void writeVTKFooterAndClose(std::fstream &file) const
Definition: BaseVTKWriter.h:140
ParticleHandler & handler_
particle handler from which the particles should be written
Definition: BaseVTKWriter.h:71
std::fstream makeVTKFileWithHeader() const
Definition: BaseVTKWriter.h:112
void writeVTKIndSpecies(std::fstream &file) const
Definition: ParticleVtkWriter.cc:28
void writeExtraFields(std::fstream &file) const
Definition: ParticleVtkWriter.cc:46
void writeVTKPositions(std::fstream &file) const
Definition: ParticleVtkWriter.cc:8
void writeVTKId(std::fstream &file) const
Writes the id (unique integer) of the particles to the vtu file.
Definition: SphericalParticleVtkWriter.cc:98
void writeVTKAngularVelocity(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:50
void writeVTKRadius(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:74
void writeVTKVelocity(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:33