Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 819 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 819 Bytes

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.