Post on 20-Mar-2016
description
1
BEAM COMMISSIONINGSOFTWARE AND DATABASE
FOR J-PARC LINACHiroyuki Sako
G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEAH. Ikeda, VIC
C. K. Allen, ORNL
Outline Overview of commissioning software system Database High-Level Application frameworks Beam commissioning applications Conclusions and prospects
2
J-PARC Accelerator Complex
LINAC commissioning started in Sep 2006
RCS commissioning has stared in Oct 2007
50 GeV Main Ring ( circumference
1600m)
LINACLINAC(330m)(330m)
3GeV Rapid Cycle Synchrotron
(circumference 350m )
Nuclei/Particle Physics Experimental Facility
Material and Life Science Facility
Neutrino Experimental Facility
3
Design concepts of commissioning software system
• Large number of device channels at J-PARC LINAC– ~20k with beam monitors, magnets and RFs must be fully controlled
• Various settings of devices– Various beam destinations (4 dump lines, 1 transport line to RCS)– Energy 3~181 MeV (during RF tuning)
Central data source– Use of RDB
• Online model and device control– Should be tightly connected
• Easy development and maintenance of applications– Java
4
Commissioning Software System
• Device Control– Java CA libraries
• JCA/CAJ• Database
– Commissioning DB– Save & Restore DB
• Unit Conversion Server– Physics record vs
device record• High Level
Applications– JCE/XAL
Interfaces
devices
IOC
Controlsystem
Save and Restore DB
Snapshot ofdevice parameters
update
High Level Applications
Onlinemodel
input files
Lattice data manager
Analysis and feedback
Commissioning DB
Model params.
Unit conversion parametersEPICS
channel names
geometry
Unit conversionserver
5
Commissioning DB (CODB)
• Central data source for commissioning software and infrastructure– Geometry of beam-line devices– EPICS names– Device and beam modeling parameters– Unit conversion function parameters– Generation of input files for high level applications
• PostgreSQL– “The world’s most advanced open source DB”– Being improved rapidly (both performance and
functionalities)
6
Lattice Data Manager• GUI for lattice related tables
– Geometry and device parameters (e.g. mag field)
• Generation of XAL and Trace3D input files
• Save a data set with a tag and comments– Different beam energy
modes– Different beam lines– Tuned parameters in the
commissioning
7
OPI High Level Applications
Unit ConversionPCAS
Interfaces
Acceleratordevices
IOC
Configuration file generated from CODB
Device records(current)
Physics records (magnetic field)
Monitor and set physical values
convfunc.
Unit Conversion Server• Provides physics records in connection to device records
– Indispensable for efficient beam commissioning• Portable Channel Access Server • ~400 magnet power supplies
– Conversion function : 3rd order polynomial (inverse function solved analytically)
8
High level application frameworks• JCE (Java Commissioning
Environment)– Framework based on a script
language (SAD script)– Parser and core codes
implemented in pure Java– Quick development of applications
• XAL– Framework in Java developed at
SNS– Developed for J-PARC
• JCE/XAL common functionalities– XAL input files– XAL online model– EPICS CA
• XAL wrapper class for JCA/CAJ
Add->{KBFComponentFrame[ Add-> {KBFGroup[Text->"Wire Scanners X for emittance fit"]}, Add-> {KBFCheckButton[Width->xwid,Variable:>awsx[1],Text->ws[1],WidgetVariable:>wawsx[1]]}, Add-> {KBFCheckButton[Width->xwid,Variable:>awsx[2],Text->ws[2],WidgetVariable:>wawsx[2]]}, Add-> {KBFCheckButton[Width->xwid,Variable:>awsx[3],Text->ws[3],WidgetVariable:>wawsx[3]]}, Add-> {KBFCheckButton[Width->xwid,Variable:>awsx[4],Text->ws[4],WidgetVariable:>wawsx[4]]},….
JCE script
JCE application
9
Applications for J-PARC LINAC Commissioning
10
RF tuning application (XAL)
time of flight Energy
Fast Current Transformers
H-
Beam
• Tune amplitude and phase of RF to accelerate beam to a designed energy by measuring time of flight of beam.
RF phase
Energy
Select best-fitamplitude with model
Scan RF amplitude and phase
Designed energy
Measured
Energy
11
• Tune steering magnet so that the orbit passes through the center of a quadruple magnet
Orbit unchanged
Orbit changes withQM field
Beam Position Monitor
Quadrupole magnet
Steering dipolemagnet
Beam Based Alignment
12
Beam Based Alignment application (XAL)– Change QM and steering field and
measure beam positions with BPM– Find center of QM MEBT1 BPM05
BPM positions vs QM fieldat each steering field
Central BPM positions vs steering slope (from left plot)
QM fieldQM field
Slope (Q vs BPM)Slope (Q vs BPM)
BPM positionBPM position Central BPM positionCentral BPM position
13
Transverse matching
Wire scannersProfile measurements
Quadrupole magnets (tune beam envelope)
Iterative tuning
14
Transverse matching application (JCE)
• Measurement of beam profiles with wire scanners
• Optimize QM field for periodic beam envelope with Newton-Raphson method
• Mismatch factor of less than 5% achieved
Before correction
QM tuningWS measurement
After correction
15
Energy analysis application (XAL)
• Integrate all information for energy calculations
• Choose a proper FCT pair and calculate energy
Energy evolution duringRF tuning
RF status
FCT statusEnergy
Beam current
RF timingon/off RF tuning stat
16
Design Energy
Measured Energy181MeV
First acceleration to 181 MeV24 Jan 2007
17
First Injection to RCS (H0 dump) 5 Oct 2007
1%
B
±磁場
±磁
I-BPM
MWPM2QL3BT
ISEP1
QFL SB1 SB2 SB3 SB4QDX PB1 PB2 QDL
MWPM3MWPM4
MWPM5
DSEP1
PB3 PB4 QFM
DSEP2
MWPM6
Dump Q
MWPM7
H0 dump (4kW)
Big-BPM1 Big-BPM2
ISEP2
K-BPM
BLM×4
Dump STR(V & H)
CMCarbon plate(thermometer)
Beam profiles measured by MWPMs
Beam from LINAC
RCS
18
Conclusions and Prospects
• Commissioning software system developed and successfully applied to J-PARC LINAC– Commissioning DB– Unit conversion server– JCE and XAL
• For more efficient operation– Efficient maintenance of Commissioning DB– Development of Save and Restore DB
19
Thank you for your attention!
20
Save and Restore DB• SCORE application in XAL is used with DB in
PostgreSQL– ~9k channels for RF, magnets, monitors
Time stamp Comment
History ofdataset
21
1. H0 dump mode4kW
CE1
DCEKICSEP PB
DM 3NP
MRP
3N dump3N target
Linac
to MR
to MLF
4kW 4kW
1MWH0 dumpRCS
In this mode,the 1st foil is removed,so the linac beam is directly driven to the H0 bump. * Tuning of : - Injection orbit - H0 dump line
- 1st foil : OUT- 2nd foil : IN- 3rd foil : IN- Ring magnetic field : fixed at 181 MeV- RF : - - Collimator : -
22
Online model• Online magnetic field values fetched via CA (via unit
conversion server)• Envelope and orbit calculations• XAL online model compared to Trace3D (a few 10th
% level)
23
ER diagram of Commissioning DB (for lattice info)
• PostgreSQL 8.1• Beam table
– Twiss/emittance/energy• Generation of Probe file
• Lattice data– Geometry table (static)– Device parameter table
(many sets of data with tags)
– Different tables for each device type
• Dipole magnet• Quad magnet• RF• monitor
24
Orbit Correction (orbitcorrect)
Measured BPM positions (horizontal)
Prediction by online simulator
• After correction, Measured positions agrees well with prediction
After correction
Before correction (SDTL)
25
JCE scripts• Magnet field setter
• Current monitor display
• Beam Loss monitor display
• Beam position monitor display
26
Energy calculation from FCT (JCE)
Online energy calculations Energy plot