Ultra-high uniformity coil system design method
By using an active and passive combination in the magnetic shielding cabin, the ultra-high uniformity coil is designed using the target field method and the bat optimization algorithm, the problems of complex structure and large unevenness of the magnetic shielding cabin equipment in the existing technology are solved, and the problem of large unevenness of the magnetic shielding cabin equipment in the existing technology is realized. A zero-magnetic environment with high uniformity magnetic field provides better conditions for MEG testing.
Patent Information
- Application Number
- CN202410853472.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-29
AI Technical Summary
The existing magnetic shielding cabin equipment is complex and costly, and the shielding effect of the active magnetic compensation system depends on the direction of the coil, and a comprehensive zero-magnetic environment cannot be achieved. Especially in MEG tests, the unevenness of the coil leads to relatively high magnetic field errors. Large, affecting the test results.
The ultra-high uniformity coil system is designed using a combination of active and passive methods. By setting primary and secondary coils in the three-axis directions of x, y, and z, and using target field method and bat optimization algorithm, the current density distribution of the coil is optimized to achieve Higher magnetic field uniformity.
The designed ultra-high uniformity coil system can provide a high uniformity magnetic field in a larger area in a planar coil space with low occupancy, greatly improving the uniformity of the target area, realizing a zero magnetic environment, and providing better MEG testing test environment.
Smart Images

Figure CN119047113A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of coil design, and in particular to a design method for an ultra-high uniformity coil system. Background Art
[0002] Magnetoencephalography (MEG) is a method for mapping the electrophysiological activity of the human brain. It produces images of brain function with high temporal and spatial resolution by measuring the magnetic fields generated outside the brain by neuronal currents. This feature suggests that the technology can be applied in medicine, cognitive science, and brain-computer interface research. For example, MEG is used in combination with scalp EEG equipment to locate the causative area in epilepsy patients, greatly improving the success of surgery. The active magnetic field of the brain is only tens to hundreds of femtoliters, while the Earth's magnetic field is 50,000 nT, a difference of eight orders of magnitude. Therefore, a uniform, zero-magnetic environment is required for MEG testing.
[0003] Currently, the methods for obtaining a stable near-zero magnetic environment are mainly divided into passive magnetic shielding and active magnetic compensation technologies. Passive magnetic shielding generally uses Permalloy, pure iron and other high-magnetic permeability materials to build a cabin in multiple layers. However, the structure of the magnetic shielding cabin is complex, and the installation and processing precision requirements are high, and the magnetic shielding effect is limited. The active magnetic compensation system mainly compensates for the residual magnetism in the magnetic shielding device by controlling the magnetic field generated by the coil, thereby improving the effect of magnetic field shielding in space. However, the direction of the shielding depends on the direction of the designed coil, and the comprehensiveness of the shielding is single. Chen et al. used a combination of active and passive methods to complete the test of the uniform area and gradient of the magnetic field, and the experimental results were significantly better than those of a single method. In addition, there have been a large number of experimental studies on the combination of active and passive methods, and the experimental results are better than those of a single method.
[0004] Due to the complex structure and high cost of magnetic shielding equipment, design improvements to compensation coils are increasingly being made. The working principle of a compensation coil is to pass a certain current through the coil. According to Biosafari's law, this current in the coil generates a certain magnetic field within a certain space. Turner et al. proposed the target field method for cylindrical coil design. This method, based on the Fourier transform of the current density function and the magnetic field distribution, creatively proposed a method for inversely solving the coil using a preset magnetic field distribution. This method has been widely used in coil design. M.A. Martens et al. extended the target field method to the design of dual-plane coils, proposing a form of the target field method in a Cartesian coordinate system. Dual-plane coils designed using the target field method provide sufficient space for MEG subjects and are therefore widely used in MEG research in magnetic shielding rooms. When Lu et al. tested MEG on subjects, they only measured 4Hz MEG due to large coil non-uniformity errors. Elena et al. tested MEG while subjects were performing natural movements, but the positioning of the dual-plane coils in the test system was not optimized, resulting in a static field fluctuating between 23nT and 1.6nT. Therefore, an ultra-high uniformity zone is crucial for MEG testing. The ultra-high uniformity coil proposed in this paper uses the target field method to set a uniform zone that meets MEG testing conditions based on the coil's symmetry. The bat optimization algorithm is then used to optimize the distances between the primary and secondary coils and the center point, ultimately resulting in a uniform zone with extremely low magnetic field error. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a method for designing an ultra-high uniformity coil system, which adopts a combination of active and passive methods to design an ultra-high uniformity coil system in a magnetic shielding cabin that can achieve a zero magnetic environment.
[0006] The technical solution adopted by the present invention is a method for designing an ultra-high uniformity coil system, which includes the following steps:
[0007] Step (1): arranging magnetic field coils in the x, y, and z directions to form a coil system. The magnetic field coil in each direction is composed of a primary coil and a secondary coil. The magnetic field coils are designed using the target field method. The specific process is as follows:
[0008] S1. Consider the magnetic field coil plane as a two-dimensional continuously distributed current flow function, and use the two-dimensional Fourier series to represent the current flow function, which is expressed as follows:
[0009] Where M and N both represent the order of Fourier expansion; α m and β m Both represent Fourier expansion coefficients; γ nand δ n denote the target coil stream function and the gradient coil stream function respectively; and Respectively represent the dimensions of the magnetic field coil along the X-axis and Y-axis directions; i=1,2, which represent the primary coil and the secondary coil respectively;
[0010] S2. According to the symmetry principle of the magnetic field coil, the current flow function is simplified to obtain a simplified current flow function, which is expressed as follows: in, represents the magnetic field of the magnetic field coil Bx in the X-axis direction; P mn The coefficient matrix representing the current stream function;
[0011] S3. Obtain the coefficient matrix P of the current flow function mn , the specific process is:
[0012] S3.1. According to the relationship between current density and stream function: Calculate the current density of the magnetic field coil Bx along the X-axis and Y-axis directions respectively. The expressions are:
[0013]
[0014] Where S represents the plane of the magnetic field coil;
[0015] S3.2. Construct the matrix of the current density of the magnetic field coil and the magnetic field at the target point. Its expression is: Where S represents the plane of the magnetic field coil; μ0 represents the magnetic permeability in vacuum; r represents the distance between the plane coil stream function and the target point; Indicates the coordinates of the target point;
[0016] S3.3. According to the Biot-Savart theorem: Combined with step S3.1 and step S3.2, the magnetic field of the magnetic field coil Bx is obtained, and its expression is:
[0017] in, represents the system matrix; Represents the target point coordinates of the target area; r i =(x i ,y i ,z i ) represents the plane coil stream function coordinates;
[0018] The magnetic field matrix representing the planar coil stream function and the target point; and Respectively representing the plane stream functions of the left and right coils of a set of planar coils and the magnetic field matrices of the target point, wherein the set of planar coils is a pair of primary coils or a pair of secondary coils;
[0019] S3.4. According to the magnetic field of the magnetic field coil Bx obtained in step 3.3, set the target magnetic field value and construct the equation to be solved: in, B target ∈R T×1 ;
[0020] S3.5. Introducing the coil curvature G into the equation to be solved mn is the penalty function term, forming a Tikhonov universal function, whose expression is: Among them, λ represents the weighting coefficient; E represents the error function; G mn represents the coil curvature,
[0021] S3.6, when When the coefficient matrix P is obtained mn :
[0022] S4, the coefficient matrix P obtained in step S3 mn Apply to the simplified current flow function in step S2 to obtain the current flow function of the magnetic field coil Bx;
[0023] S5. Convert the current flow function of the magnetic field coil Bx into K groups of discrete wires, and obtain the current proportional coefficient of the primary coil and the secondary coil: Where: Design the magnetic field coil according to the current proportional coefficient;
[0024] Step (2): The bat algorithm is used to optimize the distance Z1 from the primary coil to the midpoint of the target area and the distance Z2 from the secondary coil to the midpoint of the target area to determine the final ultra-high uniformity magnetic field coil.
[0025] The beneficial effects of the present invention are: the above-mentioned ultra-high uniformity coil system design method is adopted, and the method adopts a combination of active and passive methods to design a high-uniformity coil system. The designed planar coil has a low space occupancy rate and can provide a high-uniformity magnetic field in a larger area; the method adopts a pair of primary coils and a pair of secondary coils to work together, which can greatly improve the uniformity of the target area and achieve a zero-magnetic environment, providing a good testing environment for future mobile brain magnetoelastic testing experiments; the inverse design method is adopted to calculate the current density distribution at the location of the coil according to the magnetic field distribution required to be generated in the target area, and the specific structure of the coil winding can be obtained after discretizing the current density. It is an analysis from magnetic to electrical, which can fully guarantee the completeness of the target area and greatly improve the occupancy rate of the uniform area in the shielded room, thereby ensuring the effective range of MEG.
[0026] Preferably, the specific process of step (2) includes the following steps:
[0027] S6.1. Use the maximum error ME of the magnetic field value to evaluate the uniformity of the target area. The expression of the maximum error ME of the magnetic field value is: Among them, ε represents the magnetic field error between each point in the target area and the center point, which is used to reflect the uniformity of the magnetic field coil; B represents the magnetic field value generated by the magnetic field coil in the target area, B center Indicates the magnetic field value generated by the magnetic field coil at the center point. The larger ε is, the worse the uniformity is.
[0028] S6.2. Use the bat algorithm to calculate the maximum error ME of the optimal magnetic field value. The specific process is as follows:
[0029] S6.21. Take a set of random parameters [Z1, Z2] and calculate the maximum error ME of the corresponding magnetic field value;
[0030] S6.22, iteratively optimize step S6.21, and iteratively search for the maximum error ME of the optimal magnetic field value, wherein the maximum error ME of the optimal magnetic field value is the minimum value of the maximum error ME of the magnetic field value, and the search space is two-dimensional, and the iteration speed is and iteratively update the position Specifically expressed as:
[0031] f i =f min +(f max -f min )·β;
[0032]
[0033] Among them, β∈[-1,1] is a random number; X best is the current local optimal solution; f irepresents the frequency of bat sound waves, f i ∈[f max ,f min ]; When the current local optimal solution is determined, a new local solution is generated using a random walk method, and then the update is determined by comparing the size. The specific update rules for the bat sound wave loudness and frequency are expressed as follows:
[0034]
[0035] Among them, x new and x old Respectively represent the positions before and after the update; ε∈[-1,1] represents a random number; Indicates average loudness; represents the loudness of the t-th iteration; σ represents the loudness attenuation coefficient; γ represents the pulse rate delay factor; r 0 Indicates the initial value of the pulse rate;
[0036] S6.3. When the optimization is completed, ME = X best At this time, the corresponding [Z1, Z2] is the optimal distance from the primary coil to the midpoint of the target area and the distance from the secondary coil to the midpoint of the target area. The magnetic field coil position is set according to [Z1, Z2] to obtain the final ultra-high uniformity magnetic field coil.
[0037] In step S6, the bat algorithm is used to optimize the planar coil. The optimized coil can greatly improve the uniformity of the target area and realize an ultra-high uniformity magnetic field coil system. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Schematic diagram of the structure of the magnetic shielding cabin in the present invention;
[0039] Figure 2 This is a flow chart of a method for designing an ultra-high uniformity coil system according to the present invention;
[0040] Figure 3 Schematic diagram of the magnetic field distribution of the high-uniformity primary coil in the X-axis direction obtained through experiments in the present invention;
[0041] Figure 4 Schematic diagram of the magnetic field distribution of the high-uniformity secondary coil in the X-axis direction obtained through experiments in the present invention;
[0042] Figure 5 Schematic diagram of the magnetic field distribution of the high-uniformity primary coil in the Z-axis direction obtained through experiments in the present invention;
[0043] Figure 6 Schematic diagram of the magnetic field distribution of the high-uniformity secondary coil in the Z-axis direction obtained through experiments in the present invention;
[0044] Figure 7 Schematic diagram of the magnetic field distribution of a conventional magnetic field coil in the X-axis direction obtained through experiments in the present invention;
[0045] Figure 8 Schematic diagram of the magnetic field distribution of a conventional magnetic field coil in the Z-axis direction obtained through experiments in the present invention;
[0046] Figure 9 Schematic diagram of the target area error distribution of the ultra-high uniformity coil in the X-axis direction in the XOZ, XOY, and YOZ planes respectively;
[0047] Figure 10 Schematic diagram of target area error distribution of common coil in X-axis direction in XOZ, XOY and YOZ planes respectively;
[0048] Figure 11 Schematic diagram of the target area error distribution of the ultra-high uniformity coil in the Z-axis direction in the XOZ, XOY, and YOZ planes respectively;
[0049] Figure 12 Schematic diagram of target area error distribution of common coil in the Z-axis direction in XOZ, XOY, and YOZ planes respectively;
[0050] As shown in the figure: 1. Primary coil; 2. Secondary coil; 3. Uniform magnetic field area; 4. Magnetic shielding cabin. DETAILED DESCRIPTION
[0051] The invention will be further described below with reference to the accompanying drawings and in combination with specific implementations, so that those skilled in the art can implement the invention with reference to the description. The protection scope of the invention is not limited to the specific implementations.
[0052] The present invention relates to a method for designing an ultra-high uniformity coil system, which comprises:
[0053] Step (1): Figure 1 The magnetic shielding cabin shown in the figure has a coil system composed of magnetic field coils arranged in the x, y, and z directions. The magnetic field coil in each direction is composed of a primary coil and a secondary coil. The magnetic field coil is designed using the target field method. That is, by superimposing the magnetic fields generated by the primary and secondary coils in the target area, the equation solution has more degrees of freedom, thereby obtaining a coil with higher uniformity. Specifically, it is expressed as:
[0054] B1+B2→Constant (1)
[0055] Where B1 is the magnetic field generated by the primary coil in the target area, and B2 is the magnetic field generated by the secondary coil in the target area;
[0056] like Figure 2 As shown, the specific process includes the following steps:
[0057] S1. Consider the magnetic field coil plane as a two-dimensional continuously distributed current flow function, and use the two-dimensional Fourier series to represent the current flow function, which is expressed as follows:
[0058]
[0059] Where M and N both represent the order of Fourier expansion; α m and β m Both represent Fourier expansion coefficients; γ n and δ n denote the target coil stream function and the gradient coil stream function respectively; and Respectively represent the dimensions of the magnetic field coil along the X-axis and Y-axis directions; i=1,2, which represent the primary coil and the secondary coil respectively;
[0060] S2. According to the symmetry principle of the magnetic field coil, the current flow function is simplified to obtain a simplified current flow function, which is expressed as follows:
[0061]
[0062] in, represents the magnetic field of the magnetic field coil Bx in the X-axis direction; P mn The coefficient matrix representing the current stream function;
[0063] The symmetry principle of the magnetic field coil is as follows: the coil structure is symmetrical, and the magnetic field coil Bx and the magnetic field coil By in the Y-axis direction can be obtained by rotating each other by 90°. Usually, only the Bx and Bz coils need to be designed to meet the requirements. Therefore, this invention describes the design of the magnetic field coil in the X-axis direction. The symmetry principle of the planar coil design is as follows:
[0064] Coil type X-axis direction Y-axis direction Z-axis direction <![CDATA[B x ]]> Anti-symmetry symmetry Anti-symmetry <![CDATA[B y ]]> symmetry Anti-symmetry Anti-symmetry <![CDATA[B z ]]> symmetry symmetry symmetry
[0065] S3. Obtain the coefficient matrix P of the current flow function mn , the specific process is:
[0066] S3.1. According to the relationship between current density and stream function: Calculate the current density of the magnetic field coil Bx along the X-axis and Y-axis directions respectively. The expressions are:
[0067]
[0068] Where S represents the plane of the magnetic field coil;
[0069] In the calculation process of the target field method, the target area is usually discretized into T equally spaced target points. By presetting the magnetic field at the target points to a constant, the residual magnetic field at all target points is minimized to solve the coefficient matrix of the stream function, thereby obtaining the current stream function of the planar coil.
[0070] S3.2. Construct the matrix of the current density of the magnetic field coil and the magnetic field at the target point. Its expression is:
[0071]
[0072] Where S represents the plane of the magnetic field coil; μ0 represents the magnetic permeability in vacuum; r represents the distance between the plane coil stream function and the target point;
[0073] S3.3. According to the Biot-Savart theorem:
[0074]
[0075] Combined with step S3.1 and step S3.2, the magnetic field of the magnetic field coil Bx is obtained, and its expression is:
[0076]
[0077] in, represents the system matrix; Represents the target point coordinates of the target area; r i =(x i ,y i ,z i ) represents the plane coil stream function coordinates;
[0078]
[0079] in, The magnetic field matrix representing the plane stream function and the target point; and Respectively representing the plane stream functions of the left and right coils of a set of planar coils and the magnetic field matrices of the target point, wherein the set of planar coils is a pair of primary coils or a pair of secondary coils;
[0080] S3.4. According to the magnetic field of the magnetic field coil Bx obtained in step 3.3, set the target magnetic field value and construct the equation to be solved:
[0081]
[0082] in, B target ∈R T×1 ;
[0083] S3.5, the equation to be solved is solved by Tikhonov regularization because the matrix is ill-conditioned, that is, the coil curvature G is introduced mn is the penalty function term, forming a Tikhonov universal function, whose expression is:
[0084]
[0085] Among them, λ represents the weighting coefficient; E represents the error function; G mn represents the coil curvature,
[0086] S3.6, when When the coefficient matrix P is obtained mn :
[0087]
[0088] S4, the coefficient matrix P obtained in step S3 mn Apply to the simplified current flow function in step S2 to obtain the current flow function of the magnetic field coil Bx;
[0089] S5. Convert the current flow function of the magnetic field coil Bx into K groups of discrete wires, and obtain the current proportional coefficient of the primary coil and the secondary coil: Where: Design the magnetic field coil according to the current proportional coefficient;
[0090] Step (2): The bat algorithm is used to optimize the distance Z1 from the primary coil to the midpoint of the target area and the distance Z2 from the secondary coil to the midpoint of the target area to determine the final ultra-high uniformity magnetic field coil.
[0091] In this invention, the bat algorithm is used to optimize the above problem. The bat algorithm is based on iterative optimization, initialized to a set of random solutions, and then iteratively searches for the optimal solution. It also generates local new solutions by random flight around the optimal solution, thereby increasing the local search speed. The algorithm has the characteristics of simple implementation and few parameters. Figure 2 As shown, the specific design and optimization process is as follows:
[0092] S6.1. Use the maximum error ME of the magnetic field value to evaluate the uniformity of the target area. The expression of the maximum error ME of the magnetic field value is: Among them, ε represents the magnetic field error between each point in the target area and the center point, which is used to reflect the uniformity of the magnetic field coil; B represents the magnetic field value generated by the magnetic field coil in the target area, B centerIt represents the magnetic field value generated by the magnetic field coil at the center point. The larger ε is, the worse the uniformity is. When the optimal solution of ε is finally found, the magnetic field B at that time can also be determined. Finally, the optimal distance Z1 between the primary coil and the midpoint of the target area and the distance Z2 between the secondary coil and the midpoint of the target area can be determined.
[0093] S6.2. Use the bat algorithm to calculate the maximum error ME of the optimal magnetic field value. The specific process is as follows:
[0094] S6.21. Take a set of random parameters [Z1, Z2] and calculate the maximum error ME of the corresponding magnetic field value;
[0095] S6.22, iteratively optimize step S6.21, and iteratively search for the maximum error ME of the optimal magnetic field value, wherein the maximum error ME of the optimal magnetic field value is the minimum value of the maximum error ME of the magnetic field value, and the search space is two-dimensional, and the iteration speed is and iteratively update the position Specifically expressed as:
[0096] f i =f min +(f max -f min )·β;
[0097]
[0098] Among them, β∈[-1,1] is a random number; X best is the current local optimal solution; f i represents the bat sound wave frequency, f i ∈[f max ,f min ]; When the current local optimal solution is determined, a new local solution is generated using a random walk method, and then the update is determined by comparing the size. The specific update rules for the bat sound wave loudness and frequency are expressed as follows:
[0099]
[0100] Among them, x new and x old Respectively represent the positions before and after the update; ε∈[-1,1] represents a random number; Indicates average loudness; represents the loudness of the t-th iteration; σ represents the loudness attenuation coefficient; γ represents the pulse rate delay factor; r 0 Indicates the initial value of the pulse rate;
[0101] S6.3. When the optimization is completed, ME = X bestAt this time, the corresponding [Z1, Z2] is the optimal distance from the primary coil to the midpoint of the target area and the distance from the secondary coil to the midpoint of the target area. The magnetic field coil position is set according to [Z1, Z2] to obtain the final ultra-high uniformity magnetic field coil.
[0102] The reliability of the ultra-high uniformity coil system design method proposed in the present invention is verified by experiments below.
[0103] First, a set of magnetic field coils was designed for the MSR with a size of 1.5mx1.5mx2m. During the design process, we used an image method to consider the ferromagnetic boundary coupling effect and compared it with a conventional coil designed with a traditional target field under the same parameter conditions. Since the Bx and By coils can be obtained by rotating them 90°, we finally designed a high uniformity coil Bx, a high uniformity coil Bz, and a conventional coil Bx. c , conventional coil Bz c .
[0104] The ultra-high uniformity coil system design method proposed in this invention is used to design an ultra-high uniformity coil. The coil size is 750mm x 750mm, and the uniform area L target =40mm (40mmx40mmx40mm). Then the design calculation was carried out by Matlab. The target area was set to use T=125 evenly distributed target points, the Fourier order of the stream function was set to M=N=4, and the parameters of the optimized design were f i ∈[0,10],γ=0.001,r 0 =1, σ=0.9, A0=0.005, and the maximum number of iterations is 800. After iterative optimization design, the optimal solution is obtained. That is, the distance z from the primary coil to the center 1* and the distance z from the secondary coil to the center 2* Finally, we get high uniformity coils Bx and Bz, whose magnetic field distribution is as follows: Figures 3 to 6 As shown. At the same time, the distance z 1* As the coil distance of the conventional coil, the conventional coil Bx is obtained c and conventional coil Bz c , its magnetic field distribution is as follows Figures 7 and 8 shown.
[0105] Electromagnetic simulation software was used to analyze both standard and ultra-high uniformity coils within the shielding chamber. The advantages of the ultra-high uniformity coils were verified by comparing their uniformity within the target area. In the finite element simulation, the shielding layer thickness and relative magnetic permeability were set to 5mm and 50,000, respectively. The conductor current was measured as a line current. The infinite element domain was set as the boundary condition, and the mesh type was a tetrahedral mesh. To ensure simulation accuracy, the maximum size was 15mm, the minimum size was 0.2mm, and the remainder was air.
[0106] Finite element analysis is performed using the above settings. Figures 9 to 12 They are high uniformity coil Bx, high uniformity coil Bz, and conventional coil Bx c , conventional coil Bz c The figure shows the 1% relative error equipotential lines, with the target area represented by the solid line. Comparing the simulation results, the ultra-high uniformity coil shows smaller errors in the target area in all three planes than the conventional coil, indicating higher uniformity. Conventional coils exhibit significantly larger and more uneven errors at the boundaries of the target area.
Claims
1. A method for designing an ultra-high uniformity coil system, characterized in that: The method comprises the following steps: Step (i), respectively arranging magnetic field coils in the x, y, and z directions to form a coil system, wherein the magnetic field coil in each direction is composed of a primary coil and a secondary coil; the magnetic field coil is designed by the target field method, and the specific process is as follows: S1. Consider the magnetic field coil plane as a two-dimensional continuously distributed current flow function, and use the two-dimensional Fourier series to represent the current flow function, which is expressed as follows: Where M and N both represent the order of Fourier expansion; α m and β m Both represent Fourier expansion coefficients; γ n and δ n denote the target coil stream function and the gradient coil stream function respectively; and Respectively represent the dimensions of the magnetic field coil along the X-axis and Y-axis directions; i=1,2, which represent the primary coil and the secondary coil respectively; S2. According to the symmetry principle of the magnetic field coil, the current flow function is simplified to obtain a simplified current flow function, the expression of which is: in, represents the magnetic field of the magnetic field coil Bx in the X-axis direction; P mn The coefficient matrix representing the current stream function; S3. Obtain the coefficient matrix P of the current flow function mn , the specific process is: S3.
1. According to the relationship between current density and stream function: J = ▽ × S, calculate the current density of the magnetic field coil Bx along the X-axis and Y-axis directions respectively. The expression is: Where S represents the plane of the magnetic field coil; S3.
2. Construct the matrix of the current density of the magnetic field coil and the magnetic field at the target point, which is expressed as follows: Where S represents the plane of the magnetic field coil; μ0 represents the magnetic permeability in vacuum; r represents the distance between the plane coil stream function and the target point, Indicates the coordinates of the target point; S3.
3. According to the Biot-Savart theorem: Combined with step S3.1 and step S3.2, the magnetic field of the magnetic field coil Bx is obtained, and its expression is: in, represents the system matrix; Represents the target point coordinates of the target area; r i =(x i ,y i ,z i ) represents the plane coil stream function coordinates; The magnetic field matrix representing the planar coil stream function and the target point; and Respectively representing the plane stream functions of the left and right coils of a set of planar coils and the magnetic field matrix of the target point, wherein the set of planar coils is a pair of primary coils or a pair of secondary coils; S3.
4. According to the magnetic field of the magnetic field coil Bx obtained in step 3.3, set the target magnetic field value and construct the equation to be solved: in, S3.
5. Introducing the coil curvature G into the equation to be solved mn is the penalty function term, forming a Tikhonov universal function, whose expression is: Among them, λ represents the weighting coefficient; E represents the error function; G mn represents the coil curvature, S3.
6. When When , we get the coefficient matrix S4, the coefficient matrix P obtained in step S3 mn Apply to the simplified current flow function in step S2 to obtain the current flow function of the magnetic field coil Bx; S5. Convert the current flow function of the magnetic field coil Bx into K groups of discrete wires, and obtain the current proportional coefficient of the primary coil and the secondary coil: Where: Design the magnetic field coil according to the current proportionality coefficient; Step (ii): using the bat algorithm to optimize the distance Z1 from the primary coil to the midpoint of the target area and the distance Z2 from the secondary coil to the midpoint of the target area, and determining the final ultra-high uniformity magnetic field coil.
2. The method for designing an ultra-high uniformity coil system according to claim 1, characterized in that: The specific process of step (ii) includes the following steps: S6.
1. Use the maximum error ME of the magnetic field value to evaluate the uniformity of the target area. The expression of the maximum error ME of the magnetic field value is: Among them, ε represents the magnetic field error between each point in the target area and the center point, which is used to reflect the uniformity of the magnetic field coil; B represents the magnetic field value generated by the magnetic field coil in the target area, B center Indicates the magnetic field value generated by the magnetic field coil at the center point. The larger ε is, the worse the uniformity is. S6.
2. Use the bat algorithm to calculate the maximum error ME of the optimal magnetic field value. The specific process is as follows: S6.21, take a set of random parameters [Z1, Z2], and calculate the maximum error ME of the corresponding magnetic field value; S6.22, iteratively optimize step S6.21, and iteratively search for the maximum error ME of the optimal magnetic field value, wherein the maximum error ME of the optimal magnetic field value is the minimum value of the maximum error ME of the magnetic field value, and the search space is two-dimensional, and the iteration speed is and iteratively update the position Specifically expressed as: f i =f min +(f max -f min )·β; Among them, β∈[-1,1] is a random number; X best is the current local optimal solution; f i represents the frequency of bat sound waves, f i ∈[f max ,f min ]; When the current local optimal solution is determined, a new local solution is generated using a random walk, and then the update is determined by comparing the size. The specific update rules for the bat sound wave loudness and frequency are as follows: Among them, x new and x old Respectively represent the positions before and after the update; ε∈[-1,1] represents a random number; Indicates average loudness; represents the loudness of the t-th iteration; σ represents the loudness attenuation coefficient; γ represents the pulse rate delay factor; r 0 Indicates the initial value of the pulse rate; S6.3, when the optimization is completed, ME = X best At this time, the corresponding [Z1, Z2] is the optimal distance from the primary coil to the midpoint of the target area and the distance from the secondary coil to the midpoint of the target area. The magnetic field coil position is set according to [Z1, Z2] to obtain the final ultra-high uniformity magnetic field coil.
Citation Information
Cited By
Fingerprint-shaped vector magnet and acquisition method thereof
CN120072458A
A fingerprint-shaped vector magnet
CN120072458B
