source: PSPA/madxPSPA/tests/test-track-9/test-track-9.madx @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.1 KB
Line 
1! YIL13: Taken from tests_old/test_runs/track_example/
2option,-echo,-info,-warn;
3
4!--------1---------2---------3---------4---------5---------6---------7---------8
5!-- This job should be run with mad -x version 8.51/02
6!-- translated to madx format ETDA 9 dec 2003
7
8
9!-- Define Carol Johnstone's FFAG lattice, and compute Twiss parameters at
10!   nominal momentum
11
12beam particle=posmuon, energy=16.3;
13
14sf: sextupole, l=0.01, k2=0;
15qf: quadrupole, l=0.15/2, k1=+1.3798;
16bd: sbend l=0.35, angle=2*pi/314, k1=-0.59135;
17d: drift, l=0.75;
18rfvolt:=0.1;
19rflag:=1/2;
20
21rf: rfcavity, l=1.5, volt=rfvolt, lag=rflag, harmon=4;
22
23carol: line=(qf,d,rf,d,bd,d,rf,d,qf);
24
25use, period=carol;
26twiss save;
27
28title "Carol Johnstone's FFAG ring lattice 6 to 20 GeV - apr07k";
29c314: line=(314*carol);
30use, period=c314;
31makethin, sequence=c314;
32use, period=c314;
33
34twiss;
35
36rfvolt:=0.1;
37rflag:= 1/2;
38rflag:=3/8;
39
40tr$macro(turn): macro = {
41    print, text="Number turn";
42}
43
44track, onepass, update, dump;
45start, x=1e-6, px=0, y=1e-6, py=0, t=-0.25;
46start, x=1e-6, px=0, y=1e-6, py=0, t=-1.0;
47start, x=1e-6, px=0, y=1e-6, py=0, t=-1.75;
48run, turns=10, ffile=1;
49endtrack;
50stop;
51
Note: See TracBrowser for help on using the repository browser.