PLUTO  4.4-patch2
Functions
particles_write_trajectory.c File Reference

Write trajectoy of a particle. More...

#include "pluto.h"

Functions

void Particles_WriteTrajectory (Particle *p, char mode)
 

Detailed Description

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
June 12, 2019

Function Documentation

◆ Particles_WriteTrajectory()

void Particles_WriteTrajectory ( Particle *  p,
char  mode 
)

Write particle coordinates to an ASCII file, named "particle.<id>.dat" where <id> is the particle id. The file used a multiple column format,

<t> <x1> <x2> <x3> <vx1> <vx2> <vx3>

where <t> is the time column and the other contain coordinates and velocities.

Parameters
[in]pA pointer to a particle structure
[in]modeEither "w" or "a" to write or append to the file.