matching when cavities_are_drifts_if_matched = 0
Posted: 22 Dec 2008, 12:06
Hi again michael,
Sorry to keep on bugging you! So i'm doing something really simple, matching a "cell" in a linac. The cell consists of (halfdrift, quad, drift, cryomodule, drift, quad, halfdrift). I was originally using matched = 1 in twiss_output, which gives a nice solution . But then i remembered that elegant treats cavities as drifts for the purposes of matching. So i added cavities_are_drifts_if_matched = 0. The match is now not a match . The start and end twiss values are no longer equal (although funnily enough beta_x = beta_y at both start and end). Matching the same thing in MAD8 works - twiss values at start and end are the same (and beta_x != beta_y at the start and end).
Have i made a boo-boo?
Pete
Sorry to keep on bugging you! So i'm doing something really simple, matching a "cell" in a linac. The cell consists of (halfdrift, quad, drift, cryomodule, drift, quad, halfdrift). I was originally using matched = 1 in twiss_output, which gives a nice solution . But then i remembered that elegant treats cavities as drifts for the purposes of matching. So i added cavities_are_drifts_if_matched = 0. The match is now not a match . The start and end twiss values are no longer equal (although funnily enough beta_x = beta_y at both start and end). Matching the same thing in MAD8 works - twiss values at start and end are the same (and beta_x != beta_y at the start and end).
Have i made a boo-boo?
Pete