PLUTO
4.4-patch2
|
Writer for particles binary data in .vtk format. More...
#include "pluto.h"
Functions | |
void | Particles_WriteVTK (particleNode *PHeadRef, Output *output, char filename[128]) |
VTK particle files are written using the standard legacy format as unstructured grid dataset. The file consists of binary data (both float and int) interlevead by ASCII headers. Only the following fields may be written:
<coord>, <id>, <tinj>, <color>, <speed>
If <n> is the number of particles, the structure of a VTK particle file is the following:
PLUTO <xxx> VTK Data BINARY DATASET UNSTRUCTURED_GRID POINTS <n> float <x1,y1,z1> <x2,y2,z2> ... <xn,yn,zn> CELL_TYPE <n> 1 ... 1 POINT_DATA <n> SCALARS Identity int 1 LOOKUP_TABLE default <id1> <id2> ... <idn> VECTORS Velocity float 3 <vx1, vy1, vz1> <vx2, vy2, vz2> ... <vxn, vyn, vzn> SCALARS Color float 1 LOOKUP_TABLE defaults <color0> <color1> ... <colorn> SCALAR t_inj float 1 LOOKUP_TABLE default <tinj1> <tinj2> ... <tinjn>
void Particles_WriteVTK | ( | particleNode * | PHeadRef, |
Output * | output, | ||
char | filename[128] | ||
) |
Write particle Data in Float binary format.
[in] | PheadRef | Pointer to the Head Node of Particle List. |
[in] | filename | File name of particle data: particles.nnnn.vtk, where nnnn is the data file number. |
NOTE: Can be visualized with VisIt, Paraview. Particles has to visualised using Pseudocolor plot in Visit and Glyps in Paraview.