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.
39 [
this](
BaseParticle* p){return particleMustBeWritten(p);});
40 file <<
"<Piece NumberOfPoints=\"" << numberOfParticlesToWrite
41 <<
"\" NumberOfCells=\"" << 0 <<
"\">\n";
43 file <<
"<PointData Vectors=\"vector\">\n";
50 file <<
"</PointData>\n";
const std::vector< T * >::const_iterator begin() const
Gets the begin of the const_iterator over all Object in this BaseHandler.
Definition: BaseHandler.h:690
const std::vector< T * >::const_iterator end() const
Gets the end of the const_iterator over all BaseBoundary in this BaseHandler.
Definition: BaseHandler.h:704
Definition: BaseParticle.h:54
void writeVTKFooterAndClose(std::fstream &file) const
Definition: BaseVTKWriter.h:123
ParticleHandler & handler_
particle handler from which the particles should be written
Definition: BaseVTKWriter.h:72
std::fstream makeVTKFileWithHeader() const
Definition: BaseVTKWriter.h:80
void writeVTKIndSpecies(std::fstream &file) const
Definition: ParticleVtkWriter.cc:49
void writeExtraFields(std::fstream &file) const
Definition: ParticleVtkWriter.cc:67
void writeVTKPositions(std::fstream &file) const
Definition: ParticleVtkWriter.cc:29
void writeVTKId(std::fstream &file) const
Writes the id (unique integer) of the particles to the vtu file.
Definition: SphericalParticleVtkWriter.cc:119
void writeVTKAngularVelocity(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:71
void writeVTKRadius(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:95
void writeVTKVelocity(std::fstream &file) const
Definition: SphericalParticleVtkWriter.cc:54