WorksPhysics and Astronomy
Optimization of Piezo Operation for Superconducting TESLA Cavities at EuXFEL
Abstract
Superconducting cavities with high-Q factor require precise tuning to match the RF frequency, ensuring stable electromagnetic fields and minimizing RF power consumption. At the European XFEL (EuXFEL) accelerator, TESLA cavities are tuned using slow tuners (step motors) for coarse adjustments and fast tuners (piezoelectric actuators) for fine-tuning and compensating disturbances such as Lorentz Force Detuning (LFD). Piezo actuators, critical to this system, require high-voltage (up to 100V) and high-current (up to 1A) driving signals for effective LFD compensation. However, they are vulnerable to overvoltage, overcurrent, and overheating, and their protection is crucial since replacing damaged piezos in fully assembled modules is infeasible. Additionally, piezo-induced vibrations can affect the machine's stability. Optimizing piezo excitation, by reducing voltage, current, and current slope while ensuring effective LFD compensation, improves equally efficiency, reliability and machine stability. This paper explores the optimization of piezo excitation at EuXFEL, detailing methods and results applicable to other facilities with superconducting cavities as well.
INTRODUCTION
The cavities at the EuXFEL [1] are tuned using a combination of stepper motor tuners and piezoelectric actuators. Stepper motors provide coarse tuning, while piezo actuators enable fine tuning and compensation of Lorentz force detuning (LFD). Various strategies for piezo actuation have been proposed and implemented [2, 3]. At EuXFEL, a simple and robust approach based on the generation of sinusoidal voltage pulses is employed (Figure 1). These pulses are generated with carefully adjusted amplitude and timing to counteract cavity deformation induced by RF power. The primary advantage of this method lies in its simplicity and operational reliability.

Figure 1. Three sample single-period piezo pulses (A, B, and C) from the parameter search space.
The key parameters of the piezo pulse—amplitude, frequency, timing relative to the RF pulse, and DC offset—can be adjusted. The excitation frequency is fixed at approximately 300 Hz, corresponding to the mechanical resonance frequency of the cavity. Cavity detuning during the RF pulse—specifically during the flattop phase when the field is stabilized—is characterized by three components: static, linear, and quadratic (curvature) detuning (Figure 2). A PI control scheme is used to iteratively adjust the piezo pulse parameters in order to minimize these detuning components: the pulse amplitude compensates for linear detuning, the DC

Figure 2. Detuning profile over the RF pulse and definition of detuning parameters static, linear, and curvature with piezo automation off (black) and on (blue).
offset corrects static detuning, and the pulse timing addresses curvature-related detuning effects (Figure 2).
An automated tuning procedure, based on this algorithm, has been implemented to achieve near-zero detuning during the RF flattop. The effectiveness of this method is demonstrated in Figure 1, which shows the detuning waveform with active piezo compensation.
The operational lifetime of piezoelectric actuators is influenced by both environmental conditions and excitation parameters. Specifically, temperature, humidity, and applied voltage have been identified as critical factors [4, 5]. In the cryogenic environment of the EuXFEL, temperature and humidity can be assumed constant, leaving excitation voltage as the primary factor affecting long-term reliability.
As the lifetime of piezo actuators decreases exponentially with increasing operating voltage, minimizing the excitation voltage is essential for maximizing durability. Furthermore, operational experience indicates that reducing the current slope at the onset of the piezo pulse helps to prevent localized inrush currents and reduces the risk of thermal runaway caused by positive electrothermal feedback mechanisms.
The following sections present an optimization strategy for piezo pulse parameters, with the dual objective of minimizing excitation voltage and reducing the initial current slope of the piezo pulse.
Optimization of Piezo Pulse Parameters
To identify the conditions under which the excitation voltage required to compensate Lorentz force detuning (LFD) is minimized, we performed a systematic characterization of various piezo drive waveforms across all 32 cavities powered by a single RF station (A23.L3 at EuXFEL). Under constant RF excitation conditions (650 MV in vector sum, with a standard EuXFEL RF pulse shape), each cavity was tuned using different piezo pulse configurations.
Several actuation strategies were explored, varying the piezo pulse frequency, timing relative to the RF pulse, and phase (Figure 1, examples A, B, and C). Additionally, double-period sinusoidal pulses were tested.
An automated optimization routine was employed to scan the frequency dependence of piezo pulse parameters required for LFD compensation. For each pulse frequency, the cavity was tuned by iteratively adjusting the pulse amplitude, timing, and DC offset voltage to minimize the detuning components during the RF flattop (Figure 2). The objective was to reduce the static, linear, and quadratic detuning components to near zero; the optimization was considered complete once the absolute values of all three detuning parameters fell below 10 Hz. At this point, the required piezo pulse amplitude was recorded for further analysis. The DC offset voltage was not considered critical, as it can be compensated using the stepper motor tuners.
Piezo Signal Smoothing
Smoothing is done by cutting the initial part of the sine signal, and substituting it with a cubic spline 2. Formally put,
where denotes the spline function, is the spline transition time, and is a sine period. Figure 3 illustrates the difference between a default sine pulse, and a compound one.

Figure 3. Comparison of piezo voltage signals. dashed: sine, : control points of cubic spline with long transition time, : control points of cubic spline with short transition time. The control points are denoted . Overlapping control points are at the start and end of the respective spline. For better readability, only control points of the short transition spline are listed. Control point is the single free parameter used for optimization where corresponds to the short transition spline, and corresponds to the long transition time, respectively.
The requirements for the spline part of the compound piezo voltage signal are as follows:
Smooth up to the 2nd order at the interconnection point of sine and spline.
Smooth up to the 2nd order at the beginning of the pulse.
One free parameter for shaping the initial guess.
These requirements form constraints that require the use of interconnected splines, where is the order of the polynomial.
The knots , i.e. the points in time where we require that , are a design choice for the initial guess of the spline curve, and set by trial and error (see Figure 3).
Knot was chosen as an optimization parameter, or decision variable, to minimize the cost function
where is the transition time, or duration of the spline, the time derivative of the spline within the range , and a weighting coefficient, where corresponds to a signal closest to the sine, and to a smooth spline with maximum transition time. The optimized piezo voltage signal was considered a trade-off between transition time and maximum inrush value, and the weighting coefficient chosen to be .
Results
The results of the piezo pulse parameters optimization are summarized in Figure 4 and Figure 5. The key conclusions are as follows:

Figure 4. The required piezo pulse amplitude to compensate Lorentz force detuning (LFD) evaluated for three different single-period sinusoidal pulses (labeled A, B, and C, as defined in Figure 1) and two corresponding double-period pulses (B2 and C2).

Figure 5. Reduction of the total required piezo pulse energy achieved by applying a double-period sinusoidal waveform with optimized frequency and timing (EuXFEL A23.L3).
Different pulse configurations can significantly affect the required piezo pulse amplitude, with variations reaching several tens of percent.
While the optimal excitation frequency may vary depending on the pulse shape and timing, it shows minimal dependence on the specific characteristics of individual piezos. Therefore, to simplify implementation and ensure standardization, a representative frequency of 275 Hz has been selected as the default excitation frequency.
Among the tested strategies, double-period sinusoidal pulses were found to be the most effective. They enable a reduction in the required piezo amplitude by approximately a factor of two. Since the injected energy scales with the square of the amplitude, this translates to a fourfold reduction in energy input. Taking into account the doubled duration of the pulse, the net energy reduction is approximately a factor of two.
For the piezo signal smoothing, substituting the default sine signal with the smooth signal caused a reduction of the inrush by about 80%, as listed in Table 1. Settling time and energy consumption are almost the same.
| w/o smooth start | w/ smooth start | |
| settling time [s] | 119.3 (± 2.6) | 119.9 (±0.4) |
| energy [mW] | 0.71 (± 0.45) | 0.71 (± 0.46) |
| max. inrush [mA/s] | 200 (± 63) | 33 (± 8) |
Table 1. Comparison of Figures of Merits of Piezo Signal Smoothing for 32 Cavities of Station A23 at EuXFEL
Conclusion
Shifting from a conventional single sine voltage to a double sine waveform, combined with spline-based smoothing of the signal’s leading edge, has significantly improved piezo control efficiency. This transition cuts energy consumption by half and reduces inrush current by 80 %, effectively lowering electrical stress and enhancing system stability and sustainability. Importantly, the change requires no hardware modification, no modification of the existing PI control parameters, and the closed-loop settling time remains unaffected. This approach has already been successfully implemented at EuXFEL, where it demonstrated no negative impact on machine performance while halving the energy required for piezo excitation. Additional smoothing of the inrush current will be introduced in the next version of the piezo control server.
Acknowledgements
This work was partially funded in the context of the R&D program of the European XFEL. This project has also received funding from the European Union’s Horizon Europe research and innovation program under grant agreement N. 101131435.
References
- [1]M. Altarelli et al., “The European X-Ray Free Electron Laser technical design report”, DESY XFEL Project Group, Hamburg, Germany, Rep. DESY 2006-097, Jul. 2007, https://bib-pubdb1.desy.de/record/77248/files/european-xfel-tdr.pdfDOI
- [2]M. Grecki et al., “Piezo control for XFEL”, arXiv, Mar. 2018. doi:10.48550/arXiv.1803.09042DOI
- [3]W. Schappert and Y. M. Pischalnikov, “Adaptive Compensation for Lorentz Force Detuning in Superconducting RF Cavities”, in Proc. SRF’11, Chicago, IL, USA, Jul. 2011, paper FRIAO01, pp. 940–942.DOI
- [4]PI Ceramic GmbH, https://www.pi-usa.us/fileadmin/user_upload/pi_us/files/catalogs/Piezo_Actuator_Lifetime_Test_Reliability_Results.pdf
- [5]P. Pertsch et al., “Reliability of piezoelectric multilayer actuators”, in Proc. of the 10th International Conf. on New Actuators (ACTUATOR 2006), Bremen, Germany, Jun. 2006, paper P11, pp. 527-531.
- [6]T. Lyche and K. Mørken, Spline methods draft. University of Oslo, Norway, 2008. https://www.researchgate.net/publication/265866339_Spline_Methods_Draft