Exemplo n.º 1
0
L0004 = [
    BN06, DNVB, VBr, DNM1, SD, DNM2, ANr, DOC, OCXX2, DOC, SFH, CV, CH, SFH,
    DOC, MON, DOC, AN, DNM2, SD, DNM1, VB, DNVB, BN06r, BN05r, BN04r, BN03r,
    BN02r, BN01r, BN00r, BNOM, BNOM, BN00, BN01, BN02, BN03, BN04, BN05, BN06,
    DNVB
]
L0005 = [
    VBr, DNM1, SD, DNM2, ANr, DOC, MON, DOC, SFH, CH, CV, SFH, DOC, OCXX2, DOC,
    AN, DNM2, SD, DNM1, VB, DNVB, BN06r, BN05r, BN04r, BN03r, BN02r, BN01r,
    BN00r, BNOM, BNOM, BN00, BN01, BN02, BN03, BN04, BN05, BN06, DNVB, VBr,
    DNM1
]
L0006 = [
    SD, DNM2, ANr, DOC, MON, DOC, SFH, CH, CV, SFH, DOC, OCXX2, DOC, AN, DNM2,
    SD, DNM1, VB, DNVB, BN06r, BN05r, BN04r, BN03r, BN02r, BN01r, BN00r, BNOM,
    BNOM, BN00, BN01, BN02, BN03, BN04, BN05, BN06, DNVB, VBr, DNM1, SD, DNM2
]
L0007 = [
    ANr, DOC, MON, DOC, SFXH, CH, CV, SFXH, DOC, OCXX, DOC, ANMr, DXM, SDX,
    DNM1, VBMr, DNVB, BN06r, BN05r, BN04r, BN03r, BN02r, BN01r, BN00r, BNOM,
    DOC, OYY_M, DOC, SYY_MH, CH, CV, SYY_MH, DOC, DMON, MON, DME, QM1, DM1,
    DMON, MON
]
L0008 = [
    DOC, OXY_M, DOC, SXY_MH, CH, CV, SXY_MH, DOC, QM2, DOC, OXX_M, DOC, SXX_MH,
    CH, CV, SXX_MH, DOC, DMON, MON, DM2, QM3, DMS
]
RING = [L0001, L0002, L0003, L0004, L0005, L0006, L0007, L0008]
ring = latt.cell(RING)
#ring = latt.beamline(RING,[2.673100e+00,2.442491e-15,0],[2.790055e+00,-1.110223e-14,0])
Exemplo n.º 2
0
qm1g4c30b = latt.quad("qm1g4c30b", L=0.247, K1=-0.812234822773)
qm2g4c01a = latt.quad("qm2g4c01a", L=0.282, K1=1.22615465959)
qm2g4c01b = latt.quad("qm2g4c01b", L=0.282, K1=1.22615465959)
qm2g4c30a = latt.quad("qm2g4c30a", L=0.282, K1=1.22615465959)
qm2g4c30b = latt.quad("qm2g4c30b", L=0.282, K1=1.22615465959)
sh1 = latt.sext("sh1", L=0.2, K2=19.8329120997)
sh3 = latt.sext("sh3", L=0.2, K2=-5.85510841147)
sh4 = latt.sext("sh4", L=0.2, K2=-15.8209007067)
sl1 = latt.sext("sl1", L=0.2, K2=-13.2716060547)
sl2 = latt.sext("sl2", L=0.2, K2=35.6779214531)
sl3 = latt.sext("sl3", L=0.2, K2=-29.4608606061)
sm1a = latt.sext("sm1a", L=0.2, K2=-23.6806342393)
sm1b = latt.sext("sm1b", L=0.2, K2=-25.9460354618)
sm2 = latt.sext("sm2", L=0.25, K2=28.6431546915)

# === Beam Line sequence:
BL = [
    D0001, issp1d, D0002, isbu3, D0003, isbu4, D0004, sh1, D0005, qh1g2c30a,
    D0006, sqhg2c30a, sqhg2c30a, D0007, D0008, qh2g2c30a, D0009, sh3, D0010,
    qh3g2c30a, D0011, sh4, D0012, D0013, b1g3c30a, D0014, qm1g4c30a, D0015,
    sm1a, D0016, qm2g4c30a, D0017, sm2, D0018, qm2g4c30b, D0019, D0020, sm1b,
    D0021, qm1g4c30b, D0022, b1g5c30b, D0023, ql3g6c30b, D0024, sl3, D0025,
    ql2g6c30b, D0026, sl2, D0027, ql1g6c30b, D0028, sl1, D0029, sl1, D0030,
    ql1g2c01a, D0031, sl2, D0032, ql2g2c01a, D0033, sl3, D0034, ql3g2c01a,
    D0035, b1g3c01a, D0036, sqmg4c01a, sqmg4c01a, D0037, qm1g4c01a, D0038,
    sm1a, D0039, qm2g4c01a, D0040, sm2, D0041, qm2g4c01b, D0042, D0043, sm1b,
    D0044, qm1g4c01b, D0045, D0046, b1g5c01b, D0047, sh4, D0048, qh3g6c01b,
    D0049, sh3, D0050, qh2g6c01b, D0051, qh1g6c01b, D0052, sh1, D0053
]
ring = latt.cell(BL)
Exemplo n.º 3
0
DL = latt.drif('DL', L=7.95)
DD1 = latt.drif('DD1', L=0.15)
M2 = latt.drif('M2', L=0)
M3 = latt.drif('M3', L=0)
M4 = latt.drif('M4', L=0)
CH = latt.kick('CH', L=0)
CV = latt.kick('CV', L=0)
L000001 = [
    DL, Q5, D7, Q4, D6, BH, D5, Q3, D4, Q2, D3, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, SF, D1, Q1, D2, SD, DD1, BH, DB, M1, DB, BH, DD1, SD,
    D2, Q1, D1, SF, M2, M2, SF, D1, Q1, D2
]
L000002 = [
    SD, DD1, BH, DB, M1, DB, BH, D3, Q2, D4, Q3, D5, BH, M3, D6, Q4, D7, Q5,
    DL, M4
]
ring = [L000001, L000002]
#ELEMENTDEFINITIONS:

ring = latt.cell(ring)
Exemplo n.º 4
0
S01B_FV2 = latt.kick('S01B_FV2', L = 0)
S01B_V2 = latt.kick('S01B_V2', L = 0)
S01B_V1 = latt.kick('S01B_V1', L = 0)
S01B_FV1 = latt.kick('S01B_FV1', L = 0)
S02A_FV1 = latt.kick('S02A_FV1', L = 0)
S02A_V1 = latt.kick('S02A_V1', L = 0)
S02A_V2 = latt.kick('S02A_V2', L = 0)
S02A_FV2 = latt.kick('S02A_FV2', L = 0)
S02A_V3 = latt.kick('S02A_V3', L = 0)
S02B_V3 = latt.kick('S02B_V3', L = 0)
S02B_FV2 = latt.kick('S02B_FV2', L = 0)
S02B_V2 = latt.kick('S02B_V2', L = 0)
S02B_V1 = latt.kick('S02B_V1', L = 0)
S02B_FV1 = latt.kick('S02B_FV1', L = 0)
L0001 = [MSTART,D11,S01A_P0,IDAP,AP,S01A_Q1,MS01A_Q1,AP,PAAP,PAND,PAPD,PAAP,AP,S01A_P1,D12,D12N,SQNL,S01A_FS1,SQNL,S01A_FH1,S01A_FV1,D12P,S01A_Q2,MS01A_Q2,D13,MEA,MEAQ,S01A_M1_1,S01A_M1_2,S01A_M1_3,S01A_M1_4,S01A_M1_5,MEA,D21A,S01A_Q3,MS01A_Q3,D21B,AP,PAAP,PAND]
L0002 = [PAPD,PAAP,AP,S01A_P2,S01A_S1,SQNL,S01A_S1Q,SQNL,S01A_H1,S01A_V1,MS01A_S1,MSD1,MEA,S01A_S1,D24,S01A_Q4,MS01A_Q4,AP,PAAP,PAND,PAPD,PAAP,AP,S01A_P3,D25,S01A_S2,SQNL,S01A_S2Q,SQNL,S01A_H2,S01A_V2,MS01A_S2,MSF,MEA,MEAQ,S01A_S2,D26,S01A_Q5,MS01A_Q5,D27]
L0003 = [D27N,SQNL,S01A_FS2,SQNL,S01A_FH2,S01A_FV2,D27P,S01A_S3,SQNL,S01A_S3Q,SQNL,S01A_H3,S01A_V3,MS01A_S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AND,PAPD,PAAP,AP,S02B_Q7,D51,MEA,S02B_M2_5,S02B_M2_4,S02B_M2_3,S02B_M2_2,S02B_M2_1,MEA,D29,S02B_Q6,D28,AP,PAAP,PAPD,PAND,PAAP,AP,S02B_P4,S02B_S3,MEA,MSD1,S02B_V3,S02B_H3,SQNL,S02B_S3Q,SQNL,S02B_S3,D27P]
L0013 = [S02B_FV2,S02B_FH2,SQNL,S02B_FS2,SQNL,D27N,D27,S02B_Q5,D26,S02B_S2,MEAQ,MEA,MSF,S02B_V2,S02B_H2,SQNL,S02B_S2Q,SQNL,S02B_S2,D25,AP,PAAP,PAPD,PAND,PAAP,AP,S02B_P3,S02B_Q4,D24,S02B_S1,MEA,MSD2,S02B_V1,S02B_H1,SQNL,S02B_S1Q,SQNL,S02B_S1,AP,PAAP]
L0014 = [PAPD,PAND,PAAP,AP,S02B_P2,D21B,S02B_Q3,D21A,MEA,S02B_M1_5,S02B_M1_4,S02B_M1_3,S02B_M1_2,S02B_M1_1,MEAQ,MEA,D13,S02B_Q2,D12P,S02B_FV1,S02B_FH1,SQNL,S02B_FS1,SQNL,D12N,D12,AP,PAAP,PAPD,PAND,PAAP,AP,S02B_P1,S02B_Q1,AP,IDAP,S02B_P0,D11]
CELL = [L0001,L0002,L0003,L0004,L0005,L0006,L0007,L0008,L0009,L0010,L0011,L0012,L0013,L0014]
ring = latt.cell(CELL)