Programs maintained by dlr



MAKE_GROUP ( updated May 2010)
Read two lattice files. Compute the change in the quadrupoles. Create a bmad group that effects the change. Write the group to betasing_knob.bmad. (This can be loaded into BETASING 1 using $ACC_EXE/bmad_to_ing_knob ) /home/dlr/development8_linux/bin/make_group

BPM Gain Fit ( Updated May 2010)


BEAMBEAM (updated May 3, 2005)
Description: Generate a gaussian distribution in 3 dimensional phase space of N_part particles and track them for N_turn turns. Tune the model by interactively changing parameters. Write out the initial and final phase space distributions, including beam size.

BEAM_SIZE u:[cesr.dlr]
Based on stay_clear but more detail, specifically everything that chess wanted to know about a dedicated lattice

BMADZ
Lattice design

ANALYZER
Compute and plot a variety of lattice parameters. Adjust/tune knobs

CONCATENATE u:[cesr.dlr]
Read magnetic field files generated by AM with MERMAID and concatenate so that runge_kutta can read

DE_OVERLAY /home/dlr/bmad_allocate1/bin/de_overlay
Read lattice file, remove all overlays and write name"_nooverlay"

DYNAMIC_APERTURE (Update March 27, 2006)
Description: Determine maximum horizontal and vertical amplitude that will remain within aperture after tracking for a large number of turns (~1000). If R=sqrt(x**2+y**2), and theta=atan(y/x) where x and y are horizontal and vertical displacements from closed orbit, the program will determine for each value of theta, the maximum R for which the trajectory remains in the aperture after N turns

FREQ_MAP ( updated May 5, 2010 )
Description: Compute phase space coordinates vs trajectory starting amplitude for each of N turns. To plot the data "/home/dlr/development/bin/plot_freq_map"

LATTICE_NONLINEARITY
Program to compute dispersion, energy dependence of beta, sextupole moments, etc. both by linear approximation and exact (tracking)

PHASE_AMPLITUDE ~dlr/development7_linux/ac_eta/code/
Multiturn tracking to generate phase and amplitude data at each BPM. Includes BPM noise and radiation damping. Drive longitudinal (at RF cavity), or transverse oscillations. fake_data_params.dat is the initialization file. Reads bmad lattice file and writes: phase_amp_x.fake, phase_amp_y.fake, phase_amp_z.fake

PHASE_AMPLITUDE_MEASUREMENT ~dlr/development7_linux/ac_eta/measurement_cesrv
Read data generated by PHASE_AMPLITUDE and extract, cbar, dispersion, etc. Or read phase_amp file with real data from CESRV and find dispersion

QUICK_PLOT dcslib/modules
DCS's Interface to pgplot routines. This module has instructions for using the interface quick_plot.f90

READ_FIELD u2a:[cesr.bmad.codez]
Program that calls subroutine field_rk which can read magnetic field from data file generated with MERMAID or compute with a table of coefficients and expansion in cosh cos sinh sin etc.compute dispersion, energy dependence Read data form for012.dat with read_field.pcm

RK_WIG_TEST u2a:[cesr.bmad.codez]
Read a lattice file that consists of a wiggler, and track through it to compute linearized transfer matrix and effective k. A test lattice is [cesr.dlr]bmad_wig_test.lat Plot data with [cesr.dlr]wig_track.pcm

ANAYLYZER
Read bmad lattice file and compute everything you can think of. Change element values. Plot. etc.



TUNE_SCAN (Updated May 3, 2005)
Description: Vary horizontal and/or vertical and/or synchrotron tunes over a rectangular grid and for each triplet of tunes track a single particle for N turns (typically N=1000) and determine the maximum vertical and horizontal amplitudes of the trajectory.
$ACC_EXE/tune_scan

TRACKING_ANALYSIS u2a:[cesr.bmad.codez]
Multiturn tracking in a lattice and call bmad subroutine MULTI_TURN_TRACKING_ANALYSIS to get tunes, etc. Uses custom_closed_orbit and links runge_kutta tracking

TWISS_ORBIT u:[cesr.bmad.cesr]
Program to test tracking speed

TWISS_PARAMETERS u2a:[cesr.bmad.codez]
Program that computes beta, alpha, dispersion, phase, and closed orbit and writes to a file.

UNIX COMMAND REFERENCE