Download presentation
Presentation is loading. Please wait.
Published byNickolas Patterson Modified over 8 years ago
1
Development of Commissioning Software for CSNS Weibin Liu on behalf of CSNS AP Group Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong Liu, Jun Peng, Jing Qiu, Na Wang, Yuanyuan Wei, Shouyan Xu, Yue Yuan, Sheng Wang, Nan Huang ICFA mini-Workshop on Beam Commissioning for High Intensity Accelerators, June 8 - 10, 2015 China Spallation Neutron Source Institute of High Energy Physics, CAS, Beijing, China
2
散裂中子源进展汇报 八月 11, 2014 2 Outline 1.A Brief History of XAL at CSNS 2.XAL work at CSNS 3.Summary
3
散裂中子源进展汇报 八月 11, 2014 3 1. A Brief History of XAL at CSNS
4
散裂中子源进展汇报 八月 11, 2014 4 Application level TCP/IP Network Accelerator hardware interface XML Database EPICS Channel Access Overall relationship of the XAL application framework …… Physicist and Operator XAL is a framework (software package) designed to provide an accelerator physics programming platform. With XAL physics applications can be developed relatively easily. XAL was developed in Java by SNS firstly. Now it is used and developed by many accelerator laboratories, e.g. SNS, SLAC, FRIB, LANL, etc.
5
散裂中子源进展汇报 八月 11, 2014 About 7 years ago, when CSNS was at physics design stage, the commissioning software which will be used at CSNS was considered. XAL as a software infrastructure for accelerator physics was used successfully at some accelerator laboratories, for example SNS, SLAC, etc. With the help of Dr. Paul Chungming Chu, we had understood the XAL in-depth. In 2012, we decided using XAL as the commissioning software for CSNS. With the help of Dr. Paul Chungming Chu and Dr. Thomas Pelaia, several people of CSNS AP group were send to SNS and FRIB to study XAL. 5
6
散裂中子源进展汇报 八月 11, 2014 6 XAL is a large Java project, many people maybe write codes for this project at the same time. A version control system is needed for XAL developing to avoid coding confliction and repetition. At CSNS, we chose GIT, one of the version control software, to manage XAL project development. Also Eclipse was suggested as the programming IDE(Integrated Development Environment). In Feb. 2013, a GIT server of XAL was set up at IHEP, which means the starting of accelerator application software development for CSNS. From then on most people of CSNS AP group attended the software work.
7
散裂中子源进展汇报 八月 11, 2014 A web view of XAL GIT of CSNS The GIT server was build by Control group of CSNS. 7
8
散裂中子源进展汇报 八月 11, 2014 8 The developing history view of CSNS XAL in Eclipse and Web
9
散裂中子源进展汇报 八月 11, 2014 9 CSNS is a spallation neutron source as SNS. Many XAL applications of SNS are similar to CSNS. So a SNS version XAL was selected as the basis of CSNS version XAL. Some applications from SNS can be ported to CSNS with small modification. Despite the XAL porting work, many application developing work also need to do, because of the specific situation of CSNS. At first the XAL was introduced to CSNS, most of the people attended to the XAL work do not good at programming, especially using Java and EPICS. We started the work from learning JAVA and EPICS. After two years work, we ported most of the general applications, and also we developed some specific applications for CSNS.
10
散裂中子源进展汇报 八月 11, 2014 2. XAL Work at CSNS 10
11
散裂中子源进展汇报 八月 11, 2014 11 The XAL Optics File for CSNS Optics files in XAL format are very important and basic files for the XAL applications. The XAL optics files not only contains the layout of the accelerator, but also include the beam diagnosis and power supply PVs for using and control. The optics files are very large and complicated. Several applications were developed to convert accelerator survey files to XAL optics files for CSNS Linac, LRBT, RCS and RTBT. At the CSNS construction stage, the details of the survey files are often changed. With these applications it is convenient to get the newest XAL optics files. LinacSurveyToXAL LRBTSurveyToXAL RCSSurveyToXAL RTBTSurveyToXAL CSNS.xdxf
12
散裂中子源进展汇报 八月 11, 2014 12 Beta function plots of LRBT, RCS and RTBT with MPX.
13
散裂中子源进展汇报 八月 11, 2014 13 With the model files, the virtual accelerator worked. Many physics applications can be developed with this app.
14
散裂中子源进展汇报 八月 11, 2014 Physics apps and Magnet Power Supply Adjustment 14 Control variables of physics apps usually are magnetic fields. The magnetic fields can not be used by the magnet power supplies directly. They must be converted to currents according to the magnetization curves of the magnets firstly. And then the currents are sent to PSs to ramp. Also the readback values of PSs need to be converted to magnetic fields for the physics apps. To realize this process, EPICS soft IOC(Input / Output Controller) is constructed at CSNS. All relations of magnetic fields to PS currents and PS currents to magnetic field are stored in the records of the soft IOC database.
15
散裂中子源进展汇报 八月 11, 2014 Relations between accelerator physics apps, physics soft IOC and PS 15
16
散裂中子源进展汇报 八月 11, 2014 EPICS Record Database for Physics soft IOC There are hundreds of magnets at CSNS, including quadrupoles, dipoles, correctors, octupoles, kickers. We created magnet database with MySQL to store magnet magnetization curve data and fit results. A magnet database manage application was developed to upload and fit magnetization curves data. This database can be used by records creating application to create the records for the soft IOC database easily. We also created EPICS record database to store the records used by the soft IOC. An app named EPICS Record Browser is used to browse the magnet records in the database. And it can be used to create database (.db) file for the EPICS soft IOC. Records in the database not only include the records that will be used on line, but also include some records simulating the PSs and some other PVs (for control and beam diagnosis). With all these records in the database, accelerator hardware can be simulated offline. 16
17
散裂中子源进展汇报 八月 11, 2014 Magnet Database Schema 17
18
散裂中子源进展汇报 八月 11, 2014 Magnet Database Manager interface 18
19
散裂中子源进展汇报 八月 11, 2014 19 Magnetization curve polynomial fitting interface and a EPICS record for conversion of magnetic field to PS current
20
散裂中子源进展汇报 八月 11, 2014 EPICS record browser interface Records with check markers are used for offline simulation. 20
21
散裂中子源进展汇报 八月 11, 2014 21 Operation Models of CSNS Except the optics model, there are many other models for the operation of CSNS. Here some of the models are listed. 1.Painting curve model 2.RCS RF model (amplitude and phase curve) 3.Extraction kicker model (amplitude and timing for 8 kickers) 4.RCS corrector model (20 set values for 20 orbits) 5.RCS collimator model (5 collimator and 20 scrapers) 6.Stripping Foil model …… The complete operation model is consist of all these models. To manage these models, the apps and database are being constructed.
22
散裂中子源进展汇报 八月 11, 2014 All the models have their own default models. With the model path manager app, the default model can be changed, just like the optics model. And the model interface can be displayed. 22
23
散裂中子源进展汇报 八月 11, 2014 Models can also be fetched from the database or uploaded to the database. 23
24
散裂中子源进展汇报 八月 11, 2014 Lattice/Model Schema To manage the lattice model, database was built with MySQL at CSNS. Also a app is developed to upload and download the models. Model Management 24
25
散裂中子源进展汇报 八月 11, 2014 Model Management App Database Local 25
26
散裂中子源进展汇报 八月 11, 2014 XAL has good portability. Some applications can be applied to CSNS directly or with a little modification. For example, Orbit Correction Online Model PASTA Virtual Accelerator Application Launcher Scan 1D Scan 2D PV Histogram …… 26 XAL Application Porting and Development at CSNS
27
散裂中子源进展汇报 八月 11, 2014 27 Some applications have been modified according to CSNS needs. For example, Beam Injection Control Auxiliary Optics Control Beam at Foil RTBT Wizard RCS Parameter Measurement RCS Orbit Correction …… And some applications are developed for CSNS. For example, Beam Based Alignment Extraction Kicker Settings RCS Collimator Adjustment ……
28
散裂中子源进展汇报 八月 11, 2014 28 Application Launcher
29
散裂中子源进展汇报 八月 11, 2014 Waveform Display of LEBT and MEBT CTs 29 Array PV Viewer
30
散裂中子源进展汇报 八月 11, 2014 Scan 1D was used to scan LEBT correctors for beam current optimization 30 Scan 1D
31
散裂中子源进展汇报 八月 11, 2014 Orbit correction test on CSNS MEBT A BPM hor. value with problem before correction maximum: ± 5mm after correction maximum: ± 1 mm The orbit correction application of XAL can be used for linac and transport line of CSNS. With this app, corrections using online model and using response matrix are all tested on MEBT. The orbit of MEBT without correctors is small. For test we bumped orbits with correctors. With these two correction methods, orbits could be optimized. 31 Orbit Correction
32
散裂中子源进展汇报 八月 11, 2014 32 DTL1 Pasta Simulation Result Pasta
33
散裂中子源进展汇报 八月 11, 2014 33 Auxiliary Optics Control (AOC) Several wire scanners are located at MEBT, LRBT and RTBT. These wire scanners can be used for emittance measurement. With the measure results, beam twiss parameters at entries of the sequences can be gotten by fitting. The optics control app was ported. A twiss fit method calling Parmila was added. With the calculation results, optics can be optimized. And this app will be tested on MEBT recently.
34
散裂中子源进展汇报 八月 11, 2014 34 Wire scanner data fitting interface
35
散裂中子源进展汇报 八月 11, 2014 35 Twiss fit interface
36
散裂中子源进展汇报 八月 11, 2014 36 Beam at Foil The app of beam at foil is ported from SNS XAL. With this app, the position and angle of the beam from LRBT can be adjusted. The close orbit of RCS can be adjusted also.
37
散裂中子源进展汇报 八月 11, 2014 37 Application for Beam Injection Painting This application is ported to CSNS from SNS XAL. With this application, the injection painting curve can be displayed, adjusted and saved. BC control function was added.
38
散裂中子源进展汇报 八月 11, 2014 38 RTBT Wizard This app is ported for adjusting the beam position and beam size on the target.
39
散裂中子源进展汇报 八月 11, 2014 39 Application for RCS Parameter measurement BPM TBT data is from AT simulation
40
散裂中子源进展汇报 八月 11, 2014 40 Tune and Phase advance measurement Dispersion measurement Cosine fit or FFT method is adopted for tune and phase advance measurement The results are consistent with the AT simulation
41
散裂中子源进展汇报 八月 11, 2014 41 Orbit Correction for RCS For RCS of CSNS, the orbit correction app can’t be used directly. In one period of the RCS, beam energy increases from 80 MeV to 1.6 GeV. The beam runs about 20,000 turns. 20 sets of orbit are proveded by the beam diagnosis system in one period. The orbit correction for RCS becomes a little complicated because of 20 orbits at different energies need to be correctted. We developed RCS orbit correction app based on the XAL orbit correction app. A period of the Rapid Cycling Synchrotron
42
散裂中子源进展汇报 八月 11, 2014 Measured vertical closed orbit in different energy Predicted vertical orbit after correction Measured vertical closed orbit in different energy after correction An RCS orbit correction example Orbits before correction created by RCS simulation app 42
43
散裂中子源进展汇报 八月 11, 2014 43 BBA Measurement for CSNS Beam based alignment app is developed for linac and transport line. The BBA app for RCS is also in constructing. Beam based alignment app interface
44
散裂中子源进展汇报 八月 11, 2014 44 Application for Kicker Settings 8 kickers are used for the beam extraction from the RCS. The amplitude and timing of the kickers can be optimized to minimize the vertical orbit of the extraction beam with this app.
45
散裂中子源进展汇报 八月 11, 2014 Application for RCS Collimator Adjustment 45 Five collimators are used at RCS to remove the halo particles. Every collimator has 4 scrapers. With this app the jaw positions can be optimized according to the beam loss.
46
散裂中子源进展汇报 八月 11, 2014 Fudge Factor Measurement 46
47
散裂中子源进展汇报 八月 11, 2014 3. Summary 47
48
散裂中子源进展汇报 八月 11, 2014 48 A development environment of XAL was built at CSNS. Some general applications are ported to CSNS, e.g. optics calculation, orbit correction, PASTA, etc. Some specific applications for CSNS are developed based on the XAL applications. For example orbit correction of RCS, BBA, Kicker Settings, Collimator Adjustment, etc. Some applications which use database are developing, e.g. magnet manager, model manager, etc. Some applications were tested on MEBT. The next work is to improve and test the applications on MEBT.
49
散裂中子源进展汇报 八月 11, 2014 Thanks for Your Attention! 49
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.