TEXT   60

xyaup par

Guest on 12th May 2022 10:00:48 AM

  1. Parameters that specify the undulator
  2. =====================================
  3.  
  4. -  PERIOD is the magnet period in centimeters (real)
  5. -  NPER is the number of periods (integer, 150 max)
  6. -  NPTS is the number of points PER PERIOD at which the trajectory
  7.         is to be calculated (integer, 10 min, 100 max, 40 sugg.). The
  8.         magnetic-field modulation and phase-error functions (see eq. 1)
  9.         must then be given at NPTS points per period (NPTS*NPER-1 points
  10.         total).
  11.  
  12.  
  13. Parameters that define the photon energy range
  14. ==============================================
  15.  
  16. -  EMIN is the photon starting energy in eV (real)
  17. -  EMAX is the final photon energy in eV (real)
  18. -  NE is the number of points in energy at which the spectrum will
  19.         be calculated (integer, used in spectral calculations, 500 max)
  20.  
  21.  
  22. Particle beam parameters
  23. ========================
  24.  
  25. -  ENERGY is the electron energy in GeV (real)
  26. -  CURRENT is the beam current in Amps (real)
  27. -  SIGX is the horizontal beam size in mm (real)
  28. -  SIGY is the vertical beam size in mm (real)
  29. -  SIGX1 is the horizontal beam divergence in mrad (real)
  30. -  SIGY1 is the vertical beam divergence in mrad (real)
  31.  
  32.  
  33. Pinhole size and position
  34. =========================
  35.  
  36. -  DISTANCE is the distance to the observation point in meters. If
  37.         =0 then all pinhole sizes (defined below) are assumed to be in
  38.         angular units (mrad).  Otherwise the pinhole sizes are in
  39.         millimeters AND ALL BRIGHTNESS/POWER DENSITY DATA IS PER MM^2
  40.         RATHER THAN PER MRAD^2, E.G. PH/S/MM^2/0.1%BW.
  41. -  XPC is the horizontal position of the pinhole center in mrad or
  42.         mm (real)
  43. -  YPC is the vertical position of the pinhole center in mrad or
  44.         mm (real)
  45. -  XPS is the horizontal pinhole size in mrad or mm (real) -  YPS
  46.         is the vertical pinhole size in mrad or mm (real)
  47. -  NXP is the number of pinhole subintervals in the horizontal
  48.         direction (integer, 100 max)
  49. -  NYP is the number of pinhole subintervals in the vertical
  50.         direction (integer, 100 max)
  51.  
  52.  
  53. Control parameters
  54. ==================
  55.  
  56. -  MODE=0-7 specifies the calculation mode (integer)
  57.         MODE=0 - trajectory calculation only. The settings of
  58.                 all parameters on lines 2-4 are irrelevant in
  59.                 this case.
  60.         MODE=1 - spectrum of the brightness from EMIN to
  61.                 EMAX at NE points  at position XPC,YPC.  In this
  62.                 case XPS,YPS, NXP, and NYP are irrelevant (see
  63.                 Section VII).
  64.         MODE=2 - angular distribution of the brightness at
  65.                 EMIN. In this case EMAX and NE are irrelevant.
  66.         MODE=3 - spectral AND angular distribution of the
  67.                 brightness.
  68.         MODE=4 - spectrum of the flux through a pinhole at
  69.                 NE points in the range [EMIN,EMAX].
  70.         MODE=5 - spectral distribution of the radiated power
  71.                 at XPC,YPC.  In this mode XPS, YPS, NXP and NYP
  72.                 are irrelevant (see Section VII).
  73.         MODE=6 - spectral AND angular distribution of the
  74.                 radiated power.
  75.         MODE=7 - angular distribution of the radiated power
  76.                 integrated from EMIN to EMAX.  In this case NE
  77.                 determines the number of energy points at which the
  78.                 spectrum will be calculated prior to the integration.  
  79.  
  80. -  NSIG is the number of standard deviations of beam divergence to
  81.         include in the calculation (integer, max=5). NSIG=0 gives the
  82.         zero-emittance spectrum (in this case SIGX, SIGY, SIGX1, SIGY1
  83.         are irrelevant).
  84.  
  85. -  TRAJECTORY  is a trajectory-calculation flag
  86.         TRAJECTORY=OLD - read the trajectory from the disk
  87.                 file specified by the keyword TFILE (see below).
  88.         TRAJECTORY=NEW - read the B-field distribution from a
  89.                 file specified by the keyword BFILE and calculate
  90.                 the trajectory  without saving it.
  91.         TRAJECTORY=NEW+KEEP - read the B-field distribution from
  92.                 a file specified with the keyword BFILE, calculate
  93.                 the trajectory and store it in a file specified by
  94.                 the keyword TFILE.  
  95.  
  96. -  XSYM=YES,NO flags whether horizontal symmetry of the spectrum
  97.         should be enforced (integer). Vertical symmetry is always
  98.         enforced. XSYM=NO - do not enforce horizontal symmetry XSYM=YES
  99.         - enforce horizontal symmetry
  100.  
  101. -  HANNING=0,1,...,NPER/2 is the number of periods at the entrance
  102.         and exit of the undulator over which a Hanning window will be
  103.         applied to the solution for the trajectory prior to the FFT.  If
  104.         HANNING=0 no window will be  applied (default).  USE WITH
  105.         EXTREME CAUTION.
  106.  
  107.  
  108. I/O filename specifications
  109. ===========================
  110.  
  111. -  BFILE - when TRAJECTORY=NEW or NEW+KEEP this keyword must
  112.         specify a complete directory specification of the disk file
  113.         containing the B-field distribution (<80 chars).  If
  114.         TRAJECTORY=OLD the value of BFILE is irrelevant and may be
  115.         omitted.  THE FILE NAME MUST BE ENCLOSED IN DOUBLE QUOTES.
  116.  
  117. -  TFILE - when TRAJECTORY=OLD or NEW+KEEP this keyword must
  118.         specify a complete directory specification of the disk file
  119.         containing the trajectory or to which the trajectory will be
  120.         written. The maximum length of the filenames is 80 characters.
  121.         THE FILE NAME MUST BE ENCLOSED IN DOUBLE QUOTES.  If TRAJECTORY
  122.         = NEW this keyword may be omitted.
  123.  
  124. NOTE:  unless told otherwise YAUP converts all input to upper case. On
  125. case-sensitive systems (e.g. UNIX) this may cause problems with the
  126. interpretation of file names.  In such cases (or any time you want to
  127. keep the file names case-sensitive and/or want to use file names
  128. containing blanks) enclose the file names in DOUBLE quotes, e.g.
  129. BFILE= "/users/myname/myfile.b"
  130.  
  131.  
  132. Miscellaneous keywords
  133. ======================
  134.  
  135. - QUIET=YES,NO - when YAUP encounters a word that it does not
  136.         recognize it will complain loudly.  You may prevent it from
  137.         doing so by using the QUIET flag.  By default QUIET is set to
  138.         NO. Setting QUIET=YES will cause all unrecognized keywords to be
  139.         ignored.  It is your responsibility to avoid all typos and
  140.         accidental occurrences of text containing keywords.  It is
  141.         probably a good idea to set QUIET=NO (default) and comment out
  142.         all additional text in YAUP.INP
  143.  
  144. - END - all input following the keyword END is ignored

Raw Paste


Login or Register to edit or fork this paste. It's free.