100 200 300 400 500 600 700 800 900 1000 1100
-0.2
-0.1
0
0.1
Temperature [°C]
T
g,meas
- T
g,SP,meas
T
g,MPC
- T
g,SP,MPC
100 200 300 400 500 600 700 800 900 1000 1100
24
24.5
25
25.5
Temperature [°C]
Time [min]
T
cw
Figure 16: Simulation results of the MPC controller.
In the case where the cold water temperature is
constant the controller holds the temperature well ex-
cept a certain small offset due to model differences. A
change in the cold water temperature directly disturbs
the gun temperature. The standard MPC approach ap-
plied here cannot deal with that, because such distur-
bance is not predictable. The controller has to be ex-
tended with some action for disturbance rejection like
integral action.
6 CONCLUSION
A thermal MIMO model of the RF GUN for FLASH
was derived. The model focuses on the cooling circuit
and the influence of the LLRF to it. Since the struc-
ture of the facility at European XFEL is comparable
to FLASH the structure of the model can be used and
only parameters have to be adjusted.
The RF GUN and the cooling circuit are modeled by
power balances. With that the main dynamics of the
thermal behaviour of the facility are captured. The as-
sumptions that one temperature representing the tem-
perature distribution of the whole RF GUN turned out
to be valid. The parameters of the model were esti-
mated by measurement data. Simulation results show
good fits of the RF GUN temperature dynamics to the
measurement data. In the cooling circuit some differ-
ences between simulated and measured temperature
occur caused by only few measurement information
of the cooling circuit available for parameter identifi-
cation, especially the missing flow information.
With the model a model predictive control approach
is derived in simulation to control the gun temperature
by the cold water valve. A rough approximation of the
LLRF control and a linearization of the model allows
the application of a linear MPC approach. Tuning the
controller by changing the weights of the cost func-
tion and testing it in simulation shows that a predictive
cooling concept can significantly improve the stabil-
ity of the RF GUN operation compared to the current
control concept, i.e. less detuning and therefore less
RF power variations leading to constant power dissi-
pation.
In the future the model predictive control concept
can be further developed by adding constraints, dis-
turbance rejection or a nonlinear approach. An im-
provement of the model would be possible with bet-
ter measurement information e.g. by a mobile flow
measurement. Afterwards the controller could be re-
alized on hardware at XFEL and test can be con-
ducted at FLASH. Additionally the model could be
used for other approaches like model-based fault de-
tection. This makes sense because of the high com-
plexity of the whole free-electron laser facility.
REFERENCES
Altarelli, M., Brinkmann, R., Chergui, M., Decking, W.,
Dobson, B., D
¨
usterer, S., Gr
¨
ubel, G., Graeff, W.,
Graafsma, H., Hajdu, J., Marangos, J., Pfl
¨
uger, J.,
Redlin, H., Riley, D., Robinson, I., Rossbach, J.,
Schwarz, A., Tiedtke, K., Tschentscher, T., Vartani-
ants, I., Wabnitz, H., Weise, H., Wichmann, R., Witte,
K., Wolf, A., Wulff, M., and Yurkov, M. (2006).
XFEL, the European X-ray free-electron laser: Tech-
nical design report. DESY XFEL Project Group,
Hamburg.
FLASH (2013). Free-electron laser FLASH.
Fl
¨
ottmann, K., Paramonov, V., Skasyrskaya, A., and
Stephan, F. (2008). Rf gun cavities cooling regime
study. Desy report, TESLA-FEL 2008-02.
Hoffmann, M., Ayvazyan, V., Branlard, J., Butkowski, L.,
Grecki, M. K., Mavric, U., Omet, M., Pfeiffer, S.,
Schlarb, H., Schmidt, C., Piotrowski, A., Fornal, W.,
and Rybaniec, R. (2015). Operation of normal con-
ducting rf guns with mtca.4. In IPAC - 6th Inter-
national Particle Accelerator Conference, Richmond,
USA. DESY Hamburg, FastLogic Sp. z o.o., Lodz,
Warsaw University of Technology.
Kuchling, H. (1991). Taschenbuch der Physik. Fach-
buchverlag Leipzig, 13. edition.
Ljung, L. (1987). System identification: Theory for the
User. Englewood Cleffs, Prentice-Hall.
Ljung, L. (2001). System Identification Toolbox. The Math
Works.
Maciejowski, J. (2002). Predictive Control with Con-
straints. Pearson Education Limited.
Mathworks, I. (2014a). Simulink Design Optmization
User’s Guide. The Mathworks Inc.
Mathworks, I. (2014b). Simulink User’s Guide. The Math-
works Inc.
Schilcher, T. (1998). Vector Sum Control of Pulsed Acceler-
ating Fields in Lorentz Force Detuned Superconduct-
ing Cavities. PhD thesis, Hamburg University.
Stephan, F. (2015). private communication. DESY.
HighPrecisionTemperatureControlofNormal-conductingRFGUNforaHighDutyCycleFree-ElectronLaser
317