Method, device, electronic equipment and storage medium for adjusting magnetic field uniformity
By detecting the magnetic field distribution of the magnet target area and calculating the sensitivity coefficient matrix, establishing a shim planning model, and adjusting the magnetic field in batches, the problem of poor magnetic field uniformity adjustment effect in superconducting magnetic resonance imaging system is solved, and a more efficient magnetic field is achieved Adjust uniformity.
Patent Information
- Application Number
- CN202411230908.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-04
AI Technical Summary
In the prior art, the magnetic field uniformity adjustment effect is poor, which causes the magnetic field distribution of the superconducting magnetic resonance imaging system to deviate from the design distribution, affecting the imaging quality.
By detecting the magnetic field distribution of the magnet target area, the sensitivity coefficient matrix of the shim sheet under the column coordinate system is calculated, and a shim planning model is established based on the magnetic field distribution, sensitivity coefficient matrix and available thickness, and the magnetic field is used in batches using the thickness of the shim groove to perform the magnetic field. Adjust until the preset magnetic field uniformity condition is reached.
The amount of shim sheet is effectively reduced, the accuracy and efficiency of adjusting magnetic field uniformity are improved, and the problem of poor shim effect in the prior art is solved.
Smart Images

Figure CN118731808B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of magnetic field adjustment technology, and in particular to a method, device, electronic device and storage medium for adjusting magnetic field uniformity. Background Art
[0002] The core component of the superconducting MRI system is the superconducting magnet, which is used to construct a highly uniform magnetic field in the DSV (Diameter of Spherical Volume, the spherical area imaged at the center of the warm hole) imaging area. The more uniform the magnetic field, the fewer image artifacts there are during imaging, the clearer the image is, and the more helpful it is for doctors to make accurate diagnoses based on the image. However, due to errors in the manufacturing process and material magnetism, the actual magnetic field distribution will deviate far from the designed magnetic field distribution, such as the actual winding arrangement offset during winding, the relative position offset of the coil during assembly, and the weak magnetism of the skeleton and other materials, which will affect the final magnetic field distribution.
[0003] The offset of the magnetic field needs to be compensated by additional components that generate the magnetic field. This process is called the shimming process. Among them, passive shimming is low in cost and high in operability, and is widely used. However, in the prior art, it is usually preferred to directly fill the shimming plates with shim slots with larger sensitivity coefficients, which makes the spatial distribution of the shim plates unreasonable, consumes a large number of shim plates, and has a poor shimming effect. Summary of the invention
[0004] In view of this, the present application provides a method, device, electronic device and storage medium for adjusting magnetic field uniformity to solve the problem of poor field uniformity effect in the prior art.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] The first aspect of the present application discloses a method for adjusting magnetic field uniformity, comprising:
[0007] Detecting magnetic field distribution in the target area of the magnet;
[0008] Calculating a sensitivity coefficient matrix of a shim in a cylindrical coordinate system; wherein the shim is used to adjust the uniformity of the magnetic field in the target area;
[0009] n / k of the maximum thickness of the shim slot is taken as the available thickness of the shim slot; wherein the shim slot is used to fill the shim sheet; the available thickness is the thickness of the shim slot that can be used to fill the shim sheet; n is the number of shimming times, and k is a preset positive integer greater than 1;
[0010] Establishing a shimming planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness;
[0011] shimming the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming;
[0012] If the magnetic field uniformity meets the preset condition, the adjustment of the magnetic field uniformity is completed;
[0013] If the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shimming planning model is updated based on the parameters of the magnet target area after shimming, and the process of shimming the magnet target area using the shimming planning model is returned to execute to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
[0014] Optionally, the above method further includes:
[0015] If the magnetic field uniformity does not meet the preset conditions and the available thickness reaches the maximum thickness, the constraint condition of changing the number of shim slots is added to the shim planning model, and the process of shimming the magnet target area using the shim planning model is returned to execute to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions.
[0016] Optionally, in the above method, the step of shimming the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming includes:
[0017] The shim planning model is used to calculate and obtain a shim distribution matrix;
[0018] Filling the shims based on the shim distribution matrix, and detecting the magnetic field distribution of the magnet target area after the shims are filled;
[0019] The magnetic field uniformity is determined based on the magnetic field distribution after the magnet target area is filled with the shims.
[0020] Optionally, in the above method, the updating of the shimming planning model based on the parameters of the magnet target area after shimming includes:
[0021] Updating the spatial coordinates of the shims, and recalculating the sensitivity coefficient matrix based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix;
[0022] updating the available thickness based on the number of shimming times to obtain an updated available thickness;
[0023] The shimming planning model is updated based on the magnetic field distribution of the magnet target area after the shims are filled, the updated sensitivity coefficient matrix and the updated available thickness.
[0024] The second aspect of the present application discloses a device for adjusting magnetic field uniformity, comprising:
[0025] A detection unit, used to detect the magnetic field distribution in the target area of the magnet;
[0026] A calculation unit, used to calculate a sensitivity coefficient matrix of a shim in a cylindrical coordinate system; wherein the shim is used to adjust the uniformity of the magnetic field in the target area;
[0027] A determination unit is used to take n / k of the maximum thickness of the shim slot as the available thickness of the shim slot; wherein the shim slot is used to fill the shim sheet; the available thickness is the thickness of the shim slot that can be used to fill the shim sheet; n is the number of shimming times, and k is a preset positive integer greater than 1;
[0028] An establishing unit, configured to establish a shimming planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness;
[0029] A shimming unit, used for shimming the magnet target area by using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming;
[0030] an ending unit, configured to complete the adjustment of the magnetic field uniformity if the magnetic field uniformity meets a preset condition;
[0031] The first adjustment unit is used to update the shimming planning model based on the parameters of the magnet target area after shimming if the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, and return to execute the shimming of the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
[0032] Optionally, the above device further includes:
[0033] The second adjustment unit is used to add the constraint condition of changing the number of shim slots into the shim planning model if the magnetic field uniformity does not meet the preset condition and the available thickness reaches the maximum thickness, and return to execute the shim planning model to shim the magnet target area to obtain the magnetic field uniformity of the magnet target area after shim, until the magnetic field uniformity meets the preset condition.
[0034] Optionally, in the above-mentioned device, the shimming unit comprises:
[0035] A calculation subunit, used for calculating a shim distribution matrix using the shim planning model;
[0036] A detection subunit, configured to fill the shims based on the shim distribution matrix and detect the magnetic field distribution of the magnet target area after the shims are filled;
[0037] The determination subunit is used to determine the magnetic field uniformity based on the magnetic field distribution after the shims are filled in the target area of the magnet.
[0038] Optionally, in the above device, the first adjustment unit includes:
[0039] A first updating subunit is used to update the spatial coordinates of the shims and recalculate the sensitivity coefficient matrix based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix;
[0040] A second updating subunit, configured to update the available thickness based on the number of shimming times to obtain an updated available thickness;
[0041] The third updating subunit is used to update the shimming planning model based on the magnetic field distribution of the magnet target area after the shimming pieces are filled, the updated sensitivity coefficient matrix and the updated available thickness.
[0042] The third aspect of the present application discloses an electronic device, comprising:
[0043] one or more processors;
[0044] a storage device having one or more programs stored thereon;
[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.
[0046] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.
[0047] It can be seen from the above technical scheme that the present application provides a method for adjusting the uniformity of a magnetic field. First, the magnetic field distribution of the target area of the magnet is detected, the sensitivity coefficient matrix of the shim sheet in the cylindrical coordinate system is calculated, and the maximum thickness n / k of the shim slot is taken as the available thickness of the shim slot. Then, a shim planning model is established based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness. The target area of the magnet is shimmed using the shim planning model to obtain the uniformity of the magnetic field after shimming the target area of the magnet. If the uniformity of the magnetic field meets the preset conditions, the adjustment of the uniformity of the magnetic field is completed; if the uniformity of the magnetic field does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shim planning model is updated based on the parameters of the target area of the magnet after shimming, and the shim planning model is returned to perform shimming on the target area of the magnet, and the uniformity of the magnetic field after shimming the target area of the magnet is obtained, until the uniformity of the magnetic field meets the preset conditions, or the available thickness reaches the maximum thickness. It can be seen from this that the scheme of the present application can utilize the shim slot with a smaller sensitivity coefficient to a greater extent by utilizing the thickness of the shim slot in batches, so that the spatial distribution of the shim sheet is more reasonable, and the amount of the shim sheet can be greatly reduced. The problem of poor field shimming effect in the prior art is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 A flowchart of a method for adjusting magnetic field uniformity disclosed in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a shim sheet, a shim strip, and a shim slot disclosed in another embodiment of the present application;
[0051] Figure 3 A comparison diagram of shim distribution disclosed in another embodiment of the present application;
[0052] Figure 4 A comparison diagram of magnetic field distribution disclosed in another embodiment of the present application;
[0053] Figure 5 A schematic diagram of a method and device for adjusting interface color disclosed in another embodiment of the present application;
[0054] Figure 6 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0057] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0058] As can be seen from the background technology, in the prior art, shim slots with larger sensitivity coefficients are usually directly filled with shim plates, which makes the spatial distribution of shim plates unreasonable, consumes a large number of shim plates, and has a poor shim effect.
[0059] In view of this, the present application provides a method, device, electronic device and storage medium for adjusting magnetic field uniformity to solve the problem of poor field uniformity effect in the prior art.
[0060] The first aspect of the present application discloses a method for adjusting magnetic field uniformity, such as Figure 1 As shown, specifically including:
[0061] S101, detecting the magnetic field distribution in the target area of the magnet.
[0062] It should be noted that the magnetic field distribution of the target area of the magnet is first detected, for example, the initial magnetic field distribution of the DSV area of the magnet is measured by using a magnetic field tester, which is recorded as B0.
[0063] S102, calculating a sensitivity coefficient matrix of shims in a cylindrical coordinate system; wherein the shims are used to adjust the uniformity of the magnetic field in the target area.
[0064] It should be noted that the derivation process of the sensitivity coefficient expression in the cylindrical coordinate system is as follows:
[0065] Magnetic dipole at On-site point The scalar magnetic potential generated at can be expressed as:
[0066]
[0067] Among them, R represents the distance from the source point Q to the field point, It means to find the gradient of point Q, and the expression of R is:
[0068]
[0069] The relationship between magnetic scalar potential and magnetic induction intensity is:
[0070]
[0071] in, is the magnetic scalar potential, and B is the magnetic induction intensity.
[0072] Therefore, the sensitivity coefficient expression in the cylindrical coordinate system is:
[0073]
[0074] Where Si represents the area of the shim, di represents the thickness of the shim, is the magnetization intensity of the shim. Compared with the expression in the spherical coordinate system commonly used in the prior art, the amount of calculation is greatly reduced.
[0075] Assuming there are 24*16 magnetic field test points, the sensitivity coefficient matrix should be a (24*16)*(24*32) matrix. It represents the sensitivity coefficient matrix of the shim plate in the i-th shim slot to the j-th field point.
[0076] It should also be noted that if Figure 2 As shown, 24 shim bars are evenly distributed along the circumference in the magnet warm hole. Each shim bar contains 32 shim slots. Shim plates can be filled in the shim slots. The spatial distribution of the shim plates in the shim slots needs to be calculated. The magnetic field generated by the shim plates is superimposed on the initial magnetic field to generate a new uniform field, so as to adjust the uniformity of the magnetic field.
[0077] S103, taking n / k of the maximum thickness of the shim slot as the available thickness of the shim slot; wherein the shim slot is used to fill shim sheets; the available thickness is the thickness of the shim slot that can be used to fill shim sheets; n is the number of shimming times, and k is a preset positive integer greater than 1.
[0078] It should be noted that, in the shimming process, n / k of the maximum thickness of the shimming slot is taken as the available thickness of the shimming slot, and k can be set according to actual needs. In this embodiment and the following embodiments, k=3 is taken as an example. Then, the first shimming is to take 1 / 3 of the maximum thickness of the shimming slot as the available thickness of the shimming slot, the second shimming is to take 2 / 3 of the maximum thickness of the shimming slot as the available thickness of the shimming slot, and so on.
[0079] S104, establishing a shim planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness.
[0080] It should be noted that the shimming planning model is established based on the magnetic field distribution, sensitivity coefficient matrix and available thickness:
[0081]
[0082] in, is the objective function of linear programming, and the following three inequalities are the constraints of linear programming (the first and second inequalities represent the range constraints of the magnetic field at the target field point, and the third inequality represents the constraint on the maximum thickness of the shim sheet that each shim slot can accommodate), d is the maximum thickness of the shim sheet that each shim slot can accommodate, and only 1 / 3 of the maximum thickness is used for the first time. is the magnetic field intensity at the jth field point, is the average magnetic field strength, is the desired magnetic field uniformity.
[0083] The essence of shimming linear programming is to use the least number of shims to achieve the constraints. Therefore, the result must be to fill the shim slots with larger sensitivity coefficients to maximize the benefits. However, the actual distribution of the magnetic field generated often has large errors compared with the theoretical calculation. These errors come from: 1. There is a certain difference between the magnetization intensity of the theoretical shim and the actual magnetization intensity. 2. There is a certain deviation between the actual position of the shim and the theoretical position. 3. There are differences in thickness and magnetic properties between different shims. These errors require repeated iterative optimization and multiple shimming to eliminate.
[0084] The third constraint of the conventional linear programming for shimming in the first shimming is If the shim slots with larger sensitivity coefficients are filled up at the first time, the disadvantages are: 1. It is equivalent to making the r coordinates of all shim sheets the same in the cylindrical coordinate system. However, as the filling thickness increases, the r component of the spatial position of the shim sheet is constantly increasing or decreasing, which will lead to large errors when calculating the sensitivity coefficient matrix. 2. In the subsequent shim process, it is impossible for these shim slots to correct the magnetic field by adding shim sheets, which is equivalent to reducing the degree of freedom of the decision variables in the optimization process.
[0085] The linear programming of shimming in this application will utilize the thickness of the shimming slots in batches, which can bring the following advantages:
[0086] 1. The spatial r coordinate position of the shim can be updated every time, and the calculation of the sensitivity coefficient matrix is more accurate, reducing the error; 2. The shim slots with smaller sensitivity coefficients can be used to a greater extent, making the spatial distribution of the shims more reasonable; 3. The shim slots with larger sensitivity coefficients can still correct the magnetic field by adding shims, increasing the degree of freedom of the decision variables; 4. Since the shimming error of the first step is small and the shim space is used to the maximum extent in batches, the amount of shims used will also be greatly reduced, as shown in Table 1.
[0087] Table 1
[0088] 487ppm initial field Magnetic field uniformity after shimming (ppm) Shim sheet quantity (mm) The shimming method of the present invention 3.77 1042.8 Traditional shimming method 9.8 1380.5
[0089] S105 , shimming the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming.
[0090] It should be noted that the shimming planning model is used to determine the planning of shim distribution in the magnet target area, so as to shim the magnet target area and detect the magnetic field uniformity of the magnet target area after shimming.
[0091] Optionally, in another embodiment of the present application, an implementation of step S105 may include:
[0092] The shim distribution matrix is calculated using the shim planning model.
[0093] Shims are filled based on the shim distribution matrix, and the magnetic field distribution of the target area of the magnet after the shims are filled is detected.
[0094] The magnetic field uniformity is determined based on the magnetic field distribution after the magnet target area is filled with shims.
[0095] It should be noted that the shim planning model is used to calculate the shim distribution matrix that meets the above constraints, and then the shims are filled into the shim slots based on the shim distribution matrix, and the magnetic field distribution of the magnet target area after the shims are filled is detected, and finally the magnetic field uniformity is obtained based on the magnetic field distribution of the magnet target area after the shims are filled.
[0096] S106: If the magnetic field uniformity meets the preset conditions, the magnetic field uniformity is adjusted.
[0097] It should be noted that if the magnetic field uniformity meets the preset conditions, the adjustment of the magnetic field uniformity in the target area of the magnet is completed, wherein the preset conditions can be set according to actual conditions, for example, the magnetic field uniformity is less than 10ppm.
[0098] S107. If the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shimming planning model is updated based on the parameters of the magnet target area after shimming, and the process returns to execute shimming of the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
[0099] It should be noted that if the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shimming planning model is updated based on parameters such as the magnetic field distribution after shimming in the magnet target area, the sensitivity coefficient matrix of the shimming sheet, and the available thickness of the shimming slot, and the process returns to step S105 until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
[0100] Optionally, in another embodiment of the present application, an implementation of updating the shimming planning model based on the parameters after shimming of the magnet target area in step S107 includes:
[0101] The spatial coordinates of the shims are updated, and the sensitivity coefficient matrix is recalculated based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix.
[0102] The available thickness is updated based on the number of shimming times to obtain an updated available thickness.
[0103] The shimming planning model is updated based on the magnetic field distribution after the shimming pieces are filled in the target area of the magnet, the updated sensitivity coefficient matrix and the updated available thickness.
[0104] It should be noted that when a second shimming is required after the first shimming, the space r coordinate of the shimming piece is updated to , then based on the updated spatial coordinates, the sensitivity coefficient matrix is recalculated using the above sensitivity coefficient matrix formula to obtain an updated sensitivity coefficient matrix. Then the available thickness is updated based on the number of shimming times to obtain an updated available thickness, that is, the current updated available thickness is 2 / 3 of the maximum thickness of the shimming slot. Finally, based on the magnetic field distribution after the shimming pieces are filled in the magnet target area, the updated sensitivity coefficient matrix and the updated available thickness, the three constraints in the above shimming planning model are updated.
[0105] Optionally, in another embodiment of the present application, the method for adjusting the magnetic field uniformity may further include:
[0106] If the magnetic field uniformity does not meet the preset conditions and the available thickness reaches the maximum thickness, the constraint condition of changing the number of shim slots is added to the shim planning model, and the shim planning model is used to perform shimming on the target magnet area to obtain the magnetic field uniformity after shimming of the target magnet area until the magnetic field uniformity meets the preset conditions.
[0107] It should be noted that if the magnetic field uniformity does not meet the preset conditions and the available thickness of the shim slots has reached the maximum thickness, a constraint on the number of shim slots to be changed is added to the above shim planning model:
[0108]
[0109] in, Indicates the number of shim slices at position i in this shim, Indicates the number of shims at position i of the last shimming. As long as shims are added, there will be an error between the actual magnetic field value and the theoretical value, so it is necessary to gradually reduce the error by continuously reducing the number of changes in the shim slots. Return to step S105, fill the shims according to the calculated shim distribution matrix, record the number L of shim slots equipped with shims, and detect the magnetic field distribution after the shims are filled in the target area of the magnet until the magnetic field uniformity meets the preset conditions.
[0110] After performing the above steps approximately three times, the magnetic field uniformity is reduced from 467 ppm to 3.77 ppm, and the total thickness of the shim sheets is 1042.8 mm.
[0111] If the general shimming process is used, the magnetic field uniformity can only reach 9.8ppm, and the amount of shimming film used is as high as 1380.5mm.
[0112] The final shim distribution is compared to Figure 3 As shown, the magnetic field distribution is Figure 4 shown.
[0113] The present application provides a method for adjusting the uniformity of a magnetic field. First, the magnetic field distribution of a target area of a magnet is detected, the sensitivity coefficient matrix of a shim sheet in a cylindrical coordinate system is calculated, and the maximum thickness n / k of a shim slot is taken as the available thickness of the shim slot. Then, a shim planning model is established based on the magnetic field distribution, the sensitivity coefficient matrix, and the available thickness. The target area of the magnet is shimmed using the shim planning model to obtain the uniformity of the magnetic field after shimming the target area of the magnet. If the uniformity of the magnetic field meets the preset conditions, the adjustment of the uniformity of the magnetic field is completed; if the uniformity of the magnetic field does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shim planning model is updated based on the parameters of the target area of the magnet after shimming, and the shim planning model is returned to perform shimming on the target area of the magnet, and the uniformity of the magnetic field after shimming the target area of the magnet is obtained, until the uniformity of the magnetic field meets the preset conditions, or the available thickness reaches the maximum thickness. It can be seen from this that the scheme of the present application can utilize the shim slot with a smaller sensitivity coefficient to a greater extent by utilizing the thickness of the shim slot in batches, so that the spatial distribution of the shim sheet is more reasonable, and the amount of the shim sheet can be greatly reduced. The problem of poor field shimming effect in the prior art is solved.
[0114] Another embodiment of the present application further provides a device for adjusting magnetic field uniformity, such as Figure 5 As shown, including:
[0115] The detection unit 501 is used to detect the magnetic field distribution in the target area of the magnet.
[0116] The calculation unit 502 is used to calculate the sensitivity coefficient matrix of the shim in the cylindrical coordinate system; wherein the shim is used to adjust the magnetic field uniformity of the target area.
[0117] The determination unit 503 is used to take n / k of the maximum thickness of the shim slot as the available thickness of the shim slot; wherein the shim slot is used to fill the shim sheet; the available thickness is the thickness of the shim slot that can be used to fill the shim sheet; n is the number of shimming times, and k is a preset positive integer greater than 1.
[0118] The establishing unit 504 is used to establish a shimming planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness.
[0119] The shimming unit 505 is used to shim the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming.
[0120] The ending unit 506 is used to complete the adjustment of the magnetic field uniformity if the magnetic field uniformity meets the preset condition.
[0121] The first adjustment unit 507 is used to update the shimming planning model based on the parameters of the magnet target area after shimming if the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, and return to execute the shimming planning model to shim the magnet target area to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
[0122] In this embodiment, the specific execution process of the detection unit 501, the calculation unit 502, the determination unit 503, the establishment unit 504, the shimming unit 505, the ending unit 506 and the first adjustment unit 507 can be referred to the corresponding Figure 1 The content of the method embodiment will not be repeated here.
[0123] The present application provides a device for adjusting magnetic field uniformity. The detection unit 501 first detects the magnetic field distribution of the target area of the magnet, the calculation unit 502 calculates the sensitivity coefficient matrix of the shim sheet in the cylindrical coordinate system, and the determination unit 503 takes the maximum thickness n / k of the shim slot as the available thickness of the shim slot. Then the establishment unit 504 establishes a shim planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness. The shim unit 505 shims the target area of the magnet using the shim planning model to obtain the magnetic field uniformity of the target area of the magnet after shimming. If the magnetic field uniformity meets the preset conditions, the end unit 506 completes the adjustment of the magnetic field uniformity; if the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, the first adjustment unit 507 updates the shim planning model based on the parameters of the target area of the magnet after shimming, and returns to execute the shim planning model to shim the target area of the magnet to obtain the magnetic field uniformity of the target area of the magnet after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness. It can be seen that the solution of the present application can utilize shim slots with smaller sensitivity coefficients to a greater extent by utilizing the thickness of the shim slots in stages, making the spatial distribution of shims more reasonable and significantly reducing the amount of shims used, thus solving the problem of poor shimming effect in the prior art.
[0124] Optionally, in another embodiment of the present application, the magnetic field uniformity adjustment device may further include:
[0125] The second adjustment unit is used to add the constraint condition of changing the number of shim slots into the shim planning model if the magnetic field uniformity does not meet the preset conditions and the available thickness reaches the maximum thickness, and return to execute the shim planning model to shim the magnet target area to obtain the magnetic field uniformity of the magnet target area after shim, until the magnetic field uniformity meets the preset conditions.
[0126] In this embodiment, the specific execution process of the second adjustment unit can refer to the corresponding method embodiment content above, which will not be repeated here.
[0127] Optionally, in another embodiment of the present application, an implementation of the above-mentioned shimming unit 505 may include:
[0128] The calculation subunit is used to calculate the shim distribution matrix using the shim planning model.
[0129] The detection subunit is used to fill the shims based on the shim distribution matrix and detect the magnetic field distribution of the target area of the magnet after the shims are filled.
[0130] The determination subunit is used to determine the magnetic field uniformity based on the magnetic field distribution after the shim pieces are filled in the target area of the magnet.
[0131] In this embodiment, the specific execution process of the calculation subunit, the detection subunit and the determination subunit can be found in the corresponding method embodiments described above, and will not be repeated here.
[0132] Optionally, in another embodiment of the present application, an implementation of the first adjustment unit 507 may include:
[0133] The first updating subunit is used to update the spatial coordinates of the shim film and recalculate the sensitivity coefficient matrix based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix.
[0134] The second updating subunit is used to update the available thickness based on the number of shimming times to obtain an updated available thickness.
[0135] The third updating subunit is used to update the shimming planning model based on the magnetic field distribution after the shimming pieces are filled in the magnet target area, the updated sensitivity coefficient matrix and the updated available thickness.
[0136] In this embodiment, the specific execution process of the first updating subunit, the second updating subunit and the third updating subunit can refer to the corresponding method embodiment content, which will not be repeated here.
[0137] Another embodiment of the application also provides an electronic device, such as Figure 6 As shown, specifically including:
[0138] One or more processors 601 .
[0139] The storage device 602 stores one or more programs.
[0140] When one or more programs are executed by one or more processors 601 , the one or more processors 601 implement any one of the methods in the above embodiments.
[0141] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.
[0142] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0143] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0144] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for adjusting magnetic field uniformity, characterized in that: include: Detecting magnetic field distribution in the target area of the magnet; Calculating a sensitivity coefficient matrix of a shim in a cylindrical coordinate system; wherein the shim is used to adjust the uniformity of the magnetic field in the target area; n / k of the maximum thickness of the shim slot is taken as the available thickness of the shim slot; wherein the shim slot is used to fill the shim sheet; the available thickness is the thickness of the shim slot that can be used to fill the shim sheet; n is the number of shimming times, and k is a preset positive integer greater than 1; Establishing a shimming planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness; shimming the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming; If the magnetic field uniformity meets the preset condition, the adjustment of the magnetic field uniformity is completed; If the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, the shimming planning model is updated based on the parameters of the magnet target area after shimming, and the process of shimming the magnet target area using the shimming planning model is returned to execute to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
2. The method according to claim 1, characterized in that Also includes: If the magnetic field uniformity does not meet the preset conditions and the available thickness reaches the maximum thickness, the constraint condition of changing the number of shim slots is added to the shim planning model, and the process of shimming the magnet target area using the shim planning model is returned to execute to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions.
3. The method according to claim 1, characterized in that The step of shimming the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming includes: The shim planning model is used to calculate and obtain a shim distribution matrix; Filling the shims based on the shim distribution matrix, and detecting the magnetic field distribution of the magnet target area after the shims are filled; The magnetic field uniformity is determined based on the magnetic field distribution after the magnet target area is filled with the shims.
4. The method according to claim 3, characterized in that: The updating of the shimming planning model based on the parameters of the magnet target area after shimming includes: Updating the spatial coordinates of the shims, and recalculating the sensitivity coefficient matrix based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix; updating the available thickness based on the number of shimming times to obtain an updated available thickness; The shimming planning model is updated based on the magnetic field distribution of the magnet target area after the shims are filled, the updated sensitivity coefficient matrix and the updated available thickness.
5. A device for adjusting magnetic field uniformity, characterized in that: include: A detection unit, used to detect the magnetic field distribution in the target area of the magnet; A calculation unit, used to calculate a sensitivity coefficient matrix of a shim in a cylindrical coordinate system; wherein the shim is used to adjust the uniformity of the magnetic field in the target area; A determination unit is used to take n / k of the maximum thickness of the shim slot as the available thickness of the shim slot; wherein the shim slot is used to fill the shim sheet; the available thickness is the thickness of the shim slot that can be used to fill the shim sheet; n is the number of shimming times, and k is a preset positive integer greater than 1; An establishing unit, configured to establish a shimming planning model based on the magnetic field distribution, the sensitivity coefficient matrix and the available thickness; A shimming unit, used for shimming the magnet target area by using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming; an ending unit, configured to complete the adjustment of the magnetic field uniformity if the magnetic field uniformity meets a preset condition; The first adjustment unit is used to update the shimming planning model based on the parameters of the magnet target area after shimming if the magnetic field uniformity does not meet the preset conditions and the available thickness does not reach the maximum thickness, and return to execute the shimming of the magnet target area using the shimming planning model to obtain the magnetic field uniformity of the magnet target area after shimming, until the magnetic field uniformity meets the preset conditions or the available thickness reaches the maximum thickness.
6. The device according to claim 5, characterized in that Also includes: The second adjustment unit is used to add the constraint condition of changing the number of shim slots into the shim planning model if the magnetic field uniformity does not meet the preset condition and the available thickness reaches the maximum thickness, and return to execute the shim planning model to shim the magnet target area to obtain the magnetic field uniformity of the magnet target area after shim, until the magnetic field uniformity meets the preset condition.
7. The device according to claim 5, characterized in that The shimming unit comprises: A calculation subunit, used for calculating a shim distribution matrix using the shim planning model; A detection subunit, configured to fill the shims based on the shim distribution matrix and detect the magnetic field distribution of the magnet target area after the shims are filled; The determination subunit is used to determine the magnetic field uniformity based on the magnetic field distribution after the shims are filled in the target area of the magnet.
8. The device according to claim 7, characterized in that The first adjustment unit includes: A first updating subunit is used to update the spatial coordinates of the shims and recalculate the sensitivity coefficient matrix based on the updated spatial coordinates to obtain an updated sensitivity coefficient matrix; A second updating subunit, configured to update the available thickness based on the number of shimming times to obtain an updated available thickness; The third updating subunit is used to update the shimming planning model based on the magnetic field distribution of the magnet target area after the shimming pieces are filled, the updated sensitivity coefficient matrix and the updated available thickness.
9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.
10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
