Invention content
The embodiment of the present application provides a kind of antidote, device, equipment and the storage medium of magnetic field center error, to reduce
Magnetic field center error of the magnet of the synchrotron of the relevant technologies in initial installation stage.
The embodiment of the present application provides a kind of antidote of magnetic field center error, including:
The line after the magnetic fields of magnet is obtained in the current beam position parameter for presetting beam position, wherein described
Current beam position parameter is offset of the practical beam position parameter relative to reference beam position parameter, described to refer to line
Location parameter corresponds to default magnetic field center position;
According to the magnet positions parameter of magnet described in the current beam position parameter regulation, so that the magnetic field of the magnet
Errors of centration is less than default error threshold, wherein the magnetic field center error is true field center relative to described pre-
If the deviation of magnetic field center position.
In one embodiment, current line position of the line after the magnetic fields for obtaining magnet in default beam position
Before setting parameter, further include:
Determine magnet positions parameter with the line after the magnetic fields of the magnet in the beam position for presetting beam position
Relationship between parameter;
The magnet positions parameter according to magnet described in the current beam position parameter regulation, so that the magnet
Magnetic field center error is less than default error threshold, including:
Line after magnetic fields based on the magnet positions parameter and the magnet is in the line for presetting beam position
Relationship between location parameter, according to the magnet positions parameter of the current beam position parameter regulation magnet, so that the magnetic
The magnetic field center error of iron is less than default error threshold.
In one embodiment, the line after the magnetic fields of the determining magnet positions parameter and the magnet is in default beam
The relationship between the beam position parameter of position is flowed, including:
It is established about the line after the magnetic fields of magnet positions parameter and the magnet in default beam based on machine learning
The physical model of correspondence trained between the beam position parameter of stream position;
The magnet positions parameter according to magnet described in the current beam position parameter regulation, so that the magnet
Magnetic field center error is less than default error threshold, including:
The acquired current beam position parameter is inputted into the physical model trained;
According to the magnet positions parameter of the magnet positions parameter regulation magnet for the physical model output trained, so that
The magnetic field center error of the magnet is less than default error threshold.
In one embodiment, the line after the magnetic fields of the magnet positions parameter and the magnet is in default line position
Relationship between the beam position parameter set includes:
Line after the magnetic fields of magnet is missed in the beam position parameter of default beam position and the magnetic field center of magnet
The relationship between relationship and the magnet positions parameter and the magnetic field center error of magnet between difference.
In one embodiment, the magnet positions parameter according to the current beam position parameter regulation magnet, so that
The magnetic field center error of the magnet is less than default error threshold, including:
The magnetic of line after magnetic fields based on magnet in the beam position parameter and the magnet of default beam position
Relationship between the errors of centration of field, magnetic field of magnets errors of centration is determined according to the current beam position parameter;Alternatively,
Based on the relationship between the magnet positions parameter and the magnetic field center error of the magnet, according to the magnet magnetic
Field errors of centration determines target magnet positions parameter, and the magnet positions are adjusted to the target magnet positions parameter.
In one embodiment, the magnet is the two level magnet of synchrotron.
The embodiment of the present application also provides a kind of apparatus for correcting of magnetic field center error, including:
Beam position parameter acquisition module is set as obtaining the line after the magnetic fields of magnet in default beam position
Current beam position parameter, wherein the current beam position parameter is practical beam position parameter relative to reference to line position
The offset of parameter is set, it is described to correspond to default magnetic field center position with reference to beam position parameter;
Adjustment module is set as the magnet positions parameter according to magnet described in the current beam position parameter regulation, with
The magnetic field center error of the magnet is set to be less than default error threshold, wherein the magnetic field center error is true field center
Deviation of the position relative to the default magnetic field center position.
The embodiment of the present application also provides a kind of equipment, the equipment includes:
At least one processor;
Storage device is set as storing at least one program;
When at least one program is executed by least one processor so that at least one processor is realized
The antidote of magnetic field center error as described in relation to the first aspect.
The embodiment of the present application also provides a kind of storage medium including computer executable instructions, the computer can be held
Row instruction is arranged to carry out the antidote of magnetic field center error as described in relation to the first aspect when being executed by computer processor.
The technical solution of the antidote of magnetic field center error provided in this embodiment, after the magnetic fields for obtaining magnet
Current beam position parameter of the line in default beam position, wherein beam position parameter is that practical beam position parameter is opposite
In the offset with reference to beam position parameter, correspond to default magnetic field center position with reference to beam position parameter;According to when toe-in
The magnet positions parameter of location parameter regulating magnet is flowed, so that the magnetic field center error of magnet is less than default error threshold, wherein
Magnetic field center error is deviation of the true field center relative to default magnetic field center position, is joined by current beam position
The anti-magnetic field center error for pushing away two level magnet of number simultaneously determines target magnet positions parameter, then by magnet positions parameter regulation to mesh
Magnet positions parameter is marked, then the magnetic field center error of magnet is made to be less than default error threshold;So due to two level magnet have compared with
Small magnetic field center error then makes the orbital oscillation amplitude of synchrotron within a preset range, to be conducive to accelerator
Miniaturization, and make accelerator that there is higher beam quality.
Specific implementation mode
Fig. 1 is the flow chart of the antidote for the magnetic field center error that one embodiment of the application provides.The skill of the present embodiment
Art scheme be suitable for correct magnet magnetic field center error the case where, such as be adapted to correct synchrotron two level magnet exist
The case where magnetic field center error of initial installation stage.This method can be by magnetic field center error provided by the embodiments of the present application
Apparatus for correcting executes, and the mode which may be used at least one of software and hardware realizes, and configures in processor
Middle application.This method comprises the following steps S101 to S102.
In S101, the line after the magnetic fields of magnet is obtained in the current beam position parameter for presetting beam position.
In one embodiment, current beam position parameter is practical beam position parameter relative to reference to beam position parameter
Offset, correspond to default magnetic field center position with reference to beam position parameter.
The present embodiment is illustrated by taking the magnetic field center error correction of the two level magnet of synchrotron as an example.Add synchronous
In fast device, two level magnet due to the effect in the magnetic field of multiple two level magnet into horizontal deflection to the particle beams for making a large amount of particle
Line is moved in synchronous ring along desired guiding trajectory.Therefore for synchrotron, especially small synchronous accelerator, in order to make its
Also ensure that particle beam can be moved steadily, be accelerated, and usually require that the magnetic field center error of two level magnet while miniaturization
Within the scope of acceptable default error threshold, otherwise particle beam apparent orbital oscillation can occur on synchronous ring.In order to
Inhibit orbital oscillation, needs in later stage installation process, magnetic field center error is corrected by a large amount of correcting magnet.And
And orbital oscillation is more apparent, the size for correcting magnet and beam current tube is also bigger, and the change conference of beam current tube size is direct
The price and volume for raising all ring upper-parts, make the cost of entire accelerator rise significantly, and overall volume can also become larger.
Wherein, particle beam is the particle beam that can be accelerated in the related technology by synchrotron, such as proton
Line etc..The present embodiment is hereafter using line as the general designation of particle beam.
Since the effect of the two level magnet of synchrotron is that halved tie flows into horizontal deflection, for given two level magnetic
The deflected trajectory of iron, line is related with the magnetic field center position of two level magnet.That is, can be pushed away come counter according to beam trace
The magnetic field center position of two level magnet.In order to improve the correction rate of magnetic field center error, the present embodiment is to preset beam position
Beam position parameter carry out magnetic field center error correction.Wherein, some that beam position is accelerator track is preset to cut
Face range or a certain volume range.It can determine default beam position as the case may be in actual use, then obtain warp
Line after two level magnet deflecting action is in the current beam position parameter for presetting beam position.
Wherein, current beam position parameter is practical beam position parameter relative to the offset with reference to beam position parameter
Amount corresponds to default magnetic field center position with reference to beam position parameter.When being origin position with reference to beam position parameter, line
Location parameter is practical beam position parameter.Beam position parameter in the present embodiment can be examined by the beam position of the relevant technologies
It surveys device to obtain, the present embodiment not limits this.
Wherein, it can be the geometric center position under two level magnet current position state to preset magnetic field center position, also may be used
Can also be desired magnetic field center position of user etc. to be the magnetic field center position estimated according to the relevant technologies.It is real
Border in use, can determine as the case may be.It, can will be current in addition, in order to improve the straightening speed of magnetic field center error
Magnet positions parameter is set as initial data, such as by the current equal zero setting of magnet positions parameter.
In S102, according to the magnet positions parameter of current beam position parameter regulation magnet, so that in the magnetic field of magnet
Heart error is less than default error threshold.
In one embodiment, magnetic field center error is true field center relative to the inclined of default magnetic field center position
Difference.
When getting the line after the magnetic fields of magnet after the current beam position parameter of default beam position, i.e.,
The magnetic field center error that magnet can be determined according to current beam position parameter, then determines the mesh of magnet according to magnetic field center error
Then magnet is adjusted to target location parameter by cursor position parameter, so that the magnetic field center error of magnet is less than default error threshold
Value.
The antidote of magnetic field center error provided in this embodiment obtains the line after the magnetic fields of magnet default
The current beam position parameter of beam position, wherein beam position parameter is practical beam position parameter relative to reference to line
The offset of location parameter corresponds to default magnetic field center position with reference to beam position parameter;According to current beam position parameter
The magnet positions parameter of regulating magnet, so that the magnetic field center error of magnet is less than default error threshold, wherein magnetic field center misses
Difference is deviation of the true field center relative to default magnetic field center position.Two level is pushed away by the way that current beam position parameter is counter
The magnetic field center error of magnet simultaneously determines target magnet positions parameter, then by magnet positions parameter regulation to target magnet positions
Parameter then makes the magnetic field center error of magnet be less than default error threshold;So since two level magnet has in smaller magnetic field
Heart error then makes the orbital oscillation amplitude of synchrotron within a preset range, to be conducive to the miniaturization of accelerator, and
Make accelerator that there is higher beam quality.
Fig. 2 is the flow chart of the antidote for the magnetic field center error that another embodiment of the application provides.As shown in Fig. 2,
This method includes S100 to S102.
In S100, determine the line after the magnetic fields of magnet positions parameter and magnet in the line for presetting beam position
Relationship between location parameter.
Magnet positions parameter is corrected by beam position parameter, it usually needs first determine the magnet positions parameter of magnet
And correspondence of the line that is deflected of the magnet between the beam position parameter of default beam position.
In one embodiment, the foundation about correspondence between magnet positions parameter and beam position parameter, can be with base
The physical model about beam position parameter and magnet positions parameter is established in machine learning.The process of establishing of the physical model can
To be:The sample data of acquisition standard two level magnet, sample data include the magnetic field center error of preset quantity, and each
The magnet positions parameter acquired under magnetic field center error, and the corresponding beam position parameter of each magnet positions parameter;So
Sample data is divided into training set sample data and calibration set sample data afterwards.The physics mould is trained by training set sample data
Type establishes the correspondence of magnet positions parameter and beam position parameter, to allow the physical model in input line position
When setting parameter, exports the target location parameter of magnet or adjust target component, wherein adjust target component needs for current magnet
The position offset to be adjusted.In another embodiment, which it is corresponding also to export inputted beam position parameter
The magnetic field center error of two level magnet.In order to improve the robustness of the physical model, by calibration set sample data to the physics
Model is corrected, and generates the physical model trained.The physical model in use, the line after the magnetic fields of magnet pre-
If the current beam position parameter of beam position, you can export the target location parameter of magnet or adjust target component.
In one embodiment, the standard two level magnet in the present embodiment is to be had determined that in its magnetic field by canonical measure means
The two level magnet of heart error, wherein canonical measure means are the measurement means that measurement accuracy meets default required precision.
In one embodiment, the foundation about correspondence between magnet positions parameter and beam position parameter, Ke Yixian
Determine correspondence between beam position parameter and magnetic field center error and magnetic field center error and magnet positions parameter
Correspondence determines the correspondence of beam position parameter and magnet positions parameter then according to both of the aforesaid correspondence.
In S101, the line after the magnetic fields of magnet is obtained in the current beam position parameter for presetting beam position.
In S102, the line after the magnetic fields based on magnet positions parameter and magnet is in the line for presetting beam position
Relationship between location parameter, according to the magnet positions parameter of current beam position parameter regulation magnet, so that the magnetic field of magnet
Errors of centration is less than default error threshold.
After relationship between magnet positions parameter and beam position parameter determines, you can be based on magnet positions parameter and line
Relationship between location parameter determines target magnet positions parameter according to current beam position parameter, two level magnet is adjusted to
Target magnet positions parameter, so that the magnetic field center error of magnet is less than default error threshold.
When the relationship between magnet positions parameter and beam position parameter when embodying, is incited somebody to action by the physical model trained
Acquired current beam position parameter inputs the physical model trained;According to the magnet position for the physical model output trained
The magnet positions parameter of parameter regulation magnet is set, so that the magnetic field center error of magnet is less than default error threshold.
When correspondence between magnet positions parameter and beam position parameter, missed by beam position parameter and magnetic field center
The correspondence between correspondence and magnetic field center error and magnet positions parameter between difference when embodying, is based on line
Relationship between location parameter and the magnetic field center error of magnet determines that magnetic field of magnets center is missed according to current beam position parameter
Difference;Based on the relationship between magnet positions parameter and the magnetic field center error of magnet, mesh is determined according to magnetic field of magnets errors of centration
Magnet positions parameter is marked, and magnet positions are adjusted to target magnet positions parameter, so that the magnetic field center error of magnet is less than
Default error threshold.
Fig. 3 is the structural schematic diagram for the adjusting bracket that one embodiment of the application provides.As shown in figure 3, due to sync plus white
The two level magnet of device is typically secured in a mounting bracket, which generally includes pedestal 21, and is set to pedestal 21
On multiple first connecting portions 211, and the first connecting portion 211 is provided with height adjustment mechanism 2111.Two level magnet 22 passes through
Bindiny mechanism 222 is fixed on mounting plate 221, and it is " L " type or the " [connecting plate of " type that section, which may be selected, in connection structure 222.Installation
Plate 221 is provided with second connecting portion 2211, and first connecting portion 211 and second connecting portion 2211 in the side towards mounting bracket
It can be fixed together.Therefore, when the first connecting portion 211 of the second connecting portion 2211 of two level magnet 22 and mounting bracket is solid
After fixed connection, two level can be adjusted by adjusting the height adjustment mechanism 2111 of some or certain several first connecting portions 211
The location parameter of magnet 22.
Wherein, the quantity of first connecting portion and second connecting portion is at least 4, in actual use can as the case may be, than
The precision setting of the magnetic field center error of two level magnet as expected increases the quantity of the first connecting portion and the second connecting portion,
Such as 7 etc..
In one embodiment, in order to improve two level magnet positions adjusting convenience and precision, the installation branch of the present embodiment
Frame further includes automatic adjusting mechanism 212.Automatic adjusting mechanism 212 makes with first connecting portion 211, the cooperation of second connecting portion 2211
With to adjust the location parameter of two level magnet 22.Wherein, automatic adjusting mechanism 212 is that can realize automatic tune in the related technology
Save second connecting portion apical position parameter device, that is, adjust two level magnet location parameter device, such as stepper motor with
The combination etc. of cam.
In one embodiment, when the correspondence between beam position parameter and the magnet positions parameter of two level magnet passes through
Physical model is come when embodying, which also exports target magnet positions ginseng while exporting target magnet positions parameter
Several adjusting method, for example need to adjust the first connecting portion that number is 1 and increase the first height, while adjust that number is 2 the
One interconnecting piece increases the second height.So that can be by two level magnet tune according to the adjusting method of target magnet positions parameter
It saves to target magnet positions.
In one embodiment, which is set on control mechanism, which connects the automatic tune of mounting bracket
Save mechanism 212, the adjusting method for the target magnet positions parameter that control mechanism is exported according to the physical model, control automatic adjustment
Mechanism works, to which two level magnet is automatically adjusted to target magnet positions.
The antidote of magnetic field center error provided in this embodiment first determines magnet positions parameter and beam position parameter
Between correspondence, then according between identified magnet positions parameter and beam position parameter correspondence and work as
Preceding line location parameter determines target magnet positions parameter, then magnet is adjusted to target location parameter, realizes and passes through line
The independent variable of the anti-push position parameter of dependent variable of location parameter, compared to the relevant technologies by the magnetic field of limited point, line, surface come
It estimates that magnetic field center error has higher accuracy, is conducive to improve magnetic field center position when two level magnet is initially installed
Accuracy is conducive to the miniaturization of accelerator and improves beam quality to make synchrotron have smaller orbital oscillation.
Fig. 4 is the structure diagram of the apparatus for correcting for the magnetic field center error that one embodiment of the application provides.The device is used for
The antidote for the magnetic field center error that above-mentioned any embodiment is provided is executed, which is chosen as software or hardware realization.
The device includes:
Beam position parameter acquisition module 11 is set as obtaining the line after the magnetic fields of magnet in default beam position
Current beam position parameter, wherein the current beam position parameter be practical beam position parameter relative to reference to line
The offset of location parameter, it is described to correspond to default magnetic field center position with reference to beam position parameter.
Adjustment module 12 is set as the magnet positions parameter according to magnet described in the current beam position parameter regulation,
So that the magnetic field center error of the magnet is less than default error threshold, wherein the magnetic field center error is in true field
Deviation of the heart position relative to the default magnetic field center position.
The apparatus for correcting of magnetic field center error provided in this embodiment obtains the line after the magnetic fields of magnet default
The current beam position parameter of beam position, wherein beam position parameter is practical beam position parameter relative to reference to line
The offset of location parameter corresponds to default magnetic field center position with reference to beam position parameter;According to current beam position parameter
The magnet positions parameter of regulating magnet, so that the magnetic field center error of magnet is less than default error threshold, wherein magnetic field center misses
Difference is deviation of the true field center relative to default magnetic field center position, and two level is pushed away by the way that current beam position parameter is counter
The magnetic field center error of magnet simultaneously determines target magnet positions parameter, then by magnet positions parameter regulation to target magnet positions
Parameter then makes the magnetic field center error of magnet be less than default error threshold;So since two level magnet has in smaller magnetic field
Heart error then makes the orbital oscillation amplitude of synchrotron within a preset range, to be conducive to the miniaturization of accelerator, and
Make accelerator that there is higher beam quality.
In one embodiment, further include:Determining module.
The determining module is set as:Line working as in default beam position after the magnetic fields for obtaining magnet
Before preceding line location parameter, determine magnet positions parameter with the line after the magnetic fields of the magnet in default beam position
Beam position parameter between relationship;
And adjustment module is also configured to:
Line after magnetic fields based on the magnet positions parameter and the magnet is in the line for presetting beam position
Relationship between location parameter, according to the magnet positions parameter of the current beam position parameter regulation magnet, so that the magnetic
The magnetic field center error of iron is less than default error threshold.
In one embodiment, determining module is also configured to:
It is established about the line after the magnetic fields of magnet positions parameter and the magnet in default beam based on machine learning
The physical model of correspondence trained between the beam position parameter of stream position;
And adjustment module is also configured to:
The acquired current beam position parameter is inputted into the physical model trained;According to the institute trained
The magnet positions parameter for stating the magnet positions parameter regulation magnet of physical model output, so that the magnetic field center error of the magnet
Less than default error threshold.
In one embodiment, determining module is also configured to:Line after the magnetic fields of the magnet is in default line position
The magnetic of relationship and the magnet positions parameter and magnet between the beam position parameter set and the magnetic field center error of magnet
Relationship between the errors of centration of field.
In one embodiment, the adjustment module is also configured to:
The magnetic of line after magnetic fields based on magnet in the beam position parameter and the magnet of default beam position
Relationship between the errors of centration of field, magnetic field of magnets errors of centration is determined according to the current beam position parameter;Alternatively,
Based on the relationship between the magnet positions parameter and the magnetic field center error of the magnet, according to the magnet magnetic
Field errors of centration determines target magnet positions parameter, and the magnet positions are adjusted to the target magnet positions parameter.
In one embodiment, the magnet is the two level magnet of synchrotron.The magnetic field that the embodiment of the present application is provided
The apparatus for correcting of errors of centration can perform the antidote for the magnetic field center error that the application any embodiment is provided, and has and holds
The corresponding function module of row method and advantageous effect.
Fig. 5 is the structural schematic diagram for the equipment that one embodiment of the application provides, as shown in figure 5, the equipment includes processor
201, memory 202, input unit 203 and output device 204.The quantity of processor 201 can be at least one in equipment,
In Fig. 5 by taking a processor 201 as an example;Processor 201, memory 202, input unit 203 in equipment and output device
204 can be connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 202 is used as a kind of computer readable storage medium, and it is executable to may be configured as storage software program, computer
Program and module, such as the corresponding program instruction of the antidote of the magnetic field center error in the embodiment of the present application/module (example
Such as, beam position parameter acquisition module 11 and adjustment module 12).Processor 201 is stored in soft in memory 202 by operation
Part program, instruction and module are realized to execute various function application and the data processing of equipment in above-mentioned magnetic field
The antidote of heart error.
Memory 202 can include mainly storing program area and storage data field, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.This
Outside, memory 202 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 202 may include
The memory remotely located relative to processor 201, these remote memories can pass through network connection to equipment.Above-mentioned network
Example include but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 203 may be configured as receiving the number or character information of input, and generate the user setting with equipment
And the related key signals input of function control.
Output device 204 may include that display screen etc. shows equipment, for example, the display screen of user terminal.
A kind of storage medium including computer executable instructions that one embodiment of the application provides, the computer can be held
Row instruction is arranged to carry out a kind of antidote of magnetic field center error when being executed by computer processor, and this method includes:
The line after the magnetic fields of magnet is obtained in the current beam position parameter for presetting beam position, wherein described
Current beam position parameter is offset of the practical beam position parameter relative to reference beam position parameter, described to refer to line
Location parameter corresponds to default magnetic field center position;
According to the magnet positions parameter of magnet described in the current beam position parameter regulation, so that the magnetic field of the magnet
Errors of centration is less than default error threshold, wherein the magnetic field center error is true field center relative to described pre-
If the deviation of magnetic field center position.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer
The method operation that executable instruction is not limited to the described above, can also be performed the magnetic field center that the application any embodiment is provided
Relevant operation in the antidote of error.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the application
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on this understanding, the technical solution of the application substantially in other words contributes to the relevant technologies
Part can be expressed in the form of software products, which can be stored in computer readable storage medium
In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes the magnetic field center described in each embodiment of the application
The antidote of error.
It is worth noting that, in the embodiment of the apparatus for correcting of above-mentioned magnetic field center error, included each unit and
Module is only divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized
?;In addition, the specific name of each functional unit is also only to facilitate mutually distinguish, the protection being not intended to limit this application
Range.
Industrial applicibility
The embodiment of the present application provides a kind of antidote and device of magnetic field center error, equipment and storage medium, solution
The magnet of the synchrotron for the relevant technologies of the having determined technical problem larger in the magnetic field center error of initial installation stage, reaches
Reduce the magnet of the synchrotron of the relevant technologies the magnetic field center error of initial installation stage technique effect.