source: MML/trunk/readme

Last change on this file was 5, checked in by zhangj, 11 years ago

ThomX MML version on the LAL server @ 17/12/2013

File size: 1.5 KB
Line 
1****************************************************************
2*  Configuration and useful MML commands on the server in LAL
3*
4*  Written by Jianfeng Zhang @ LAL
5*    21/06/2013
6*
7*    To be updated....
8*
9***************************************************************
10The location of source code MML is /exp/ThomX/Apps/MML_ThomX
11You can access it use the command on the server terminal:
12$ cd  /opt/ThomX/
13
14(1)  move the file "startup_server.m" to "startup.m":
15     $ mv startup_server.m   startup.m
16 
17    then  copy the MATLAB file to your home folder on the server:
18
19       $scp startup.m  Your_User_Name@oneprivvm-253.lal.in2p3.fr:~
20 
21   For example:  scp startup.m  zhangj@oneprivvm-253.lal.in2p3.fr:~
22
23   This configuration is needed when you access MML at the first time.
24
25(2) start MML
26
27     first login on the server:
28
29       $ssh -X  Your_User_Name@oneprivvm-253.lal.in2p3.fr
30
31     then open MATLAB:
32
33       $matlab
34
35   Now you can use MML freely under MATLAB.
36
37(3) Several useful MML commands
38
39   (a)
40    To write and access High Level Applications of
41    the ThomX storage ring, first we need to run the
42    initialization file:
43    >> setpaththomx('StorageRing')
44
45
46   (b)
47     To get the lattice elment index in AT:
48     >> atindex
49
50   (c)
51     To get the longitudinal location of the first
52     horizontal BPM:
53     >>  getspos('BPMx',1)
54     or
55     >>  getspos('BPMx',[1,1])
56
57   (d) get the circumference of the ring
58      >> getcircumference
59   
60   (f) plot the beta function:
61     >> modelbeta
62
63
64
65
66
67
68 
69
70       
71
Note: See TracBrowser for help on using the repository browser.