PLUTO  4.4-patch2
Functions
particles_write_vtk.c File Reference

Writer for particles binary data in .vtk format. More...

#include "pluto.h"

Functions

void Particles_WriteVTK (particleNode *PHeadRef, Output *output, char filename[128])
 

Detailed Description

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>
Authors
B. Vaidya (bvaid.nosp@m.ya@u.nosp@m.nito..nosp@m.it)
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
D. Mukherjee
Date
Aug 20, 2020

Function Documentation

◆ Particles_WriteVTK()

void Particles_WriteVTK ( particleNode *  PHeadRef,
Output output,
char  filename[128] 
)

Write particle Data in Float binary format.

Parameters
[in]PheadRefPointer to the Head Node of Particle List.
[in]filenameFile 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.