Skip to content

Files

Latest commit

May 31, 2016
96726ee · May 31, 2016

History

History
This branch is up to date with zhangt58/felscripts:master.

readdpa

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016

readdpa

Read .dpa binary files (6D electron particle phase space distributions) dumped from GENESIS 1.3 and generate the required beam distribution for further simulations.

Subprogram list:

  • readdpa: read .dpa file from GENESIS, generate required beam distribution for further simulations
  • readdpa_lite: lite version of readdpa

Usage:

Usage: ./readdpa dpafile ascfile multitimes format

 This program will generate multitimes dpafile to ascfile.
 e.g. if dpafile contain [0,2pi], then ascfile will range from [0,2pi*N].

 3rd param: data format, elegant or genesis

 Column-name conventions:
  elegant format:|--t--|gamma|--x--|--y--|betax|betay|
  genesis format:|gamma|theta|--x--|--y--|--xp-|--yp-|
  where xp=gamma*betax, yp=gamma*betay, respectively.