PLUTO  4.4-patch2
Functions
particles_lp_write_bin.c File Reference

Writer for particles binary data in .dbl, .flt and ASCII in .tab (only for serial version) format . More...

#include "pluto.h"

Functions

void Particles_WriteBinary (particleNode *PHeadRef, double dt_particles, Output *output, char *useless_fname)
 

Detailed Description

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
D. Mukherjee (dipan.nosp@m.jan@.nosp@m.iucaa.nosp@m..in)
B. Vaidya (bvaid.nosp@m.ya@i.nosp@m.iti.a.nosp@m.c.in)
Date
Nov 11, 2020

Function Documentation

◆ Particles_WriteBinary()

void Particles_WriteBinary ( particleNode *  PHeadRef,
double  dt_particles,
Output output,
char *  useless_fname 
)

Write particle data in single or double precision binary format. The binary file structure is:

<Header (ASCII) section> {field1, field2, ...}_p All fields are mapped from the particle structure into an array and thus converted to either single or double precision, depending on the function that is being called. Fields can be scalars or array: for each particle nelem indicates the number of elements written for each particle. The field order does not have to match the structure member order but it must be consistent with the sequence declared in Particles_SetOutput() function. Individual fields may be excluded by calling SetOutputVar() from ChangeOutputVar ().

Parameters
[in]PheadRefPointer to the Head Node of Particle List.
[in]dt_particlesParticle time step
[in]outputPointer to output structure