{'fraction_non_alphanumeric': 0.02861952861952862, 'fraction_numerical': 0.0, 'mean_word_length': 5.128865979381444, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Superconducting radio-frequency virtual cavity for control algorithms debugging.

Superconducting radio-frequency (SRF) cavities are one of the most important elements in modern particle accelerators as they are used for beam acceleration, bunch manipulation, bunch focusing and defocusing, etc. Nevertheless, the availability of these complex structures prior to their installation in the accelerator is limited, either due to a lack of a real cavity or due to the time needed for the experiment setup (vacuum, cryogenics, cabling, etc.), and thus it can block or delay the development of new algorithms such as low level RF control, quench detection, etc. In this paper, we present a hardware virtual cavity to be used in hardware-in-the-loop simulations. The system implements a cavity electrical model for the transmitted and reflected voltages and more advanced features such as mechanical vibration modes driven by Lorentz-force detuning or external microphonics, hard quenches, and the Q-slope. As viewed from the RF input and output, this virtual cavity acts like a real SRF cavity and can replace such a system in early-stage debugging and operation of ancillary control systems.