[go: up one dir, main page]

WO2019232743A1 - Magnetic field center error correction method and device, apparatus, and storage medium - Google Patents

Magnetic field center error correction method and device, apparatus, and storage medium Download PDF

Info

Publication number
WO2019232743A1
WO2019232743A1 PCT/CN2018/090230 CN2018090230W WO2019232743A1 WO 2019232743 A1 WO2019232743 A1 WO 2019232743A1 CN 2018090230 W CN2018090230 W CN 2018090230W WO 2019232743 A1 WO2019232743 A1 WO 2019232743A1
Authority
WO
WIPO (PCT)
Prior art keywords
magnet
magnetic field
position parameter
field center
beam position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/090230
Other languages
French (fr)
Chinese (zh)
Inventor
郑志鸿
刘铮铮
李凯若
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Newrt Medical Systems (wuxi) Co Ltd
Original Assignee
Newrt Medical Systems (wuxi) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Newrt Medical Systems (wuxi) Co Ltd filed Critical Newrt Medical Systems (wuxi) Co Ltd
Priority to PCT/CN2018/090230 priority Critical patent/WO2019232743A1/en
Priority to CN201880000831.5A priority patent/CN108780471B/en
Publication of WO2019232743A1 publication Critical patent/WO2019232743A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Definitions

  • the present disclosure relates to the technical field of accelerators, for example, to a method and a device for correcting a magnetic field center error, a device, a device, and a storage medium.
  • the installation sequence of a synchrotron is usually to directly collimate and install the secondary magnet, and then correct the magnetic field center error of the secondary magnet, quadruple magnet and other magnets by correcting the magnet.
  • the number and size of the correction magnets are usually related to the magnitude of the magnetic field center error. That is, the larger the magnetic field center error of the secondary magnet during the initial installation stage, the larger the orbital oscillation, and the larger the size of the correction magnet and the beam channel.
  • the change in the size of the beam pipe directly raises the price and volume of all the components on the ring, which greatly increases the cost of the entire accelerator, and the overall volume will also increase.
  • the magnetic field center error of the secondary magnet is within an acceptable error range. Because there is a relative deviation between the magnetic field center and the geometric center of the magnet, even if the laser collimation system is used for the installation of the secondary magnet, the installation error of the magnetic field center cannot be guaranteed to be within an acceptable error range. Moreover, because the volume of the secondary magnet is usually very large, if the measurement time of each measurement point is 1 s, to achieve a magnetic field center measurement accuracy of 0.1 mm, the measurement time needs several hundred years, so the related technology only measures a few planes or The magnetic field center of several trajectories is used to estimate the magnetic field center. It is impossible to accurately measure the magnetic field center of the secondary magnet. Then, the magnetic field center is corrected based on the estimated magnetic field center. It is destined that the secondary magnet cannot be guaranteed to have a small initial installation Magnetic field center error.
  • the related technology cannot guarantee that the secondary magnet has a lower magnetic field center error during the initial installation stage.
  • Embodiments of the present application provide a method, a device, a device, and a storage medium for correcting a magnetic field center error, so as to reduce a magnetic field center error of a magnet of a related art synchrotron in an initial installation stage.
  • An embodiment of the present application provides a method for correcting a magnetic field center error, including:
  • the current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained, where the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, so
  • the reference beam position parameter corresponds to a preset magnetic field center position
  • before the current beam position parameter of the preset beam position after the beam current obtained by the magnetic field of the acquiring magnet further includes:
  • the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that The magnetic field center error of the magnet is less than a preset error threshold.
  • the relationship between the determining magnet position parameter and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position includes:
  • the magnet position parameter of the magnet is adjusted according to the magnet position parameter output by the trained physical model, so that the magnetic field center error of the magnet is less than a preset error threshold.
  • the relationship between the position parameter of the magnet and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position includes:
  • adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes:
  • a target magnet position parameter is determined according to the magnetic field center error, and the magnet position is adjusted to the target magnet position parameter.
  • the magnet is a secondary magnet of a synchrotron.
  • An embodiment of the present application further provides a device for correcting a magnetic field center error, including:
  • the beam position parameter acquisition module is configured to obtain a current beam position parameter of the beam at a preset beam position after the magnetic field of the magnet is applied, wherein the current beam position parameter is an actual beam position parameter relative to a reference beam.
  • An adjustment module configured to adjust a magnet position parameter of the magnet according to the current beam position parameter so that a magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is relative to an actual magnetic field center position A deviation from a center position of the preset magnetic field.
  • An embodiment of the present application further provides a device, where the device includes:
  • At least one processor At least one processor
  • a storage device configured to store at least one program
  • the at least one processor When the at least one program is executed by the at least one processor, the at least one processor implements the method for correcting a magnetic field center error according to the first aspect.
  • An embodiment of the present application further provides a storage medium containing computer-executable instructions, and the computer-executable instructions, when executed by a computer processor, are configured to perform the method for correcting a magnetic field center error according to the first aspect.
  • the technical solution of the method for correcting the central error of the magnetic field is to obtain the current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet acts, where the beam position parameter is the actual beam position parameter relative Based on the offset of the reference beam position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, The magnetic field center error is the deviation of the actual magnetic field center position from the preset magnetic field center position.
  • the current magnetic field position parameter is used to infer the magnetic field center error of the secondary magnet and the target magnet position parameter is determined. Then, the magnet position parameter is adjusted to the target.
  • the position parameter of the magnet will make the magnetic field center error of the magnet less than the preset error threshold; then, because the secondary magnet has a smaller magnetic field center error, the orbital oscillation amplitude of the synchrotron will be within the preset range, which will be beneficial to the small size of the accelerator. And high beam quality of the accelerator.
  • FIG. 1 is a flowchart of a method for correcting a magnetic field center error according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for correcting a magnetic field center error according to another embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an adjustment bracket provided by an embodiment of the present application.
  • FIG. 4 is a structural block diagram of a magnetic field center error correction device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for correcting a magnetic field center error according to an embodiment of the present application.
  • the technical solution of this embodiment is suitable for correcting the magnetic field center error of the magnet, for example, it is suitable for correcting the magnetic field center error of the secondary magnet of the synchrotron in the initial installation stage.
  • This method may be executed by a device for correcting a magnetic field center error provided in the embodiment of the present application.
  • the device may be implemented in at least one of software and hardware, and configured to be applied in a processor.
  • the method includes the following steps S101 to S102.
  • the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position.
  • This embodiment is described by taking the correction of the magnetic field center error of the secondary magnet of the synchrotron as an example.
  • a secondary magnet is used to deflect a particle beam. Due to the magnetic field of multiple secondary magnets, a large number of particle beams move along a preset trajectory in a synchronization ring. Therefore, for synchrotrons, especially small synchrotrons, in order to ensure that the particle beam can move and accelerate stably while miniaturizing, the magnetic field center error of the secondary magnet is usually required to be within an acceptable preset error threshold range. Otherwise, the particle beam will have obvious orbital oscillations on the synchronizing ring.
  • the particle beam is a particle beam that can be accelerated by a synchrotron in the related art, such as a proton beam.
  • the beam current is collectively referred to as a particle beam.
  • the deflection trajectory of the beam is related to the magnetic field center position of the secondary magnet.
  • the center position of the magnetic field of the secondary magnet can be inferred based on the beam trajectory.
  • the present embodiment performs correction of the magnetic field center error by using a beam position parameter with a preset beam position.
  • the preset beam position is a certain cross-sectional range or a certain volume range of the accelerator orbit. In actual use, the preset beam position can be determined according to the specific situation, and then the current beam position parameter of the beam at the preset beam position after the deflection effect of the secondary magnet is obtained.
  • the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position.
  • the beam position parameter is the actual beam position parameter.
  • the beam position parameter in this embodiment may be obtained by a beam position detection device of the related art, which is not limited in this embodiment.
  • the preset magnetic field center position may be the geometric center position of the current position of the secondary magnet, or the magnetic field center position estimated according to the related technology, or the magnetic field center position desired by the user. In actual use, it can be determined according to specific conditions. In addition, in order to improve the correction speed of the magnetic field center error, the current magnet position parameters can be set as initial data, for example, the current magnet position parameters are all set to zero.
  • the magnet position parameter of the magnet is adjusted according to the current beam position parameter, so that the magnetic field center error of the magnet is smaller than a preset error threshold.
  • the magnetic field center error is the deviation of the actual magnetic field center position from the preset magnetic field center position.
  • the magnetic field center error of the magnet can be determined according to the current beam position parameter, and then the target of the magnet can be determined according to the magnetic field center error. Position parameter, and then adjust the magnet to the target position parameter so that the magnetic field center error of the magnet is less than a preset error threshold.
  • the method for correcting the center error of a magnetic field obtains a current beam position parameter of a beam at a preset beam position after a magnetic field of a magnet, where the beam position parameter is an actual beam position parameter relative to a reference beam.
  • the offset of the flow position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is smaller than a preset error threshold, where the magnetic field
  • the central error is the deviation of the actual magnetic field center position from the preset magnetic field center position.
  • the magnetic field center error of the secondary magnet is deduced from the current beam position parameter and the target magnet position parameter is determined.
  • the magnetic field center error of the magnet is less than a preset error threshold.
  • the stage magnet has a small magnetic field center error, so that the amplitude of the orbital oscillation of the synchrotron is within a preset range, which is conducive to the miniaturization of the accelerator and the accelerator has a higher beam quality.
  • FIG. 2 is a flowchart of a method for correcting a magnetic field center error according to another embodiment of the present application. As shown in FIG. 2, the method includes S100 to S102.
  • a physical model regarding the beam position parameter and the magnet position parameter may be established based on machine learning.
  • the process of establishing the physical model can be: obtaining sample data of standard secondary magnets, the sample data includes a preset number of magnetic field center errors, and the magnet position parameters collected under each magnetic field center error, and each magnet position parameter Corresponding beam position parameters; then the sample data is divided into training set sample data and correction set sample data.
  • the physical model is trained by training set sample data, and the correspondence between the magnet position parameter and the beam position parameter is established, so that the physical model can output the target position parameter of the magnet or adjust the target parameter when the beam position parameter is input, where ,
  • the adjustment target parameter is the position offset that the current magnet needs to be adjusted.
  • the physical model further outputs a magnetic field center error of the secondary magnet corresponding to the input beam position parameter.
  • the physical model is corrected by using correction set sample data to generate a trained physical model. When this physical model is used, the current beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position can output the target position parameter of the magnet or adjust the target parameter.
  • the standard secondary magnet in this embodiment is a secondary magnet whose magnetic field center error has been determined by standard measurement methods, wherein the standard measurement method is a measurement method whose measurement accuracy meets a preset accuracy requirement.
  • the correspondence between the beam position parameter and the magnetic field center error, and the correspondence between the magnetic field center error and the magnet position parameter may be determined first. , And then determine the corresponding relationship between the beam position parameter and the magnet position parameter according to the aforementioned two corresponding relationships.
  • the magnet position parameter of the magnet is adjusted according to the current beam position parameter to make the The magnetic field center error is less than a preset error threshold.
  • the target magnet position parameter can be determined based on the relationship between the magnet position parameter and the beam position parameter, and the secondary magnet can be adjusted to the target based on the current beam position parameter.
  • the position parameter of the magnet so that the magnetic field center error of the magnet is smaller than a preset error threshold.
  • the acquired current beam position parameter is input into the trained physical model; the magnet position parameter output according to the trained physical model Adjust the magnet position parameter of the magnet so that the magnetic field center error of the magnet is less than a preset error threshold.
  • the correspondence between the magnet position parameter and the beam position parameter is reflected by the correspondence between the beam position parameter and the magnetic field center error and the correspondence between the magnetic field center error and the magnet position parameter, based on the beam position parameter
  • the relationship between the magnetic field center error of the magnet and the magnetic field center error is determined according to the current beam position parameter; based on the relationship between the magnet position parameter and the magnetic field center error of the magnet, the target magnet position parameter is determined according to the magnetic field center error, and The magnet position is adjusted to the target magnet position parameter so that the magnetic field center error of the magnet is less than a preset error threshold.
  • FIG. 3 is a schematic structural diagram of an adjustment bracket provided by an embodiment of the present application.
  • the mounting bracket since the secondary magnet of the synchrotron is usually fixed on a mounting bracket, the mounting bracket usually includes a base 21 and a plurality of first connecting portions 211 provided on the base 21, and the first connecting portion 211 is provided with a height adjustment mechanism 2111.
  • the secondary magnet 22 is fixed on the mounting plate 221 through a connection mechanism 222.
  • the connection structure 222 may select a connection plate having an “L” or “[” shape in cross section.
  • the mounting plate 221 is provided with a second connection portion 2211 on a side facing the mounting bracket, and the first connection portion 211 and the second connection portion 2211 can be fixedly connected together. Therefore, after the second connection part 2211 of the secondary magnet 22 is fixedly connected to the first connection part 211 of the mounting bracket, the secondary magnet can be adjusted by adjusting the height adjustment mechanism 2111 of one or several first connection parts 211. 22 position parameter.
  • the number of the first connection portion and the second connection portion is at least 4, and in actual use, the accuracy of the magnetic field center error of the desired secondary magnet can be set to increase the accuracy of the first connection portion and the second connection portion. Quantity, such as 7 etc.
  • the mounting bracket of this embodiment further includes an automatic adjustment mechanism 212.
  • the automatic adjustment mechanism 212 is used in cooperation with the first connection portion 211 and the second connection portion 2211 to adjust the position parameter of the secondary magnet 22.
  • the automatic adjustment mechanism 212 is a device in the related art that can automatically adjust the position parameter of the top end of the second connection portion, that is, a device that adjusts the position parameter of the secondary magnet, such as a combination of a stepping motor and a cam.
  • the physical model when the correspondence relationship between the beam position parameter and the magnet position parameter of the secondary magnet is embodied by a physical model, the physical model outputs the target magnet position parameter while also outputting the target magnet position parameter.
  • the adjustment method for example, it is necessary to adjust the first connection part numbered 1 to raise the first height, while adjusting the first connection part numbered to 2 to raise the second height. In this way, the secondary magnet can be adjusted to the target magnet position according to the adjustment method of the target magnet position parameter.
  • the physical model is set on a control mechanism, and the control mechanism is connected to the automatic adjustment mechanism 212 of the mounting bracket.
  • the control mechanism controls the operation of the automatic adjustment mechanism according to the adjustment method of the target magnet position parameter output by the physical model, thereby The secondary magnet is automatically adjusted to the target magnet position.
  • the method for correcting the magnetic field center error provided in this embodiment first determines the correspondence between the magnet position parameter and the beam position parameter, and then according to the correspondence between the determined magnet position parameter and the beam position parameter and the current beam current Position parameter, determine the target magnet position parameter, and then adjust the magnet to the target position parameter, to achieve the inverse of the position parameter's independent variable by the dependent variable of the beam position parameter, compared with related technologies through limited points, lines, and areas.
  • the magnetic field to estimate the magnetic field center error has higher accuracy, which is conducive to improving the accuracy of the magnetic field center position when the secondary magnet is initially installed, so that the synchrotron has a smaller orbital oscillation, which is conducive to the miniaturization of the accelerator and the improvement of the beam. Stream quality.
  • FIG. 4 is a structural block diagram of a device for correcting a magnetic field center error according to an embodiment of the present application. This device is used to execute the method for correcting the magnetic field center error provided by any of the above embodiments, and the device may be implemented by software or hardware.
  • the device includes:
  • the beam position parameter acquisition module 11 is configured to obtain a current beam position parameter of a beam at a preset beam position after the magnetic field of the magnet acts, wherein the current beam position parameter is an actual beam position parameter relative to a reference An offset of a beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position.
  • the adjustment module 12 is configured to adjust a magnet position parameter of the magnet according to the current beam position parameter, so that a magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is an actual magnetic field center position Deviation from the center position of the preset magnetic field.
  • the device for correcting the central error of a magnetic field obtains a current beam position parameter of a beam at a preset beam position after a magnetic field of a magnet, wherein the beam position parameter is an actual beam position parameter relative to a reference beam.
  • the offset of the flow position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is smaller than a preset error threshold, where the magnetic field
  • the center error is the deviation of the actual magnetic field center position from the preset magnetic field center position.
  • the current field position parameter is used to infer the magnetic field center error of the secondary magnet and determine the target magnet position parameter.
  • the magnet position parameter is adjusted to the target magnet position parameter.
  • the magnetic field center error of the magnet is smaller than a preset error threshold; then, because the secondary magnet has a smaller magnetic field center error, the amplitude of the orbital oscillation of the synchrotron is within a preset range, thereby facilitating the miniaturization of the accelerator, and
  • the accelerator has a higher beam quality.
  • the method further includes: a determining module.
  • the determining module is configured to: before the beam current after the magnetic field of the magnet is obtained is before the current beam position parameter of the preset beam position, determine that the beam position after the magnetic field parameter and the magnetic field of the magnet are Set the relationship between the beam position parameters of the beam position;
  • the adjustment module is also set to:
  • the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that The magnetic field center error of the magnet is less than a preset error threshold.
  • the determining module is further configured to:
  • the adjustment module is also set to:
  • the determining module is further configured to: a relationship between a beam position parameter of a beam at a preset beam position and a magnetic field center error of the magnet after the magnetic field of the magnet, and the magnet position parameter The relationship with the magnetic field center error of the magnet.
  • the adjustment module is further configured to:
  • a target magnet position parameter is determined according to the magnetic field center error, and the magnet position is adjusted to the target magnet position parameter.
  • the magnet is a secondary magnet of a synchrotron.
  • the device for correcting the magnetic field center error provided by the embodiment of the present application can execute the method for correcting the magnetic field center error provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
  • FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present application.
  • the device includes a processor 201, a memory 202, an input device 203, and an output device 204.
  • the number of processors 201 in the device may be at least one, and one processor 201 is taken as an example in FIG. 5; the processor 201, the memory 202, the input device 203, and the output device 204 in the device may be connected through a bus or other methods. Take the connection via the bus as an example.
  • the memory 202 is a computer-readable storage medium, and may be configured to store software programs, computer-executable programs, and modules, such as program instructions / modules (for example, beam position) corresponding to a method for correcting a magnetic field center error in the embodiment of the present application. Parameter acquisition module 11 and adjustment module 12).
  • the processor 201 executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 202, that is, the above-mentioned method for correcting the magnetic field center error.
  • the memory 202 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the terminal, and the like.
  • the memory 202 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device.
  • the memory 202 may include memory remotely set relative to the processor 201, and these remote memories may be connected to the device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 203 may be configured to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the device.
  • the output device 204 may include a display device such as a display screen, for example, a display screen of a user terminal.
  • An embodiment of the present application provides a storage medium containing computer-executable instructions.
  • the method is configured to perform a method for correcting a magnetic field center error.
  • the method includes:
  • the current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained, where the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, so
  • the reference beam position parameter corresponds to a preset magnetic field center position
  • a storage medium including computer-executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and can also perform correction of the magnetic field center error provided by any embodiment of the present application. Related operations in the method.
  • each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be realized;
  • the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the embodiments of the present application provide a method, a device, a device, and a storage medium for correcting a magnetic field center error, which solves a technical problem that a magnetic field center error of a magnet of a related art synchro accelerator is relatively large in an initial installation stage, and reduces the correlation Technical effect of the magnetic field center error of the synchrotron magnet in the initial installation stage of the technology.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Particle Accelerators (AREA)

Abstract

A magnetic field center error correction method and device, an apparatus, and a storage medium. The method comprises: obtaining a present beam position parameter of a beam at a preset beam position after a magnetic field of a magnet has acted on the beam (S101), wherein the present beam position parameter represents an offset to an actual beam position parameter with respect to a reference beam position parameter, and the reference beam position parameter corresponds to a preset position of a magnetic field center; and adjusting a magnet position parameter of the magnet according to the present beam position parameter, such that an error of the magnetic field center of the magnet is less than a preset error threshold (S102), wherein the error of the magnetic field center is the deviation of the actual position of the magnetic field center from the preset position of the magnetic field center.

Description

磁场中心误差的矫正方法及装置、设备及存储介质Method and device for correcting magnetic field center error, device, and storage medium 技术领域Technical field

本公开涉及加速器技术领域,例如涉及一种磁场中心误差的矫正方法及装置、设备及存储介质。The present disclosure relates to the technical field of accelerators, for example, to a method and a device for correcting a magnetic field center error, a device, a device, and a storage medium.

背景技术Background technique

对于同步加速器,尤其是小型同步加速器,二级磁铁的磁场中心误差越小,束流的稳定性越好。同步加速器的安装顺序通常是直接准直安装二级磁铁,然后通过矫正磁铁来矫正二级磁铁、四级磁铁等磁铁的磁场中心误差。而矫正磁铁的数量和大小通常与磁场中心误差的大小有关,即初始安装阶段的二级磁铁的磁场中心误差越大,轨道振荡越大,那么矫正磁铁和束流管道的尺寸也就越大,而束流管道尺寸的变大会直接抬高所有环上部件的价格和体积,使整个加速器的造价大大上升,总体体积也会变大。For synchrotrons, especially small synchrotrons, the smaller the magnetic field center error of the secondary magnet, the better the beam stability. The installation sequence of a synchrotron is usually to directly collimate and install the secondary magnet, and then correct the magnetic field center error of the secondary magnet, quadruple magnet and other magnets by correcting the magnet. The number and size of the correction magnets are usually related to the magnitude of the magnetic field center error. That is, the larger the magnetic field center error of the secondary magnet during the initial installation stage, the larger the orbital oscillation, and the larger the size of the correction magnet and the beam channel. The change in the size of the beam pipe directly raises the price and volume of all the components on the ring, which greatly increases the cost of the entire accelerator, and the overall volume will also increase.

因此,要减少同步加速器的体积和保证束流的稳定性,需要保证二级磁铁的磁场中心误差在可接受的误差范围内。由于磁场中心和磁铁的几何中心有一个相对偏差,即使使用激光准直系统进行二级磁铁的安装,也无法保证其磁场中心的安装误差在可接受的误差范围内。而且,由于二级磁铁的体积通常很大,如果每个测量点的测量时间是1s,要达到0.1mm的磁场中心测量精度,测量时间得需要几百年,所以相关技术仅测量几个平面或者几条轨迹上的磁场来估算出磁场中心,无法精确地测出二级磁铁的磁场中心,那么根据估算出的磁场中心对磁场中心进行矫正,注定无法保证二级磁铁在初始安装阶段具有较小的磁场中心误差。Therefore, to reduce the volume of the synchrotron and to ensure the stability of the beam, it is necessary to ensure that the magnetic field center error of the secondary magnet is within an acceptable error range. Because there is a relative deviation between the magnetic field center and the geometric center of the magnet, even if the laser collimation system is used for the installation of the secondary magnet, the installation error of the magnetic field center cannot be guaranteed to be within an acceptable error range. Moreover, because the volume of the secondary magnet is usually very large, if the measurement time of each measurement point is 1 s, to achieve a magnetic field center measurement accuracy of 0.1 mm, the measurement time needs several hundred years, so the related technology only measures a few planes or The magnetic field center of several trajectories is used to estimate the magnetic field center. It is impossible to accurately measure the magnetic field center of the secondary magnet. Then, the magnetic field center is corrected based on the estimated magnetic field center. It is destined that the secondary magnet cannot be guaranteed to have a small initial installation Magnetic field center error.

综上所述,相关技术无法保证二级磁铁在初始安装阶段具有较低的磁场中心误差。In summary, the related technology cannot guarantee that the secondary magnet has a lower magnetic field center error during the initial installation stage.

发明内容Summary of the Invention

本申请实施例提供一种磁场中心误差的矫正方法、装置、设备及存储介质,以减小相关技术的同步加速器的磁铁在初始安装阶段的磁场中心误差。Embodiments of the present application provide a method, a device, a device, and a storage medium for correcting a magnetic field center error, so as to reduce a magnetic field center error of a magnet of a related art synchrotron in an initial installation stage.

本申请实施例提供了一种磁场中心误差的矫正方法,包括:An embodiment of the present application provides a method for correcting a magnetic field center error, including:

获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中, 所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置;The current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained, where the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, so The reference beam position parameter corresponds to a preset magnetic field center position;

根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is an actual magnetic field center position relative to the preset Deviation of the magnetic field center position.

在一实施例中,所述获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数之前,还包括:In an embodiment, before the current beam position parameter of the preset beam position after the beam current obtained by the magnetic field of the acquiring magnet, further includes:

确定磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系;Determining a relationship between a magnet position parameter and a beam position parameter of a beam after a magnetic field of the magnet acts at a preset beam position;

所述根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes:

基于所述磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,根据所述当前束流位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。Based on the relationship between the magnet position parameter and the beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position, the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that The magnetic field center error of the magnet is less than a preset error threshold.

在一实施例中,所述确定磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,包括:In an embodiment, the relationship between the determining magnet position parameter and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position includes:

基于机器学习建立关于磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间对应关系的已训练的物理模型;Establishing a trained physical model on the correspondence between the position parameters of the magnet and the beam position parameters of the preset beam position after the action of the magnetic field of the magnet based on machine learning;

所述根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes:

将所获取的所述当前束流位置参数输入已训练的所述物理模型;Inputting the acquired current beam position parameter into the trained physical model;

根据已训练的所述物理模型输出的磁铁位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。The magnet position parameter of the magnet is adjusted according to the magnet position parameter output by the trained physical model, so that the magnetic field center error of the magnet is less than a preset error threshold.

在一实施例中,所述磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系包括:In an embodiment, the relationship between the position parameter of the magnet and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position includes:

磁铁的磁场作用后的束流在预设束流位置的束流位置参数与磁铁的磁场中心误差之间的关系,以及所述磁铁位置参数与磁铁的磁场中心误差之间的关系。The relationship between the beam position parameter of the preset beam position and the magnetic field center error of the beam after the magnetic field of the magnet acts, and the relationship between the magnet position parameter and the magnetic field center error of the magnet.

在一实施例中,所述根据所述当前束流位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:In an embodiment, adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes:

基于磁铁的磁场作用后的束流在预设束流位置的束流位置参数与所述磁铁的磁场中心误差之间的关系,根据所述当前束流位置参数确定磁铁磁场中心误 差;或者,Determining the error of the magnetic field center of the magnet based on the relationship between the beam position parameter of the preset beam position and the magnetic field center error of the magnet based on the magnetic field of the magnet; or,

基于所述磁铁位置参数与所述磁铁的磁场中心误差之间的关系,根据所述磁铁磁场中心误差确定目标磁铁位置参数,并将所述磁铁位置调节至所述目标磁铁位置参数。Based on the relationship between the magnet position parameter and the magnetic field center error of the magnet, a target magnet position parameter is determined according to the magnetic field center error, and the magnet position is adjusted to the target magnet position parameter.

在一实施例中,所述磁铁为同步加速器的二级磁铁。In one embodiment, the magnet is a secondary magnet of a synchrotron.

本申请实施例还提供了一种磁场中心误差的矫正装置,包括:An embodiment of the present application further provides a device for correcting a magnetic field center error, including:

束流位置参数获取模块,设置为获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置;The beam position parameter acquisition module is configured to obtain a current beam position parameter of the beam at a preset beam position after the magnetic field of the magnet is applied, wherein the current beam position parameter is an actual beam position parameter relative to a reference beam. An offset of a flow position parameter, the reference beam position parameter corresponding to a preset magnetic field center position;

调节模块,设置为根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。An adjustment module configured to adjust a magnet position parameter of the magnet according to the current beam position parameter so that a magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is relative to an actual magnetic field center position A deviation from a center position of the preset magnetic field.

本申请实施例还提供了一种设备,所述设备包括:An embodiment of the present application further provides a device, where the device includes:

至少一个处理器;At least one processor;

存储装置,设置为存储至少一个程序;A storage device configured to store at least one program;

当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如第一方面所述的磁场中心误差的矫正方法。When the at least one program is executed by the at least one processor, the at least one processor implements the method for correcting a magnetic field center error according to the first aspect.

本申请实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行如第一方面所述的磁场中心误差的矫正方法。An embodiment of the present application further provides a storage medium containing computer-executable instructions, and the computer-executable instructions, when executed by a computer processor, are configured to perform the method for correcting a magnetic field center error according to the first aspect.

本实施例提供的磁场中心误差的矫正方法的技术方案,获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,参考束流位置参数对应于预设磁场中心位置;根据当前束流位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值,其中,磁场中心误差为实际磁场中心位置相对于预设磁场中心位置的偏差,通过当前束流位置参数反推二级磁铁的磁场中心误差并确定目标磁铁位置参数,那么将磁铁位置参数调节至目标磁铁位置参数,则使磁铁的磁场中心误差小于预设误差阈值;那么由于二级磁铁具有较小的磁场中心误差,则使同步加速器的轨道振荡幅度在预设范围内,从而有利于加速器的小型化,以及使加速器具有较高的束流质量。The technical solution of the method for correcting the central error of the magnetic field provided in this embodiment is to obtain the current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet acts, where the beam position parameter is the actual beam position parameter relative Based on the offset of the reference beam position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, The magnetic field center error is the deviation of the actual magnetic field center position from the preset magnetic field center position. The current magnetic field position parameter is used to infer the magnetic field center error of the secondary magnet and the target magnet position parameter is determined. Then, the magnet position parameter is adjusted to the target. The position parameter of the magnet will make the magnetic field center error of the magnet less than the preset error threshold; then, because the secondary magnet has a smaller magnetic field center error, the orbital oscillation amplitude of the synchrotron will be within the preset range, which will be beneficial to the small size of the accelerator. And high beam quality of the accelerator.

附图概述Overview of the drawings

图1是本申请一实施例提供的磁场中心误差的矫正方法的流程图;1 is a flowchart of a method for correcting a magnetic field center error according to an embodiment of the present application;

图2是本申请另一实施例提供的磁场中心误差的矫正方法的流程图;2 is a flowchart of a method for correcting a magnetic field center error according to another embodiment of the present application;

图3是本申请一实施例提供的调节支架的结构示意图;3 is a schematic structural diagram of an adjustment bracket provided by an embodiment of the present application;

图4是本申请一实施例提供的磁场中心误差的矫正装置的结构框图;4 is a structural block diagram of a magnetic field center error correction device provided by an embodiment of the present application;

图5是本申请一实施例提供的设备的结构示意图。FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present application.

具体实施方式Detailed ways

图1是本申请一实施例提供的磁场中心误差的矫正方法的流程图。本实施例的技术方案适用于矫正磁铁的磁场中心误差的情况,例如适应于矫正同步加速器的二级磁铁在初始安装阶段的磁场中心误差的情况。该方法可以由本申请实施例提供的磁场中心误差的矫正装置来执行,该装置可以采用软件和硬件中的至少一种的方式实现,并配置在处理器中应用。该方法包括如下步骤S101至S102。FIG. 1 is a flowchart of a method for correcting a magnetic field center error according to an embodiment of the present application. The technical solution of this embodiment is suitable for correcting the magnetic field center error of the magnet, for example, it is suitable for correcting the magnetic field center error of the secondary magnet of the synchrotron in the initial installation stage. This method may be executed by a device for correcting a magnetic field center error provided in the embodiment of the present application. The device may be implemented in at least one of software and hardware, and configured to be applied in a processor. The method includes the following steps S101 to S102.

在S101中,获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数。In S101, the current beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position is acquired.

在一实施例中,当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,参考束流位置参数对应于预设磁场中心位置。In an embodiment, the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position.

本实施例以同步加速器的二级磁铁的磁场中心误差矫正为例进行说明。在同步加速器中,二级磁铁用于对粒子束进行偏转,由于多个二级磁铁的磁场的作用,使大量的粒子束流在同步环沿预设轨迹运动。因此对于同步加速器,特别是小型同步加速器,为了使其在小型化的同时还保证粒子束流能够稳定地运动、加速,通常要求二级磁铁的磁场中心误差在可接受的预设误差阈值范围内,否则粒子束流会在同步环上出现明显的轨道振荡。为了抑制轨道振荡,需要在后期安装过程中,通过大量的校正磁铁对磁场中心误差进行矫正。而且轨道振荡越明显,矫正磁铁和束流管道的尺寸也就越大,而束流管道尺寸的变大会直接抬高所有环上部件的价格和体积,使整个加速器的造价大大上升,总体体积也会变大。This embodiment is described by taking the correction of the magnetic field center error of the secondary magnet of the synchrotron as an example. In a synchrotron, a secondary magnet is used to deflect a particle beam. Due to the magnetic field of multiple secondary magnets, a large number of particle beams move along a preset trajectory in a synchronization ring. Therefore, for synchrotrons, especially small synchrotrons, in order to ensure that the particle beam can move and accelerate stably while miniaturizing, the magnetic field center error of the secondary magnet is usually required to be within an acceptable preset error threshold range. Otherwise, the particle beam will have obvious orbital oscillations on the synchronizing ring. In order to suppress the orbital oscillation, it is necessary to correct the magnetic field center error through a large number of correction magnets during the later installation process. And the more obvious the orbital oscillation, the larger the size of the correction magnet and the beam tube, and the change in the size of the beam tube will directly increase the price and volume of all the components on the ring, which will greatly increase the cost of the entire accelerator and the overall volume Get bigger.

其中,粒子束流为相关技术中可通过同步加速器进行加速的粒子束流,比如质子束流等。本实施例下文以束流作为粒子束流的统称。The particle beam is a particle beam that can be accelerated by a synchrotron in the related art, such as a proton beam. In this embodiment, the beam current is collectively referred to as a particle beam.

由于同步加速器的二级磁铁的作用是对束流进行偏转,因此对于给定的二级磁铁,束流的偏转轨迹与二级磁铁的磁场中心位置有关。也就是说,可以根据束流轨迹来反推二级磁铁的磁场中心位置。为了提高磁场中心误差的校正速度,本实施例以预设束流位置的束流位置参数来进行磁场中心误差校正。其中,预设束流位置为加速器轨道的某一个截面范围或是某一体积范围。实际使用时可以根据具体情况来确定预设束流位置,再获取经二级磁铁偏转作用后的束流在预设束流位置的当前束流位置参数。Because the role of the secondary magnet of the synchrotron is to deflect the beam, for a given secondary magnet, the deflection trajectory of the beam is related to the magnetic field center position of the secondary magnet. In other words, the center position of the magnetic field of the secondary magnet can be inferred based on the beam trajectory. In order to improve the correction speed of the magnetic field center error, the present embodiment performs correction of the magnetic field center error by using a beam position parameter with a preset beam position. The preset beam position is a certain cross-sectional range or a certain volume range of the accelerator orbit. In actual use, the preset beam position can be determined according to the specific situation, and then the current beam position parameter of the beam at the preset beam position after the deflection effect of the secondary magnet is obtained.

其中,当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,参考束流位置参数对应于预设磁场中心位置。当参考束流位置参数为原点位置时,束流位置参数为实际束流位置参数。本实施例中的束流位置参数可通过相关技术的束流位置检测装置获取,本实施例对此不予限定。The current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position. When the reference beam position parameter is the origin position, the beam position parameter is the actual beam position parameter. The beam position parameter in this embodiment may be obtained by a beam position detection device of the related art, which is not limited in this embodiment.

其中,预设磁场中心位置可以是二级磁铁当前位置状态下的几何中心位置,也可以是根据相关技术估算出来的磁场中心位置,也可以是用户所期望的磁场中心位置等。实际使用时,可以根据具体情况确定。另外,为了提高磁场中心误差的矫正速度,可以将当前磁铁位置参数设置为起始数据,比如将当前磁铁位置参数均置零。The preset magnetic field center position may be the geometric center position of the current position of the secondary magnet, or the magnetic field center position estimated according to the related technology, or the magnetic field center position desired by the user. In actual use, it can be determined according to specific conditions. In addition, in order to improve the correction speed of the magnetic field center error, the current magnet position parameters can be set as initial data, for example, the current magnet position parameters are all set to zero.

在S102中,根据当前束流位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值。In S102, the magnet position parameter of the magnet is adjusted according to the current beam position parameter, so that the magnetic field center error of the magnet is smaller than a preset error threshold.

在一实施例中,磁场中心误差为实际磁场中心位置相对于预设磁场中心位置的偏差。In one embodiment, the magnetic field center error is the deviation of the actual magnetic field center position from the preset magnetic field center position.

当获取到经磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数后,即可根据当前束流位置参数确定磁铁的磁场中心误差,然后根据磁场中心误差确定磁铁的目标位置参数,然后将磁铁调节至目标位置参数,以使磁铁的磁场中心误差小于预设误差阈值。After obtaining the current beam position parameter of the beam after the action of the magnetic field of the magnet at a preset beam position, the magnetic field center error of the magnet can be determined according to the current beam position parameter, and then the target of the magnet can be determined according to the magnetic field center error. Position parameter, and then adjust the magnet to the target position parameter so that the magnetic field center error of the magnet is less than a preset error threshold.

本实施例提供的磁场中心误差的矫正方法,获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,参考束流位置参数对应于预设磁场中心位置;根据当前束流位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值,其中,磁场中心误差为实际磁场中心位置相对于预设磁场中心位置的偏差。通过当前束流位置参数反推二级磁铁的磁场中心误差并确定目标磁铁位置参数,那么将磁铁位置参数调节至目标磁铁位置参数,则使 磁铁的磁场中心误差小于预设误差阈值;那么由于二级磁铁具有较小的磁场中心误差,则使同步加速器的轨道振荡幅度在预设范围内,从而有利于加速器的小型化,以及使加速器具有较高的束流质量。The method for correcting the center error of a magnetic field provided by this embodiment obtains a current beam position parameter of a beam at a preset beam position after a magnetic field of a magnet, where the beam position parameter is an actual beam position parameter relative to a reference beam. The offset of the flow position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is smaller than a preset error threshold, where the magnetic field The central error is the deviation of the actual magnetic field center position from the preset magnetic field center position. The magnetic field center error of the secondary magnet is deduced from the current beam position parameter and the target magnet position parameter is determined. If the magnet position parameter is adjusted to the target magnet position parameter, the magnetic field center error of the magnet is less than a preset error threshold. The stage magnet has a small magnetic field center error, so that the amplitude of the orbital oscillation of the synchrotron is within a preset range, which is conducive to the miniaturization of the accelerator and the accelerator has a higher beam quality.

图2是本申请另一实施例提供的磁场中心误差的矫正方法的流程图。如图2所示,该方法包括S100至S102。FIG. 2 is a flowchart of a method for correcting a magnetic field center error according to another embodiment of the present application. As shown in FIG. 2, the method includes S100 to S102.

在S100中,确定磁铁位置参数与磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系。In S100, the relationship between the position parameter of the magnet and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position is determined.

要通过束流位置参数来矫正磁铁位置参数,通常需要先确定磁铁的磁铁位置参数以及该磁铁所偏转的束流在预设束流位置的束流位置参数之间的对应关系。To correct the magnet position parameter by the beam position parameter, it is usually necessary to first determine the correspondence between the magnet position parameter of the magnet and the beam position parameter of the beam deflected by the magnet at a preset beam position.

在一实施例中,关于磁铁位置参数与束流位置参数之间对应关系的建立,可以基于机器学习建立关于束流位置参数与磁铁位置参数的物理模型。该物理模型的建立过程可以是:获取标准二级磁铁的样本数据,样本数据包括预设数量的磁场中心误差,以及在每个磁场中心误差下所采集的磁铁位置参数,以及每个磁铁位置参数对应的束流位置参数;然后将样本数据分成训练集样本数据与校正集样本数据。通过训练集样本数据训练该物理模型,建立磁铁位置参数与束流位置参数的对应关系,从而使该物理模型可以在输入束流位置参数时,输出磁铁的目标位置参数或是调节目标参数,其中,调节目标参数为当前磁铁需要调节的位置偏移量。在另一实施例中,该物理模型还输出所输入的束流位置参数对应的二级磁铁的磁场中心误差。为了提高该物理模型的稳健性,通过校正集样本数据对该物理模型进行校正,生成已训练的物理模型。该物理模型使用时,磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,即可输出磁铁的目标位置参数或是调节目标参数。In one embodiment, regarding the establishment of the correspondence between the magnet position parameter and the beam position parameter, a physical model regarding the beam position parameter and the magnet position parameter may be established based on machine learning. The process of establishing the physical model can be: obtaining sample data of standard secondary magnets, the sample data includes a preset number of magnetic field center errors, and the magnet position parameters collected under each magnetic field center error, and each magnet position parameter Corresponding beam position parameters; then the sample data is divided into training set sample data and correction set sample data. The physical model is trained by training set sample data, and the correspondence between the magnet position parameter and the beam position parameter is established, so that the physical model can output the target position parameter of the magnet or adjust the target parameter when the beam position parameter is input, where , The adjustment target parameter is the position offset that the current magnet needs to be adjusted. In another embodiment, the physical model further outputs a magnetic field center error of the secondary magnet corresponding to the input beam position parameter. In order to improve the robustness of the physical model, the physical model is corrected by using correction set sample data to generate a trained physical model. When this physical model is used, the current beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position can output the target position parameter of the magnet or adjust the target parameter.

在一实施例中,本实施例中的标准二级磁铁为通过标准测量手段已确定其磁场中心误差的二级磁铁,其中,标准测量手段为测量精度符合预设精度要求的测量手段。In an embodiment, the standard secondary magnet in this embodiment is a secondary magnet whose magnetic field center error has been determined by standard measurement methods, wherein the standard measurement method is a measurement method whose measurement accuracy meets a preset accuracy requirement.

在一实施例中,关于磁铁位置参数与束流位置参数之间对应关系的建立,可以先确定束流位置参数与磁场中心误差之间的对应关系,以及磁场中心误差与磁铁位置参数的对应关系,然后根据前述两个对应关系,确定束流位置参数与磁铁位置参数的对应关系。In an embodiment, regarding the establishment of the correspondence between the magnet position parameter and the beam position parameter, the correspondence between the beam position parameter and the magnetic field center error, and the correspondence between the magnetic field center error and the magnet position parameter may be determined first. , And then determine the corresponding relationship between the beam position parameter and the magnet position parameter according to the aforementioned two corresponding relationships.

在S101中,获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置 参数。In S101, the current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained is obtained.

在S102中,基于磁铁位置参数与磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,根据当前束流位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值。In S102, based on the relationship between the position parameter of the magnet and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position, the magnet position parameter of the magnet is adjusted according to the current beam position parameter to make the The magnetic field center error is less than a preset error threshold.

磁铁位置参数与束流位置参数之间的关系确定后,即可基于磁铁位置参数与束流位置参数之间的关系,根据当前束流位置参数确定目标磁铁位置参数,将二级磁铁调节至目标磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值。After the relationship between the magnet position parameter and the beam position parameter is determined, the target magnet position parameter can be determined based on the relationship between the magnet position parameter and the beam position parameter, and the secondary magnet can be adjusted to the target based on the current beam position parameter. The position parameter of the magnet, so that the magnetic field center error of the magnet is smaller than a preset error threshold.

当磁铁位置参数与束流位置参数之间的关系通过已训练的物理模型来体现时,将所获取的当前束流位置参数输入已训练的物理模型;根据已训练的物理模型输出的磁铁位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值。When the relationship between the magnet position parameter and the beam position parameter is reflected by the trained physical model, the acquired current beam position parameter is input into the trained physical model; the magnet position parameter output according to the trained physical model Adjust the magnet position parameter of the magnet so that the magnetic field center error of the magnet is less than a preset error threshold.

当磁铁位置参数与束流位置参数之间对应关系,通过束流位置参数与磁场中心误差之间的对应关系以及磁场中心误差与磁铁位置参数之间的对应关系来体现时,基于束流位置参数与磁铁的磁场中心误差之间的关系,根据当前束流位置参数确定磁铁磁场中心误差;基于磁铁位置参数与磁铁的磁场中心误差之间的关系,根据磁铁磁场中心误差确定目标磁铁位置参数,并将磁铁位置调节至目标磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值。When the correspondence between the magnet position parameter and the beam position parameter is reflected by the correspondence between the beam position parameter and the magnetic field center error and the correspondence between the magnetic field center error and the magnet position parameter, based on the beam position parameter The relationship between the magnetic field center error of the magnet and the magnetic field center error is determined according to the current beam position parameter; based on the relationship between the magnet position parameter and the magnetic field center error of the magnet, the target magnet position parameter is determined according to the magnetic field center error, and The magnet position is adjusted to the target magnet position parameter so that the magnetic field center error of the magnet is less than a preset error threshold.

图3是本申请一实施例提供的调节支架的结构示意图。如图3所示,由于同步加速器的二级磁铁通常固定在一个安装支架上,该安装支架通常包括底座21,以及设于底座21上的多个第一连接部211,且该第一连接部211设置有高度调节机构2111。二级磁铁22通过连接机构222固定于安装板221上,连接结构222可选择截面为“L”型或“[”型的连接板。安装板221在朝向安装支架的一侧设置有第二连接部2211,且第一连接部211和第二连接部2211可固定连接在一起。因此,当二级磁铁22的第二连接部2211与安装支架的第一连接部211固定连接后,可以通过调节某一个或某几个第一连接部211的高度调节机构2111来调节二级磁铁22的位置参数。FIG. 3 is a schematic structural diagram of an adjustment bracket provided by an embodiment of the present application. As shown in FIG. 3, since the secondary magnet of the synchrotron is usually fixed on a mounting bracket, the mounting bracket usually includes a base 21 and a plurality of first connecting portions 211 provided on the base 21, and the first connecting portion 211 is provided with a height adjustment mechanism 2111. The secondary magnet 22 is fixed on the mounting plate 221 through a connection mechanism 222. The connection structure 222 may select a connection plate having an “L” or “[” shape in cross section. The mounting plate 221 is provided with a second connection portion 2211 on a side facing the mounting bracket, and the first connection portion 211 and the second connection portion 2211 can be fixedly connected together. Therefore, after the second connection part 2211 of the secondary magnet 22 is fixedly connected to the first connection part 211 of the mounting bracket, the secondary magnet can be adjusted by adjusting the height adjustment mechanism 2111 of one or several first connection parts 211. 22 position parameter.

其中,第一连接部和第二连接部的数量至少为4,实际使用时可根据具体情况,比如所期望的二级磁铁的磁场中心误差的精度设置增加第一连接部以及第二连接部的数量,比如7个等。The number of the first connection portion and the second connection portion is at least 4, and in actual use, the accuracy of the magnetic field center error of the desired secondary magnet can be set to increase the accuracy of the first connection portion and the second connection portion. Quantity, such as 7 etc.

在一实施例中,为了提高二级磁铁位置调节的便利性和精度,本实施例的 安装支架还包括自动调节机构212。自动调节机构212与第一连接部211、第二连接部2211配合使用,以调节二级磁铁22的位置参数。其中,自动调节机构212为相关技术中能够实现自动调节第二连接部顶端位置参数的装置,即调节二级磁铁的位置参数的装置,比如步进电机与凸轮的组合等。In one embodiment, in order to improve the convenience and accuracy of the secondary magnet position adjustment, the mounting bracket of this embodiment further includes an automatic adjustment mechanism 212. The automatic adjustment mechanism 212 is used in cooperation with the first connection portion 211 and the second connection portion 2211 to adjust the position parameter of the secondary magnet 22. The automatic adjustment mechanism 212 is a device in the related art that can automatically adjust the position parameter of the top end of the second connection portion, that is, a device that adjusts the position parameter of the secondary magnet, such as a combination of a stepping motor and a cam.

在一实施例中,当束流位置参数与二级磁铁的磁铁位置参数之间的对应关系通过物理模型来体现时,该物理模型在输出目标磁铁位置参数的同时,还输出目标磁铁位置参数的调节方法,比如需要调节编号为1的第一连接部升高第一高度,同时调节编号为2的第一连接部升高第二高度。如此以来,根据目标磁铁位置参数的调节方法即可将二级磁铁调节至目标磁铁位置。In an embodiment, when the correspondence relationship between the beam position parameter and the magnet position parameter of the secondary magnet is embodied by a physical model, the physical model outputs the target magnet position parameter while also outputting the target magnet position parameter. For the adjustment method, for example, it is necessary to adjust the first connection part numbered 1 to raise the first height, while adjusting the first connection part numbered to 2 to raise the second height. In this way, the secondary magnet can be adjusted to the target magnet position according to the adjustment method of the target magnet position parameter.

在一实施例中,该物理模型设于控制机构上,该控制机构连接安装支架的自动调节机构212,控制机构根据该物理模型输出的目标磁铁位置参数的调节方法,控制自动调节机构工作,从而将二级磁铁自动调节至目标磁铁位置。In one embodiment, the physical model is set on a control mechanism, and the control mechanism is connected to the automatic adjustment mechanism 212 of the mounting bracket. The control mechanism controls the operation of the automatic adjustment mechanism according to the adjustment method of the target magnet position parameter output by the physical model, thereby The secondary magnet is automatically adjusted to the target magnet position.

本实施例提供的磁场中心误差的矫正方法,先确定磁铁位置参数与束流位置参数之间的对应关系,然后根据所确定的磁铁位置参数与束流位置参数之间的对应关系以及当前束流位置参数,确定目标磁铁位置参数,再将磁铁调节至目标位置参数,实现了通过束流位置参数的因变量反推位置参数的自变量,相较于相关技术通过有限的点、线、面的磁场来估算磁场中心误差具有更高的准确性,有利于提高二级磁铁初始安装时的磁场中心位置的准确性,从而使同步加速器具有较小的轨道振荡,有利于加速器的小型化和提高束流质量。The method for correcting the magnetic field center error provided in this embodiment first determines the correspondence between the magnet position parameter and the beam position parameter, and then according to the correspondence between the determined magnet position parameter and the beam position parameter and the current beam current Position parameter, determine the target magnet position parameter, and then adjust the magnet to the target position parameter, to achieve the inverse of the position parameter's independent variable by the dependent variable of the beam position parameter, compared with related technologies through limited points, lines, and areas. The magnetic field to estimate the magnetic field center error has higher accuracy, which is conducive to improving the accuracy of the magnetic field center position when the secondary magnet is initially installed, so that the synchrotron has a smaller orbital oscillation, which is conducive to the miniaturization of the accelerator and the improvement of the beam. Stream quality.

图4是本申请一实施例提供的磁场中心误差的矫正装置的结构框图。该装置用于执行上述任意实施例所提供的磁场中心误差的矫正方法,该装置可选为软件或硬件实现。该装置包括:FIG. 4 is a structural block diagram of a device for correcting a magnetic field center error according to an embodiment of the present application. This device is used to execute the method for correcting the magnetic field center error provided by any of the above embodiments, and the device may be implemented by software or hardware. The device includes:

束流位置参数获取模块11,设置为获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置。The beam position parameter acquisition module 11 is configured to obtain a current beam position parameter of a beam at a preset beam position after the magnetic field of the magnet acts, wherein the current beam position parameter is an actual beam position parameter relative to a reference An offset of a beam position parameter, and the reference beam position parameter corresponds to a preset magnetic field center position.

调节模块12,设置为根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。The adjustment module 12 is configured to adjust a magnet position parameter of the magnet according to the current beam position parameter, so that a magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is an actual magnetic field center position Deviation from the center position of the preset magnetic field.

本实施例提供的磁场中心误差的矫正装置,获取磁铁的磁场作用后的束流 在预设束流位置的当前束流位置参数,其中,束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,参考束流位置参数对应于预设磁场中心位置;根据当前束流位置参数调节磁铁的磁铁位置参数,以使磁铁的磁场中心误差小于预设误差阈值,其中,磁场中心误差为实际磁场中心位置相对于预设磁场中心位置的偏差,通过当前束流位置参数反推二级磁铁的磁场中心误差并确定目标磁铁位置参数,那么将磁铁位置参数调节至目标磁铁位置参数,则使磁铁的磁场中心误差小于预设误差阈值;那么由于二级磁铁具有较小的磁场中心误差,则使同步加速器的轨道振荡幅度在预设范围内,从而有利于加速器的小型化,以及使加速器具有较高的束流质量。The device for correcting the central error of a magnetic field provided by this embodiment obtains a current beam position parameter of a beam at a preset beam position after a magnetic field of a magnet, wherein the beam position parameter is an actual beam position parameter relative to a reference beam. The offset of the flow position parameter, the reference beam position parameter corresponds to the preset magnetic field center position; the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that the magnetic field center error of the magnet is smaller than a preset error threshold, where the magnetic field The center error is the deviation of the actual magnetic field center position from the preset magnetic field center position. The current field position parameter is used to infer the magnetic field center error of the secondary magnet and determine the target magnet position parameter. Then, the magnet position parameter is adjusted to the target magnet position parameter. , The magnetic field center error of the magnet is smaller than a preset error threshold; then, because the secondary magnet has a smaller magnetic field center error, the amplitude of the orbital oscillation of the synchrotron is within a preset range, thereby facilitating the miniaturization of the accelerator, and The accelerator has a higher beam quality.

在一实施例中,还包括:确定模块。In an embodiment, the method further includes: a determining module.

所述确定模块设置为:在所述获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数之前,确定磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系;The determining module is configured to: before the beam current after the magnetic field of the magnet is obtained is before the current beam position parameter of the preset beam position, determine that the beam position after the magnetic field parameter and the magnetic field of the magnet are Set the relationship between the beam position parameters of the beam position;

且调节模块还设置为:And the adjustment module is also set to:

基于所述磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,根据所述当前束流位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。Based on the relationship between the magnet position parameter and the beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position, the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that The magnetic field center error of the magnet is less than a preset error threshold.

在一实施例中,确定模块还设置为:In an embodiment, the determining module is further configured to:

基于机器学习建立关于磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间对应关系的已训练的物理模型;Establishing a trained physical model on the correspondence between the position parameters of the magnet and the beam position parameters of the preset beam position after the action of the magnetic field of the magnet based on machine learning;

且调节模块还设置为:And the adjustment module is also set to:

将所获取的所述当前束流位置参数输入已训练的所述物理模型;根据已训练的所述物理模型输出的磁铁位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。Inputting the acquired current beam position parameter into the trained physical model; adjusting the magnet position parameter of the magnet according to the magnet position parameter output by the trained physical model, so that the magnetic field center error of the magnet is less than Preset error threshold.

在一实施例中,确定模块还设置为:所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数与磁铁的磁场中心误差之间的关系,以及所述磁铁位置参数与磁铁的磁场中心误差之间的关系。In an embodiment, the determining module is further configured to: a relationship between a beam position parameter of a beam at a preset beam position and a magnetic field center error of the magnet after the magnetic field of the magnet, and the magnet position parameter The relationship with the magnetic field center error of the magnet.

在一实施例中,所述调节模块还设置为:In an embodiment, the adjustment module is further configured to:

基于磁铁的磁场作用后的束流在预设束流位置的束流位置参数与所述磁铁的磁场中心误差之间的关系,根据所述当前束流位置参数确定磁铁磁场中心误差;或者,Determining the magnetic field center error of the magnet based on the relationship between the beam position parameter of the preset beam position and the magnetic field center error of the magnet based on the magnetic field of the magnet; or,

基于所述磁铁位置参数与所述磁铁的磁场中心误差之间的关系,根据所述磁铁磁场中心误差确定目标磁铁位置参数,并将所述磁铁位置调节至所述目标磁铁位置参数。Based on the relationship between the magnet position parameter and the magnetic field center error of the magnet, a target magnet position parameter is determined according to the magnetic field center error, and the magnet position is adjusted to the target magnet position parameter.

在一实施例中,所述磁铁为同步加速器的二级磁铁。本申请实施例所提供的磁场中心误差的矫正装置可执行本申请任意实施例所提供的磁场中心误差的矫正方法,具备执行方法相应的功能模块和有益效果。In one embodiment, the magnet is a secondary magnet of a synchrotron. The device for correcting the magnetic field center error provided by the embodiment of the present application can execute the method for correcting the magnetic field center error provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.

图5为本申请一实施例提供的设备的结构示意图,如图5所示,该设备包括处理器201、存储器202、输入装置203以及输出装置204。设备中处理器201的数量可以是至少一个,图5中以一个处理器201为例;设备中的处理器201、存储器202、输入装置203以及输出装置204可以通过总线或其他方式连接,图5中以通过总线连接为例。FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present application. As shown in FIG. 5, the device includes a processor 201, a memory 202, an input device 203, and an output device 204. The number of processors 201 in the device may be at least one, and one processor 201 is taken as an example in FIG. 5; the processor 201, the memory 202, the input device 203, and the output device 204 in the device may be connected through a bus or other methods. Take the connection via the bus as an example.

存储器202作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请实施例中的磁场中心误差的矫正方法对应的程序指令/模块(例如,束流位置参数获取模块11和调节模块12)。处理器201通过运行存储在存储器202中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的磁场中心误差的矫正方法。The memory 202 is a computer-readable storage medium, and may be configured to store software programs, computer-executable programs, and modules, such as program instructions / modules (for example, beam position) corresponding to a method for correcting a magnetic field center error in the embodiment of the present application. Parameter acquisition module 11 and adjustment module 12). The processor 201 executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory 202, that is, the above-mentioned method for correcting the magnetic field center error.

存储器202可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器202可包括相对于处理器201远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 202 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory 202 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the memory 202 may include memory remotely set relative to the processor 201, and these remote memories may be connected to the device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置203可设置为接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。The input device 203 may be configured to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the device.

输出装置204可包括显示屏等显示设备,例如,用户终端的显示屏。The output device 204 may include a display device such as a display screen, for example, a display screen of a user terminal.

本申请一实施例提供的一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行一种磁场中心误差的矫正方法,该方法包括:An embodiment of the present application provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the method is configured to perform a method for correcting a magnetic field center error. The method includes:

获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中, 所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置;The current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained, where the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, so The reference beam position parameter corresponds to a preset magnetic field center position;

根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is an actual magnetic field center position relative to the preset Deviation of the magnetic field center position.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的磁场中心误差的矫正方法中的相关操作。Certainly, a storage medium including computer-executable instructions provided in the embodiments of the present application is not limited to the method operations described above, and can also perform correction of the magnetic field center error provided by any embodiment of the present application. Related operations in the method.

通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的磁场中心误差的矫正方法。Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by software and necessary general hardware, and of course, can also be implemented by hardware, but in many cases the former is a better implementation. . Based on such an understanding, the technical solution of this application that is essential or contributes to related technologies can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a computer floppy disk, Read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (can be a personal computer, Server, or network device, etc.) perform the method for correcting the magnetic field center error described in each embodiment of the present application.

值得注意的是,上述磁场中心误差的矫正装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that in the embodiment of the device for correcting the magnetic field center error, each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be realized; In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.

工业实用性Industrial applicability

本申请实施例提供了一种磁场中心误差的矫正方法及装置、设备及存储介质,解决了相关技术的同步加速器的磁铁在初始安装阶段的磁场中心误差较大的技术问题,达到了减小相关技术的同步加速器的磁铁在初始安装阶段的磁场中心误差的技术效果。The embodiments of the present application provide a method, a device, a device, and a storage medium for correcting a magnetic field center error, which solves a technical problem that a magnetic field center error of a magnet of a related art synchro accelerator is relatively large in an initial installation stage, and reduces the correlation Technical effect of the magnetic field center error of the synchrotron magnet in the initial installation stage of the technology.

Claims (9)

一种磁场中心误差的矫正方法,包括:A method for correcting the magnetic field center error includes: 获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置;The current beam position parameter of the beam at the preset beam position after the magnetic field of the magnet is obtained, where the current beam position parameter is an offset of the actual beam position parameter from the reference beam position parameter, so The reference beam position parameter corresponds to a preset magnetic field center position; 根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is an actual magnetic field center position relative to the preset Deviation of the magnetic field center position. 根据权利要求1所述的方法,其中,所述获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数之前,还包括:The method according to claim 1, wherein the acquiring the beam current after the magnetic field of the magnet is before the current beam position parameter of the preset beam position further comprises: 确定磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系;Determining a relationship between a magnet position parameter and a beam position parameter of a beam after a magnetic field of the magnet acts at a preset beam position; 所述根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes: 基于所述磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,根据所述当前束流位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。Based on the relationship between the magnet position parameter and the beam position parameter of the beam after the magnetic field of the magnet acts at a preset beam position, the magnet position parameter of the magnet is adjusted according to the current beam position parameter so that The magnetic field center error of the magnet is less than a preset error threshold. 根据权利要求2所述的方法,其中,所述确定磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系,包括:The method according to claim 2, wherein the relationship between determining the position parameter of the magnet and the beam position parameter of the beam after the magnetic field of the magnet acts on the preset beam position comprises: 基于机器学习建立关于磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间对应关系的已训练的物理模型;Establishing a trained physical model on the correspondence between the position parameters of the magnet and the beam position parameters of the preset beam position after the action of the magnetic field of the magnet based on machine learning; 所述根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:Adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold includes: 将所获取的所述当前束流位置参数输入已训练的所述物理模型;Inputting the acquired current beam position parameter into the trained physical model; 根据已训练的所述物理模型输出的磁铁位置参数调节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值。The magnet position parameter of the magnet is adjusted according to the magnet position parameter output by the trained physical model, so that the magnetic field center error of the magnet is less than a preset error threshold. 根据权利要求2所述的方法,其中,所述磁铁位置参数与所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数之间的关系包括:The method according to claim 2, wherein a relationship between the position parameter of the magnet and a beam position parameter of a beam after a magnetic field of the magnet acts on a preset beam position comprises: 所述磁铁的磁场作用后的束流在预设束流位置的束流位置参数与磁铁的磁场中心误差之间的关系,以及所述磁铁位置参数与磁铁的磁场中心误差之间的关系。The relationship between the beam position parameter of the preset beam position and the magnetic field center error of the magnet after the magnetic field of the magnet acts, and the relationship between the magnet position parameter and the magnetic field center error of the magnet. 根据权利要求4所述的方法,其中,所述根据所述当前束流位置参数调 节磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,包括:The method according to claim 4, wherein the adjusting the magnet position parameter of the magnet according to the current beam position parameter so that the magnetic field center error of the magnet is less than a preset error threshold, comprising: 基于磁铁的磁场作用后的束流在预设束流位置的束流位置参数与所述磁铁的磁场中心误差之间的关系,根据所述当前束流位置参数确定磁铁磁场中心误差;或者,Determining the magnetic field center error of the magnet based on the relationship between the beam position parameter of the preset beam position and the magnetic field center error of the magnet based on the magnetic field of the magnet; or, 基于所述磁铁位置参数与所述磁铁的磁场中心误差之间的关系,根据所述磁铁磁场中心误差确定目标磁铁位置参数,并将所述磁铁位置调节至所述目标磁铁位置参数。Based on the relationship between the magnet position parameter and the magnetic field center error of the magnet, a target magnet position parameter is determined according to the magnetic field center error, and the magnet position is adjusted to the target magnet position parameter. 根据权利要求1-5任一项所述的方法,其中,所述磁铁为同步加速器的二级磁铁。The method according to any one of claims 1-5, wherein the magnet is a secondary magnet of a synchrotron. 一种磁场中心误差的矫正装置,包括:A magnetic field center error correction device includes: 束流位置参数获取模块,设置为获取磁铁的磁场作用后的束流在预设束流位置的当前束流位置参数,其中,所述当前束流位置参数为实际束流位置参数相对于参考束流位置参数的偏移量,所述参考束流位置参数对应于预设磁场中心位置;The beam position parameter acquisition module is configured to obtain a current beam position parameter of the beam at a preset beam position after the magnetic field of the magnet is applied, wherein the current beam position parameter is an actual beam position parameter relative to a reference beam. An offset of a flow position parameter, the reference beam position parameter corresponding to a preset magnetic field center position; 调节模块,设置为根据所述当前束流位置参数调节所述磁铁的磁铁位置参数,以使所述磁铁的磁场中心误差小于预设误差阈值,其中,所述磁场中心误差为实际磁场中心位置相对于所述预设磁场中心位置的偏差。An adjustment module configured to adjust a magnet position parameter of the magnet according to the current beam position parameter so that a magnetic field center error of the magnet is less than a preset error threshold, wherein the magnetic field center error is relative to an actual magnetic field center position A deviation from a center position of the preset magnetic field. 一种设备,所述设备包括:A device includes: 至少一个处理器;At least one processor; 存储装置,设置为存储至少一个程序;A storage device configured to store at least one program; 当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-6中任一项所述的磁场中心误差的矫正方法。When the at least one program is executed by the at least one processor, the at least one processor implements the method for correcting a magnetic field center error according to any one of claims 1-6. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行如权利要求1-6中任一项所述的磁场中心误差的矫正方法。A storage medium containing computer-executable instructions, the computer-executable instructions, when executed by a computer processor, are configured to perform a method for correcting a magnetic field center error according to any one of claims 1-6.
PCT/CN2018/090230 2018-06-07 2018-06-07 Magnetic field center error correction method and device, apparatus, and storage medium Ceased WO2019232743A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/090230 WO2019232743A1 (en) 2018-06-07 2018-06-07 Magnetic field center error correction method and device, apparatus, and storage medium
CN201880000831.5A CN108780471B (en) 2018-06-07 2018-06-07 Method and device for correcting magnetic field center error, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090230 WO2019232743A1 (en) 2018-06-07 2018-06-07 Magnetic field center error correction method and device, apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2019232743A1 true WO2019232743A1 (en) 2019-12-12

Family

ID=64029105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090230 Ceased WO2019232743A1 (en) 2018-06-07 2018-06-07 Magnetic field center error correction method and device, apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN108780471B (en)
WO (1) WO2019232743A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120980760A (en) * 2025-10-21 2025-11-18 中国科学院近代物理研究所 Modular mounting device for accelerator magnet module and accelerator

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780471B (en) * 2018-06-07 2022-09-20 新瑞阳光粒子医疗装备(无锡)有限公司 Method and device for correcting magnetic field center error, equipment and storage medium
CN114377307B (en) * 2021-12-28 2022-10-28 中国原子能科学研究院 Device and method for quickly correcting beam position in pencil beam scanning

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004055390A (en) * 2002-07-22 2004-02-19 Nissin Electric Co Ltd Ion source
CN101320599A (en) * 2007-06-06 2008-12-10 高晓达 Beam current continuous injection method through limit cycle helical sector injection section
CN101572130A (en) * 2008-04-29 2009-11-04 同方威视技术股份有限公司 Device and method for monitoring irradiation field on line in real time
CN102933020A (en) * 2011-08-08 2013-02-13 上海原子科兴药业有限公司 Improved ion source system of cyclotron
CN103929873A (en) * 2014-04-22 2014-07-16 中国科学院上海应用物理研究所 Detection system and method and correction system and method for beam center orbital deviation
CN106163073A (en) * 2016-07-29 2016-11-23 中国原子能科学研究院 A kind of line outbound course of middle energy superconduction bevatron
CN107807517A (en) * 2016-09-09 2018-03-16 郭鑫 A kind of method of the beam path quick high accuracy correction of electron accelerator
CN107835556A (en) * 2017-11-30 2018-03-23 合肥中科离子医学技术装备有限公司 The method of first harmonic regulation racetrack centering is utilized in a kind of cyclotron
CN108780471A (en) * 2018-06-07 2018-11-09 新瑞阳光粒子医疗装备(无锡)有限公司 Correction method and device, equipment and storage medium of magnetic field center error

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3801938B2 (en) * 2002-03-26 2006-07-26 株式会社日立製作所 Particle beam therapy system and method for adjusting charged particle beam trajectory
CN102866369B (en) * 2011-12-12 2014-12-24 中国科学院深圳先进技术研究院 Main magnetic field drift correction method and system of magnetic resonance
CN106804091B (en) * 2017-03-21 2018-04-10 华中科技大学 A kind of cyclotron isochronous magnetic field shimming method and system
CN108051999B (en) * 2017-10-31 2020-08-25 中国科学技术大学 Accelerator beam trajectory control method and system based on deep reinforcement learning

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004055390A (en) * 2002-07-22 2004-02-19 Nissin Electric Co Ltd Ion source
CN101320599A (en) * 2007-06-06 2008-12-10 高晓达 Beam current continuous injection method through limit cycle helical sector injection section
CN101572130A (en) * 2008-04-29 2009-11-04 同方威视技术股份有限公司 Device and method for monitoring irradiation field on line in real time
CN102933020A (en) * 2011-08-08 2013-02-13 上海原子科兴药业有限公司 Improved ion source system of cyclotron
CN103929873A (en) * 2014-04-22 2014-07-16 中国科学院上海应用物理研究所 Detection system and method and correction system and method for beam center orbital deviation
CN106163073A (en) * 2016-07-29 2016-11-23 中国原子能科学研究院 A kind of line outbound course of middle energy superconduction bevatron
CN107807517A (en) * 2016-09-09 2018-03-16 郭鑫 A kind of method of the beam path quick high accuracy correction of electron accelerator
CN107835556A (en) * 2017-11-30 2018-03-23 合肥中科离子医学技术装备有限公司 The method of first harmonic regulation racetrack centering is utilized in a kind of cyclotron
CN108780471A (en) * 2018-06-07 2018-11-09 新瑞阳光粒子医疗装备(无锡)有限公司 Correction method and device, equipment and storage medium of magnetic field center error

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120980760A (en) * 2025-10-21 2025-11-18 中国科学院近代物理研究所 Modular mounting device for accelerator magnet module and accelerator

Also Published As

Publication number Publication date
CN108780471B (en) 2022-09-20
CN108780471A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
WO2019232743A1 (en) Magnetic field center error correction method and device, apparatus, and storage medium
US20250291625A1 (en) Quantum computer phase tracking and correction
US20150055852A1 (en) Accuracy compensation method, system, and device
US20160124417A1 (en) Automatic gain adjustment support device
JP2007078688A5 (en)
SG10201700386PA (en) A System And Method For Aligning An Elongated Tool To An Occluded Target
CN105252911A (en) Correction method and device for laser marking
US20180224824A1 (en) Control device, control method, and control program
CN105823713A (en) Method for improving measuring precision of air quality detection device through iteration optimal calibration
WO2024139863A1 (en) Calibration information determination methods and apparatus, electronic device, and storage medium
WO2020024174A1 (en) Method for acquiring frequency characteristics of servo system, and electronic apparatus and storage apparatus
JP2019506006A (en) Control system and method for a lithographic apparatus
CN101339210A (en) Method and device for correcting phase error in power grid measurement and control equipment
WO2025031077A1 (en) Self-feedback temperature compensation method, apparatus and system for depth camera
CN114776045A (en) Method, device and equipment for mounting precast beam and readable storage medium
WO2020133790A1 (en) Detection method, apparatus, and system for probe positioning deviation, and method and apparatus for assisting in detection of probe positioning deviation
CN103929873B (en) The detecting system of beam center orbit displacement and method and correction system and method
CN110130168A (en) A correction processing method for triangular elevation data of railway track control network
CN114553334B (en) Phased array antenna pointing error measurement method, system, terminal and device
CN109818672A (en) A light source trajectory prediction method and system for wireless optical communication
CN103076588A (en) Closed-loop correction method of oscilloscope
WO2015021911A1 (en) Clock synchronization method and device, and base station system
US20170201020A1 (en) Method and device for correcting antenna phase
CN115436918A (en) A method and device for correcting the horizontal angle between laser radar and unmanned vehicle
FR3068555B1 (en) VERIFICATION PROCESS IMPLEMENTED BY AN ELECTRONIC DEVICE DURING AT LEAST ONE TRANSACTION WITH CHANGE OF LIMITS

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18921345

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18921345

Country of ref document: EP

Kind code of ref document: A1