Skip to content
Snippets Groups Projects
Commit 8ee1e332 authored by (no author)'s avatar (no author)
Browse files

This commit was manufactured by cvs2svn to create tag

'VERSION_3_6prerelease'.
parent 9d051620
No related branches found
No related tags found
No related merge requests found
#Email from SImon Leeman
# Discussion at FLS2010
Laurent,
I have attached our Tracy-3 distribution as a tarball. I have also included some code (m4.cc) that should eventually become max-iv_lib.cc within the Tracy-3 distribution. It's a bit of a mess though. ;-)
You will also find a lattice file for our base line design with four damping wigglers. The kick map for the damping wiggler is also attached.
Let me know if you need anything else or have any questions.
Regards,
Simon
Laurent,
I have attached the Makefile.am I use to compile m4.cc. I also define several shell variables in my ~/.bashrc:
export LIBPATH=/usr/local/gfortran/lib
export LD_LIBRARY_PATH=/usr/local/gfortran/lib:/usr/local/lib:/usr/lib
export NUM_REC=$HOME/num_rec
export TRACY_LIB=$HOME/tracy/tracy-3.5
export THOR_LIB=$HOME/Thor-2.0
export LAT="$HOME/projects/in/lattice"
Let me know if that allows you to compile...
Simon
#!/bin/sh
time=`date --iso-8601`
dir=`pwd`
tracy="tracy-3.5"
# set home directory
cd "$dir/$tracy"
# clean up directory
make distclean
rm -rf autom4te.cache
rm -rf aclocal.m4
rm -rf bin/*
rm -rf tracy/bin/*
cd $dir
fname="back_up_$tracy.$time.tgz"
cmd_str="tar -czf $fname "back_up_$tracy.sh" "make_$tracy.sh" $tracy"
echo "$cmd_str"
`$cmd_str`
#------------------------------------------
# rms aligment errors for MAX IV
#-----------------------------------------
# name type x[m] y[m] r [rad]
seed 2279
#girder rms 100.0e-6 100.0e-6 0.2e-03
dipole rms 10.0e-6 10.0e-6 0.1e-03
quad rms 10.0e-6 10.0e-6 0.1e-03
sext rms 10.0e-6 10.0e-6 0.1e-03
corr_h rms 10.0e-6 10.0e-6 0.1e-03
corr_v rms 10.0e-6 10.0e-6 0.1e-03
bpm rms 11.2e-6 11.2e-6 0.1e-03
#QF rms 50.0e-6 50.0e-6 0.2e-03
#QFm rms 50.0e-6 50.0e-6 0.2e-03
#QFend rms 50.0e-6 50.0e-6 0.2e-03
#QDend rms 50.0e-6 50.0e-6 0.2e-03
#SFi rms 50.0e-6 50.0e-6 0.2e-03
#SFo rms 50.0e-6 50.0e-6 0.2e-03
#SFm rms 50.0e-6 50.0e-6 0.2e-03
#SD rms 50.0e-6 50.0e-6 0.2e-03
#SDend rms 50.0e-6 50.0e-6 0.2e-03
# BINP measured multipole errors
# name sys/rms r0 [m] {n Dbn/bN Dan/aN}
seed 4399
quad rms 28.0e-3 2 2.5e-4 0.0 3 2.8e-4 2.9e-4 4 1.9e-4 1.4e-4 6 1.3e-4 0.0 10 3.0e-5 0.0
sext rms 28.0e-3 3 5.0e-4 0.0 4 5.2e-4 4.9e-4 5 3.5e-4 0.0 9 8.0e-5 0.0 15 5.0e-5 0.0
#
quad sys 25e-3 6 0.5e-4 0.0 10 0.5e-4 0.0 14 0.1e-4 0.0
sext sys 25e-3 9 0.5e-4 0.0 15 0.5e-4 0.0 21 0.5e-4 0.0
#
# dipole 3-pole wiggler interaction
# n (b_n L) (a_n L)
#tpw sys 0.0 3 0.0 0.0
# r0 should be ~ good field, in reality it's the measurement coil size
# BINP measured multipole errors
# name sys/rms r0 [m] {n Dbn/bN Dan/aN}
seed 4399
quad rms 28.0e-3 2 2.5e-4 0.0 3 2.8e-4 2.9e-4 4 1.9e-4 1.4e-4 6 1.3e-4 0.0 10 3.0e-5 0.0
sext rms 28.0e-3 3 5.0e-4 0.0 4 5.2e-4 4.9e-4 5 3.5e-4 0.0 9 8.0e-5 0.0 15 5.0e-5 0.0
#
### ADD field errors from manufacturing+shunting: assume 0.02% rms variation of main component
quad rms 11e-3 2 2.0e-4 0.0
sext rms 11e-3 3 2.0e-4 0.0
oxx rms 11e-3 4 2.0e-4 0.0
oxy rms 11e-3 4 2.0e-4 0.0
oyy rms 11e-3 4 2.0e-4 0.0
#
quad sys 25e-3 6 0.5e-4 0.0 10 0.5e-4 0.0 14 0.1e-4 0.0
sext sys 25e-3 9 0.5e-4 0.0 15 0.5e-4 0.0 21 0.5e-4 0.0
#
# dipole 3-pole wiggler interaction
# n (b_n L) (a_n L)
#tpw sys 0.0 3 0.0 0.0
# r0 should be ~ good field, in reality it's the measurement coil size
This diff is collapsed.
{ TITLE "ring20n-20080222 MAXIV lattice from Simon Leeman" }
define lattice; ringtype = 1;
Energy = 3.0;
{making dP smaller speeds up runtime}
dP = 1e-6;
CODeps = 1e-14;
{Meth = 4; Nbend = 4; Nquad = 4; Nsext = 4; Ncorr = 1;}
Meth = 4; Nbend = 10; Nquad = 10; Nsext = 10; Ncorr = 1;
pi = 4.0*arctan(1.0);
c0 = 2.99792458e8;
Brho = 1e9*Energy/c0;
STR0500: DRIFT, L= 5.0000000000E-01;
STR0450: DRIFT, L= 4.5000000000E-01;
STRx403: DRIFT, L= 4.0311000000E-01;
STR0400: DRIFT, L= 4.0000000000E-01;
STR0302: DRIFT, L= 3.0200000000E-01;
STRx203: DRIFT, L= 2.0311000000E-01;
STRx113: DRIFT, L= 1.1268000000E-01;
STR0100: DRIFT, L= 1.0000000000E-01;
STR0075: DRIFT, L= 7.5000000000E-02;
STR0050: DRIFT, L= 5.0000000000E-02;
STR0025: DRIFT, L= 2.5000000000E-02;
STRx013: DRIFT, L= 1.2500000000E-02;
STR0010: DRIFT, L= 1.0000000000E-02;
STRx006: DRIFT, L= 6.0800000000E-03;
{ Girder Markers }
GS: Marker;
GE: Marker;
{ Beam Position Monitors }
BPM_D: Drift, L = 5.0e-2/2.0;
BPM_M: Beam Position Monitor;
BPM: BPM_D, BPM_M, BPM_D;
{ Horizontal and vertical corrector }
CORR_D: Drift, L = 10.0e-2/2.0;
CORR_H: Corrector, Horizontal, Method= Meth;
CORR_V: Corrector, Vertical, Method= Meth;
CORR: CORR_D, CORR_H, CORR_V, CORR_D;
{T3 and OPA quad/sext strengths are normalized}
{m->m/2 for MAD8->T3}
{m->m/2 for MAD8->OPA}
DISPscale=1.0;QDmaster = 1.0;QFscale = 1.0;QDscale = 1.0;WQDscale = 1.0;WQFscale = 1.0;
{original OPA values}
QDmaster = -0.993433/Brho;
{for disp-free straights}
DISPscale = 1.0;
{for 42.20/14.28 in bare RING}
QFscale = 0.999993897;QDscale = 1.000595795;
D0: BENDING, L= 3.6189000000E-01, T= 1.085673,
K=8.6837*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Df1: BENDING, L= 5.0000000000E-02, T= 0.149940,
K=8.6798*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Df2: BENDING, L= 5.0000000000E-02, T= 0.149685,
K=8.6723*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Df3: BENDING, L= 5.0000000000E-02, T= 0.107834,
K=5.9235*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Df4: BENDING, L= 5.0000000000E-02, T= 0.005351,
K=-0.06434*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Df5: BENDING, L= 5.0000000000E-02, T= 0.001543,
K=-0.00121*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm6: BENDING, L= 5.0000000000E-02, T= 0.002217,
K=0.005164*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm5: BENDING, L= 5.0000000000E-02, T= 0.053563,
K=2.932271*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm4: BENDING, L= 5.0000000000E-02, T= 0.074264,
K=4.234943*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm3: BENDING, L= 5.0000000000E-02, T= 0.077218,
K=4.299814*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm2: BENDING, L= 5.0000000000E-02, T= 0.116500,
K=6.082495*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm1: BENDING, L= 5.0000000000E-02, T= 0.149165,
K=8.562347*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
Dm0: BENDING, L= 2.0424000000E-01, T= 0.612721,
K=8.66874*QDmaster*QDscale, T1= 0.0, T2= 0.0,
N = Nbend, Method = Meth;
DIP: Df5, Df4, Df3, Df2, Df1, D0;
DIPm: Dm6, Dm5, Dm4, Dm3, Dm2, Dm1, Dm0, Df1, Df2, Df3, Df4, Df5;
QF: QUADRUPOLE, L= 1.5000000000E-01, K= 4.031557*QFscale,
N = Nquad, Method = Meth;
QFm: QUADRUPOLE, L= 1.5000000000E-01, K= 3.776598*DISPscale*QFscale,
N = Nquad, Method = Meth;
QFend: QUADRUPOLE, L= 2.5000000000E-01, K= 3.521817,
N = Nquad, Method = Meth;
QDend: QUADRUPOLE, L= 2.5000000000E-01, K=-2.176206,
N = Nquad, Method = Meth;
QFendW: QUADRUPOLE, L= 2.5000000000E-01, K= 3.647797,
N = Nquad, Method = Meth;
QDendW: QUADRUPOLE, L= 2.5000000000E-01, K=-2.513862,
N = Nquad, Method = Meth;
SD: SEXTUPOLE, L= 1.0000000000E-01, K=-116.285211,
N = Nsext, Method = Meth;
SDend: SEXTUPOLE, L= 1.0000000000E-01, K=-142.000000,
N = Nsext, Method = Meth;
SFm: SEXTUPOLE, L= 1.0000000000E-01, K=156.000000,
N = Nsext, Method = Meth;
SFo: SEXTUPOLE, L= 1.0000000000E-01, K=170.000000,
N = Nsext, Method = Meth;
SFi: SEXTUPOLE, L= 1.0000000000E-01, K=216.891574,
N = Nsext, Method = Meth;
SQFm: QFm, STR0075, SFm, STRx013, BPM, STRx013, QFm, STR0100, CORR;
SQFo: QF, STR0075, SFo, STRx013, BPM, STRx013, QF, STR0100, CORR;
SQFi: QF, STR0075, SFi, STRx013, BPM, STRx013, QF, STR0100, CORR;
OXX: MULTIPOLE, L = 1.0e-1, HOM=(4,-135.5801/1.0e-1,0),
N = Nsext, Method = Meth;
OXY: MULTIPOLE, L = 1.0e-1, HOM=(4,216.2628/1.0e-1,0),
N = Nsext, Method = Meth;
OYY: MULTIPOLE, L = 1.0e-1, HOM=(4,-85.5096/1.0e-1,0),
N = Nsext, Method = Meth;
h_rf = 176; C = 528.0;
CAV: Cavity, Frequency = c0/C*h_rf, Voltage = 1.5e6, Harnum = h_rf;
lambda_PMDW = 80e-3;
n_PMDW = 25;
L_PMDW = n_PMDW*lambda_PMDW;
B_PMDW=2.22;
PMDWw: Wiggler, L = L_PMDW, lambda = lambda_PMDW, kxV = 0.0,
BoBrhoV = B_PMDW/Brho, N = n_PMDW*4, Method = 2;
{PMDWw: insertion, scaling = 1.0, N = 50, Method = 2,
file2 = "/home/simon/projects/in/lattice/pmdwkick.dat";}
PMDWd: Drift, L = -L_PMDW/2.0;
PMDW: PMDWd, PMDWw, PMDWd;
LongStr: 4*STR0500, STR0400;
LongStrW: 4*STR0500, STR0400;
ShortStr: STR0450, STR0500, STR0302;
DIPuc: SD, STR0010, DIP, INV(DIP), STR0010, SD;
UC1: GS, SQFm, STRx203, DIPuc, GE, STRx403;
UC2: GS, SQFo, STRx203, DIPuc, GE, STRx403;
UC3: GS, SQFi, STRx203, DIPuc, STRx203;
UC4: INV(SQFi), GE, STRx403, GS, DIPuc, STRx203;
UC5: INV(SQFo), GE, STRx403, GS, DIPuc, STRx203, INV(SQFm), GE;
MC: BPM, CORR, OXX, STR0025, QFend, STR0025, OXY, STR0100, QDend,
STRx006, DIPm, OYY, STRx113, CORR, BPM, SDend, STR0050;
wMC: BPM, CORR, OXX, STR0025, QFendW, STR0025, OXY, STR0100, QDendW,
STRx006, DIPm, OYY, STRx113, CORR, BPM, SDend, STR0050;
LINE: LongStr, GS, MC, GE, ShortStr, UC1, UC2, UC3, UC4, UC5,
INV(ShortStr), GS, INV(MC), GE, INV(LongStr);
LINEw: LongStr, GS, MC, GE, ShortStr, UC1, UC2, UC3, UC4, UC5,
INV(ShortStr), GS, INV(wMC), GE, INV(LongStrW);
wLINE: LongStrW, GS, wMC, GE, ShortStr, UC1, UC2, UC3, UC4, UC5,
INV(ShortStr), GS, INV(MC), GE, INV(LongStr);
LINESw: LINEw, PMDW, wLINE;
{RING: LINE, CAV;}
{RING: LINESw, CAV;}
{RING: LINESw, 3*LINE, CAV;}
RING: LINESw, 3*LINE, LINESw, 3*LINE, LINESw, 3*LINE, LINESw, 3*LINE, CAV;
CELL: RING, SYMMETRY = 1;
END;
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
F77=gfortran ./configure --prefix=$dir/$TRACY/tracy
make
make install
#!/bin/sh
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
CC=icc F77=ifort CXX=icc ./configure --prefix=$dir/$TRACY/tracy
make
make install
#!/bin/sh
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
./configure --prefix=$dir/$TRACY/tracy
make
make install
#!/bin/sh
# MAC HOME DIR. for Codes
HOMEDIR=/Users/nadolski/Documents
DIRNAME=codes/tracy/TracyIII/tracy/tracy/src
rsync -avb $HOMEDIR/$DIRNAME/*.cc isei:$DIRNAME
DIRNAME=codes/tracy/TracyIII/tracy/tracy/inc
rsync -avb $HOMEDIR/$DIRNAME/*.h isei:$DIRNAME
DIRNAME=codes/tracy/TracyIII/tracy/tools
rsync -avb $HOMEDIR/$DIRNAME/*.cc isei:$DIRNAME
# set environment variable for running TracyIII
export LIBPATH=/usr/lib/gcc/i386-redhat-linux/4.1.1
export LD_LIBRARY_PATH=/usr/lib/gcc/i386-redhat-linux/4.1.1:/usr/local/lib:/usr/lib
export NUM_REC=$HOME/codes/nrecipes/recipes_c-ansi
export TRACY_LIB=$HOME/codes/tracy/TracyIII/tracy
export THOR_LIB=$HOME/Thor-2.0
export LAT="$HOME/projects/in/lattice"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment