Superconducting cavity high-pressure jet cleaning simulation system and operation method thereof
The simulation system for high-pressure jet cleaning of superconducting cavities using the MATLAB platform solves the problem of efficient simulation of high-pressure jet cleaning of superconducting cavities by using the MT algorithm to find the intersection of rays and triangles. This achieves significant savings in computational speed and resources, optimizes cleaning process parameters, and improves the performance and reliability of the superconducting cavity.
Patent Information
- Application Number
- CN202511470998.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2026-01-09
AI Technical Summary
Existing technologies cannot efficiently and accurately simulate the cleaning effect of high-pressure jet cleaning in superconducting cavities. Traditional methods are costly and computationally complex, making it difficult to meet the needs of rapid optimization and mass production.
A simulation system for superconducting cavity high-pressure jet cleaning based on the MATLAB platform is adopted. The MT algorithm is used to quickly calculate the intersection of rays and triangles, and the simulation is carried out in combination with a mathematical model. The system includes modules for model import, parameter input, simulation calculation and result display, so as to achieve efficient and accurate prediction of cleaning effect.
It significantly reduces computational complexity and resource consumption, increases computational speed by at least an order of magnitude, provides an intuitive display of cleaning results, helps optimize process parameters, and improves the reliability and consistency of the cleaning process.
Smart Images

Figure CN121302684A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of simulation technology in superconducting technology application, and particularly relates to a superconducting cavity high-pressure jet cleaning simulation system based on a MATLAB software platform and an operation method thereof. BACKGROUND
[0002] In the field of superconducting cavity technology application, especially in large scientific research projects such as the International Linear Collider (ILC), the assembly quality of the superconducting RF cavity is directly related to the performance and stability of the overall equipment. Among them, the cleanliness of the inner surface of the superconducting cavity is one of the key factors affecting the performance of the cavity; as an effective cleaning method, high-pressure jet cleaning (HPR) can significantly remove residues on the resonator wall and reduce field emission, thereby improving the overall performance of the superconducting cavity.
[0003] However, in actual application, the influence of HPR jet flow on the superconducting cavity wall itself has not been fully studied; traditional experimental methods not only have high cost, but also are difficult to comprehensively and accurately simulate the cleaning effect under different cleaning parameters. In addition, although the existing finite element simulation method can provide high accuracy, it has high computational complexity and large resource consumption, which is difficult to meet the needs of rapid optimization and batch production.
[0004] At present, there is a lack of an efficient simulation system for the HPR cleaning process of the inner surface of the superconducting cavity in the market. The system should be able to simulate the cleaning process under different cleaning parameters, predict the cleaning effect, and guide the optimization of actual process parameters; therefore, developing a superconducting cavity high-pressure jet cleaning simulation system based on a mathematical model, high calculation efficiency and reliable accuracy is of great significance for improving the performance and reliability of the superconducting cavity cleaning process and promoting the smooth progress of large scientific research projects such as the ILC. SUMMARY
[0005] In view of the above problems, the present application aims to provide a superconducting cavity high-pressure jet cleaning simulation system based on a MATLAB software platform and an operation method thereof. The system uses the M-T algorithm to realize fast calculation of ray and triangle intersection, and efficiently simulates the inner surface of the superconducting cavity through a mathematical model, which not only can accurately predict the cleaning effect under different cleaning parameters, but also can significantly reduce the computational complexity and save computing resources, providing strong support for the optimization of the superconducting cavity cleaning process.
[0006] The technical scheme adopted by the present application to solve the technical problems is: a superconducting cavity high-pressure jet cleaning simulation system, comprising: a model import module for importing an stl file of a superconducting cavity inner surface grid model and displaying the loaded model in the system interface; A parameter input module is configured to input five cleaning parameters, including time step, cleaning angle, reciprocating times, number of calculation cores and cleaning index, each parameter is provided with a reasonable limit range, and the parameters need to be re-input if exceeding the range; A simulation calculation module is configured to perform cleaning simulation on the inner surface of the superconducting cavity based on the M-T algorithm and effective cleaning conditions. The M-T algorithm is a fast method for calculating the intersection of a three-dimensional ray and a triangle, and does not need to calculate the plane equation containing the triangle in advance, but directly judges whether the ray and the triangle intersect. A result display module is configured to display a cloud map of the cleaning result of the inner surface of the superconducting cavity, and give the effective cleaning coverage rate for the input parameters.
[0007] The M-T algorithm specifically includes: Suppose that the starting point of the ray is O, the direction vector is, and the distance between a point P on the ray and O is t. For a triangle ABC, the internal point P satisfies the vector relationship formula, which is converted into the point coordinate form. According to the ray equation, the P point coordinate is expressed in a specific form. The intersection point coordinates are solved by simultaneously solving the equations, and it is judged whether the intersection point is in the positive direction of the ray and located inside the triangle.
[0008] When solving the intersection point coordinates, the Cramer rule is used, and it is judged whether t, u and v satisfy the conditions: t>0, u>0, v>0, and u + v<1.
[0009] The cosine value of the included angle φ between the jet and the normal vector of the flushing plane is taken as the cleaning strength, and the cleaning index is defined as a certain value, and when the cleaning strength is greater than the cleaning index, it is considered as effective cleaning.
[0010] The movement of the nozzle in the cavity is realized by the coordinate movement of the starting point O and the change of the direction vector of the ray, and the nozzle is simplified as a series of ray sets sharing one starting point O but having different direction vectors.
[0011] During the calculation process of the simulation calculation module, the calculation state is displayed in real time, and the result display module is automatically triggered when the calculation is completed.
[0012] An operation method of a superconducting cavity high-pressure jet cleaning simulation system, characterized in that it comprises the following steps: S1, start the system and enter the operation interface; S2, import the stl file of the superconducting cavity inner surface grid model through the model import module; S3, input five cleaning parameters, including time step, cleaning angle, reciprocating times, number of calculation cores and cleaning index, in the parameter input module; S4, start the simulation calculation module to perform cleaning simulation on the inner surface of the superconducting cavity; S5, view the cloud picture and effective cleaning coverage of the cleaning result through the result display module.
[0013] In the S2 model import step, the system automatically detects the stl file integrity of the imported superconducting cavity inner surface mesh model, if the file is damaged or incompatible, an error prompt information is displayed on the operation interface, and the subsequent parameter input and simulation calculation process is terminated, until the user re-imports the valid stl file.
[0014] In the S3, the parameter input module performs real-time verification on the input parameters when receiving the cleaning parameters input by the user, if the parameters exceed the preset reasonable limit range, an error prompt box is immediately popped up on the operation interface, and the start of the simulation calculation module is prevented, until the user re-enters the parameters meeting the range requirements.
[0015] In the S4, the simulation calculation module adopts a fast simulation algorithm based on a mathematical model, which significantly reduces the calculation complexity while ensuring the prediction accuracy of the cleaning result, so that the simulation calculation speed is at least one order of magnitude higher than the traditional finite element simulation method under the same hardware conditions, thereby effectively saving the calculation resources and time cost.
[0016] The superconducting cavity high-pressure jet cleaning simulation system and the operation method thereof have the following significant advantages and beneficial effects compared with the prior art: The present application realizes fast simulation based on the M-T algorithm mathematical model, avoids the high calculation complexity of the traditional finite element method, improves the calculation speed by at least one order of magnitude under the premise of ensuring the prediction accuracy, significantly saves the calculation resources and time cost, and is especially suitable for process optimization requirements in batch production of superconducting cavities.
[0017] The system can intuitively display the cleaning effect of the inner surface of the superconducting cavity under different nozzle angles, cleaning intensities and other parameters, generate an effective cleaning coverage cloud picture, help users quickly locate the optimal process parameters, reduce experimental trial and error costs, and improve the reliability and consistency of the cleaning process.
[0018] Real-time feedback and operational convenience.
[0019] The present application displays the calculation state in real time during the simulation process, the parameter input module has an automatic verification function, and when the input exceeds the reasonable range, it immediately prompts correction to avoid invalid calculation, and the model import module automatically detects the file integrity to ensure smooth process.
[0020] The nozzle movement of the present application is simulated by changing the ray direction vector, which can flexibly reproduce linear reciprocating and rotating motion, covering the cleaning needs of complex surfaces in the superconducting cavity, and combining with the cleaning intensity definition (cosine value of the angle between the jet and the normal vector) to realize accurate determination of the effective cleaning area.
[0021] The system of this invention provides a low-cost and high-efficiency simulation tool for batch cleaning before superconducting cavity assembly, which helps to improve the stability of cavity performance, meet the high standards of superconducting radio frequency cavity quality requirements of large-scale scientific research projects such as the International Linear Collider (ILC), and promote the transformation of superconducting technology from the laboratory to industrial applications. Attached Figure Description
[0022] Figure 1 This invention provides a method for treating a ray A schematic diagram showing the intersection of the triangular plane formed by points A, B, and C in three-dimensional space; Figure 2 This is a diagram defining the cleaning intensity of the present invention; Figure 3 This is a simplified mathematical model diagram of the nozzle in this invention; Figure 4 This is a diagram of the software operation page in this invention; Figure 5 This is a flowchart of the software operation in this invention. Detailed Implementation
[0023] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings: like Figures 1-5 As shown, a simulation system for high-pressure jet cleaning of a superconducting cavity and its operation method are described below: P1. System Architecture and Hardware Environment This system is developed based on the MATLAB software platform and runs on a general-purpose computer (CPU: Intel Core i7 or higher, memory ≥16GB, operating system: Windows 10 / Linux). Human-computer interaction is achieved through a graphical user interface (GUI). The main modules of the system include: parameter input module, model import module, simulation calculation module, and result visualization module. Data interaction between modules is achieved through MATLAB function calls.
[0024] P2, System Algorithm Principles This invention is based on the MT algorithm, a fast method for calculating the intersection of rays and triangles in 3D. It does not require pre-calculation of the equations of the plane containing the triangle and can directly determine whether a ray and a triangle intersect in one step. Figure 1 The diagram showing the intersection of the ray and the triangle space illustrates that at t=0s, the intersection determination of the jet with triangle element number 5,231 directly applies this geometric principle, quickly calculating the intersection point coordinates through vector dot product. More specifically, Figure 1 The text provides a definition for a ray. In three-dimensional space and A , B and CThe triangle formed by the three points intersects, wherein O is the origin of the ray, is the direction vector of the ray, t is the distance between a point on the ray and the origin of the ray O . Assuming the intersection point is P , for a point ABC inside the triangle P , the following vector relationship is obtained (1) wherein, . Equation (1) is written in the form of point coordinates, and the following is obtained (2) According to the ray equation P , the coordinates of the point can be expressed as (3) Equations (2) and (3) are combined to obtain (4) Equation (4) can be regarded as a linear equation set for solving unknowns t , u and v , and is written in matrix form as (5) The Cramer rule can be used to solve it. Since the point P obtained by solving must be in the positive direction of the ray and located inside the triangle ABC, t, u and v need to satisfy the following conditions: 1. ; 2. ; 3. .
[0025] For the cleaning surface, the cosine value of the included angle φ between the jet and the normal vector of the flushing plane is taken as the cleaning intensity, as shown in Figure 2 . The cleaning index is defined as a certain value, and for a certain cleaning surface, the cleaning intensity greater than the cleaning index is considered as effective cleaning.
[0026] Based on the algorithm and the effective cleaning condition, the inner surface of the superconducting cavity can be cleaned. The inner surface of the superconducting cavity is divided into a series of triangular surfaces by triangular meshing, and the collision is simplified as a series of ray sets sharing the same starting point O but having different direction vectors. The straight-line reciprocating motion and rotational motion of the nozzle in the cavity are embodied by the coordinate motion of the starting point O and the change of the direction vector of the ray.
[0027] P3, operation method implementation steps S1: Start the system and initialize The user double-clicks the MATLAB script file (such as HPR_Simulation.m) to start the system, and the GUI interface loads the default parameters (such as nozzle angle 30°, cleaning intensity 0.8, and nozzle movement speed 5 mm / s) and the example superconducting cavity mesh model (STL format).
[0028] S2: Import the superconducting cavity mesh model The user clicks the "Import Model" button and selects a local STL file (such as cavity_model.stl). The model import module automatically detects the file integrity. If the file is damaged or has a format error, a red warning box pops up, displaying "STL file parsing failed, please re-import". If the file is valid, the system parses the mesh data and displays a 3D view of the model, and extracts the number of triangular elements on the model surface and vertex coordinates for subsequent calculations.
[0029] S3: Input cleaning parameters The user inputs the following parameters in the "Parameter Setting Area": Nozzle angle: 45° (range 0°~90°, input box turns red and prompts "Angle must be between 0°~90°" if out of range); Cleaning intensity: 0.7 (range 0~1, corresponding to the cosine value of the included angle between the jet and the normal vector); Nozzle movement path: straight reciprocating motion (rotary motion is optional, achieved by modifying the path parameters); Movement speed: 10 mm / s.
[0030] S4: Start simulation calculation Click the "Start Simulation" button, and the simulation calculation module performs the following processes: Initialize the calculation environment: load the model data and allocate memory space to store intermediate results; Jet trajectory simulation: based on the nozzle angle and movement path, calculate the intersection points of the jet and the model surface at each time step (Δt=0.01s) (M-T algorithm is used to accelerate calculation); When the nozzle is at (0,0,100) mm and the angle is 45°, the jet direction vector is (0,0,-1), and the M-T algorithm is used to quickly determine the intersection coordinates of the jet and the model surface triangular element; Cleaning effect determination: for each intersection point, calculate the cosine value of the included angle between the jet direction and the surface normal vector (i.e. cleaning intensity); if the cosine value ≥ input parameter (such as 0.7), mark the area as "effective cleaning", otherwise as "uncleaned"; Generate coverage cloud map: count the cleaning status of all triangular elements on the model surface, calculate the effective cleaning area ratio; use MATLAB's patch function to draw a color cloud map (such as Figure 1Red indicates high coverage (>90%), and blue indicates low coverage (<30%).
[0031] S5: Result analysis and export Users can rotate and zoom the three-dimensional model to view the cleaning effect from different perspectives; the system includes parameter settings, coverage statistics, and key intersection coordinates; and the cloud image can be saved as a PNG format (such as coverage_map.png) by clicking the "Save Image" button.
[0032] In summary, the system uses the M-T algorithm (a fast method for calculating the intersection of rays and triangles in three-dimensional space) to efficiently simulate the high-pressure rinse (HPR) process on the inner surface of the superconducting cavity, aiming to deeply study the cleaning process and optimize the HPR process parameters, thereby improving the performance and reliability of the superconducting cavity cleaning process, especially suitable for batch cleaning production requirements before the assembly of superconducting radio frequency cavities in the International Linear Collider (ILC) project; this technology achieves fast simulation through mathematical models, significantly reducing computational complexity compared to traditional finite element methods, and has the advantages of high efficiency, precision, and resource conservation.
Claims
1. A superconducting cavity high pressure jet washing simulation system, characterized by: The method comprises the following steps: The model import module is used for importing the stl file of the superconducting cavity inner surface grid model and displaying the loaded model in the system interface. The parameter input module is used for inputting five cleaning parameters of time step, cleaning angle, reciprocating times, calculation core number and cleaning index. The simulation calculation module is used for cleaning simulation of the superconducting cavity inner surface based on the M-T algorithm and effective cleaning condition. The result display module is used for displaying the cloud picture of the superconducting cavity inner surface cleaning result and giving the effective cleaning coverage rate for the input parameters.
2. The superconducting cavity high pressure jet washing simulation system of claim 1, wherein: The M-T algorithm comprises the following steps: Supposing that the starting point of the ray is O and the direction vector is, the distance between a point P on the ray and O is t. For the triangle ABC, the internal point P satisfies the vector relationship formula, which is converted into the point coordinate form. According to the ray equation, the P point coordinate is expressed in a specific form. The intersection point coordinates are solved by simultaneously solving equations, and it is judged whether the intersection point is in the positive direction of the ray and located inside the triangle.
3. The superconducting cavity high pressure jet washing simulation system of claim 2, wherein: When the intersection point coordinates are solved by simultaneously solving equations, the Cramer rule is used, and it is judged whether t, u and v satisfy the conditions: t > 0, u > 0, v > 0 and u + v < 1.
4. The superconducting cavity high pressure jet washing simulation system of claim 1, wherein: The cosine value of the included angle φ between the jet and the flushing plane normal vector is taken as the cleaning strength, and the cleaning index is defined as a certain value.
5. The superconducting cavity high pressure jet washing simulation system of claim 1, wherein: The movement of the nozzle in the cavity is realized by the coordinate movement of the starting point O and the change of the ray direction vector, and the nozzle is simplified as a series of ray sets sharing one starting point O but having different direction vectors.
6. The superconducting cavity high pressure jet washing simulation system of claim 1, wherein: During the calculation process of the simulation calculation module, the calculation state is displayed in real time, and the result display module is automatically triggered when the calculation is completed.
7. A method of operating a high-pressure jet washing simulation system based on the superconducting cavity according to any one of claims 1 to 6, characterized in that: The method comprises the following steps: S1, starting the system and entering the operation interface; S2, importing the stl file of the superconducting cavity inner surface grid model through the model import module; S3, inputting five cleaning parameters of time step, cleaning angle, reciprocating times, calculation core number and cleaning index in the parameter input module; S4, starting the simulation calculation module to perform the cleaning simulation of the superconducting cavity inner surface; S5, checking the cloud picture and effective cleaning coverage rate of the cleaning result through the result display module.
8. The method of claim 7, wherein: In the model import step S2, the system automatically detects the integrity of the imported stl file of the superconducting cavity inner surface grid model, if the file is damaged or the format is incompatible, an error prompt information is displayed on the operation interface, and the subsequent parameter input and simulation calculation process is terminated until the user re-imports the valid stl file.
9. The method of claim 7, wherein: In S3, when the parameter input module receives the input cleaning parameters of the user, the input parameters are checked in real time, if the parameters exceed the preset reasonable limit range, an error prompt box is immediately popped up on the operation interface, and the start of the simulation calculation module is prevented until the user re-enters the parameters meeting the range requirements.
10. The method of claim 7, wherein: The simulation calculation module in the S4 adopts a fast simulation algorithm based on a mathematical model, which significantly reduces the calculation complexity while ensuring the prediction accuracy of the cleaning result, so that the simulation calculation speed is at least one order of magnitude higher than that of the traditional finite element simulation method under the same hardware conditions, thereby effectively saving the calculation resources and time cost.
Citation Information
Patent Citations
Acid liquor flow velocity evaluation and tool improvement method for buffer chemical polishing of superconducting cavity
CN117709165A
Method and apparatus for high brightness superconducting radio frequency (RF) photoinjector gun cavity (SRF gun)
WO2013043749A1
Method for avoiding generation of hard spots and pits on buffered chemically polished surface of superconducting niobium cavity, and BCP acid liquor
WO2025092450A1