Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
h3. 1. the block example for particles trajectories in the input file:
FieldScales:
{
  Type: FieldGradient
  Scale: 0.15e+06  //field scale for particle trajectory
}

By default, the code will save all particles locations at each time step, there are other options for only save information at some time steps, see the examples below:
ParticlesTrajectories:  // record particles' trajectory, only for running single
                        //field case
{   ParticleFile: p       // file name
    Skip: 10              // write file each 10 steps
    Start: 10             // start time step for writing file
    Stop: 100000          // stop time step for writing file
}


h3. 2. Output files saved in the directories ./job/PARTICLE/*/p*_ts*, the file is in ncdf format, can be viewed through paraview. The particle's ID, location, momentum... is saved in these files.