Figures
Abstract
The general expression for magnetic induction in the z axis direction is derived from magnetic scalar potential, and magnetic induction for biplanar shimming coils (BSCs) is also derived from magnetic vector potentials and Green functions, which simultaneously include Sin and Cos harmonic fields. The relationship between these expressions is discussed, and we show they are partially consistent. Magnetic induction generated Sin and Cos stream functions, which are presented and discussed, and we conclude that the type of stream function determines the type of harmonic field, and that BSCs can not only generate specific harmonic fields directly using Cos stream function, but also generate the rest of the harmonic fields through some specific operations. The detailed design process is presented in the form of a diagram. Subsequently, nine BSCs were calculated using the proposed method and applied to a low field NMR relaxation analyzer. The magnetic field homogeneity after shimming increases significantly, which verifies its practical value.
Citation: Xia T, Miao Z, Chen S, Wang H, Yao Y (2017) Theory and development of biplanar active shim coils for a permanent NMR analyzer. PLoS ONE 12(7): e0181552. https://doi.org/10.1371/journal.pone.0181552
Editor: Luis Carretero, Universidad Miguel Hernandez de Elche, SPAIN
Received: February 24, 2017; Accepted: July 3, 2017; Published: July 24, 2017
Copyright: © 2017 Xia et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting Information files.
Funding: Support for this program was provided by the National Science and Technology Major Project of the Ministry of Science and Technology of China (Grant 2013YQ170463). The URL of funder’s website is http://www.most.gov.cn/tztg/201309/t20130904_109149.htm. The funder had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Low field NMR (LF-NMR) relaxation analysis technics has been widely employed in oil exploration, food safety, life sciences, high molecular material, and mineral engineering since it was developed in the 1980s[1–5]. LF-NMR has advantages in running costs, and it is non-invasive, dependable, and highly secure, and it will be expanded to new applications as portability and miniaturization develops. However, it also has disadvantages relative to high field NMR, such as low resolution and low sensitivity due to the magnetic field inhomogeneity, which has shown LF-NMR to be insufficient in detecting small composition content, and it has a short relaxation time.
The primary requirement of any NMR system is that its main magnetic field must be highly uniform. LF-NMR usually adopts rare earth permanent magnets to generate the main magnetic field, which generally has significantly lower homogeneity than that generated by superconducting magnets. Two methods are used to improve field homogeneity: passive and active shimming. Passive shimming is the basic method, with active shimming adjusting the field further to attain improved homogeneity. Passive shimming must be carried out in advance because the initial coil current using just active shimming may be so high that the generated heat will affect the magnet temperature stability. This paper investigates active shim coil design to improve homogeneity based on passive shimming.
Target field is a well-known design method proposed by Turner[6] in 1986. This method has no ill-conditioned problem because Fourier transforms have unique inverses, and it has been used to design cylindrical surface shim coils for superconducting magnets for magnetic resonance imaging (MRI). Forbes and Crozier[7–9] advanced the TF method, considering the finite coil length using a Fourier series technique. Wen Tao Liu[10–12] proposed an alternative current density expansion, rather than Tikhonov regularization, and Xiao Fei You[13] combined this method with Forbes and Crozier’s. Ge Li Hu et al.[14,15] employed L1 norm regularization to replace the original ill-conditioned problem with a nearly well-conditioned problem. There has been considerable TF research, and application of TF in engineering has expanded rapidly. However, shim coils based on TF focus on superconducting magnetic resonance spectroscopy (SMRS) to gain high homogeneity for most research, which generally has a small region of interest (ROI), approximately Φ × H = 5 mm × 20 mm. This paper proposes a biplanar shim coils (BSCs) approach for LF-NMR to improve homogeneity to 0.5 ppm over a relative large ROI (Φ × H = 25.4 mm × 40 mm). Most literature has only simulated results to demonstrate the efficiency of their proposed approach, whereas this paper uses physical experiments to validate the proposed approach.
The general expression for magnetic induction from a magnetic scalar potential and the specific magnetic induction for BSCs are derived, and their relationship discussed. We present a more general methodology, valid for spherical harmonics that includes Sin and Cos functions simultaneously. We demonstrate that the BSCs not only directly generate some specific harmonic fields, but also generate all other harmonic fields through some specific operations. The detailed design process is shown diagrammatically, and nine BSC pairs are designed based on the indicated process, then installed in a biplanar permanent MRI. An experiment was performed to verify the shimming effect, with very significant results, which indicates that the theory and development approach is viable.
Theory
General formula
The main field, B0, is usually in the z axis direction, which is perpendicular to the radio frequency (RF) direction. In diameter spherical volume (DSV), consider a small deviation of B0, B' ≪ B0, where the total field is (1)
Since RF is perpendicular to B0, only B' in the z axis direction affects the NMR signal, so (2) in the DSV through which no current passes for a static magnetic field, so that ∇ × B = 0 from Maxwell's equations. It then follows from a vector identity that (3) where Ψ and μ0 are the magnetic scalar potential and magnetic conductivity in a vacuum, respectively. Maxwell’s equations require ∇ ⋅ B = 0, which means Ψ satisfies the Laplace equation in air in DSV, i.e., (4)
Eq (4) can be solved in spherical polar coordinates rather than Cartesian coordinates, using the usual transformation relations between the coordinate systems, which are presented here explicitly for clarify (Fig 1), (5) and the general solution in spherical coordinates can be expressed as (6) where n and m are the degree and order of Ψ, respectively; is an associated Legendre function; and , are coefficients independent of r,θ, and ϕ. When n = 0, then m = 0 also, from Eq (6), and Ψ is constant.
From the gradient transformation, (7)
Substituting Eqs (6) into (7), which can be simplified using the properties of Legendre functions as (8)
Since m ≤ n for for Legendre functions, then m ≤ n −1 for in Eq (8), so (9) and for convenience, let α = n − 1 and β = m, then (10) where α and β here are the degree and order of Bz.
Eq (10) is the general expression derived from Ψ, and is compared to the BSC derived expression in the following section. This indicates that Bz is composed of a series of harmonic fields, which is consistent with Anderson’s theory[6]. In the ideal case, Eq (10) should contain only the uniform field, Bz0, and the constant with no higher harmonics present when α = β = 0. For given α ≠ 0 and β ≠ 0, determines the distribution of Bz’s higher harmonic. The purpose of shim coils is to eliminate higher harmonics and keep the field uniform. Hence, the target field should be chosen from Table 1.
Biplanar shim coil generated magnetic field from scalar potential
Fig 2 shows the coordinate system for Bz in DSV for BSCs, with current density located in the z = ±a planes respectively. r(r,θ,ϕ) and r'(r',θ',φ) are the position vectors of the field and source points, respectively.
According to Maxwell's equations, ∇ ⋅ B = 0. Therefore, there is a magnetic vector potential, A, such that B = ∇ × A, because ∇ × B = μ0J, where J is the current density, and ∇2A = −μ0J. The general solution was obtained in terms of the Green function 1⁄|r − r'|, and can be expressed in differential form as and the differential form of the magnetic field can be expressed as (11a)
However, J is planar rather than a volume distribution. Hence, Eq (11a) becomes (11b) where ds = ρdρdϕ. Let G = 1⁄|r − r'| where G is the Green function, and define the gradient G' = ∇G, then (12) where and are the components of G' in the X and Y directions, respectively; and Jx and Jy are the components of J in the X and Y directions, respectively.
In spherical coordinates, Eq (12) can be expressed as (13) where ,, and are the components of G' in spherical coordinates; and Jρ and Jφ are the components of J in polar coordinates. Since , , , and . In the interval r ≤ a < r' for DSV, the Green function can be expanded[16] (14) where . Substituting Eqs (14) into (13), (15)
From the recurrence property of associated Legendre functions[17], (16) then (17)
Let and then Eq (17) becomes (18)
From Fig 2, r' = (a + ρ)1/2, sinθ' = ρ/r' and cosθ' = a/r'. Therefore, Cαβ, , and are all functions of ρ for given α and β.
Eq (18) may be integrated over the whole BSC, (19) where and
Eqs (10) and (19) have similar forms, both have the term which indicates they should have the same harmonic fields, i.e., sinusoidal harmonic fields. Therefore, BSC-generated harmonic fields could eliminate the effects of high order harmonic fields from the main field (Eq (10)) by selecting an appropriate current distribution. The effect of current distribution is embodied in and , which are discussed below.
The continuous current density, J(ρ, φ), can be divided into a tangential component, Jφ, and radial component, Jρ. J(ρ, φ) satisfies continuous flow, i.e., ∇J = 0. Let us introduce the stream function S(ρ, φ), such that (20)
Then the stream function may be expressed as (21) where l and k are the degree and order of coils, respectively; "±" represents the upper and lower planes, respectively; and the expansion basis, sq (ρ), may be randomly chosen, e.g. sq (ρ) = sinqπρ⁄ρmax. Eq (21) is a Cos stream function. The current density’s tangential component and radial component may be derived from Eqs (20) and (21), (22) where Uq is the current coefficient, jφ,q (ρ) = −∂sq (ρ)⁄∂ρ, and jρ,q (ρ) = −ksq (ρ)⁄ρ.
Therefore, substituting Eqs (22) into (19), (23) and (24)
Considering and , Eq (24) becomes (25) and and , , and , because cos(π − θ') = −cosθ', sin(π − θ') = sinθ' and , Eq (23) becomes (26) where δkβ is the Kronecker function. For , two conditions must be satisfied, (27)
Therefore, Eq (19) becomes (28) and BSCs can only generate the Cos harmonic fields from Eq (28), i.e., (29)
Hence, Eq (28) is called the Cos Bz function, which is determined by the form of the stream function discussed further below.
If we change the stream function Eq (21) into the other form, (30) which still satisfies continuous flow. Eq (30) is called a Sin stream function, and the corresponding current density may be expressed as (31) where Uq is still the current coefficient, , and .
Substituting Eqs (31) into (19), and following the derivation above, (32) and (33)
When , Eq (27) must be satisfied, and similarly Eqs (26) and (33). Therefore, Eq (19) becomes (34) which is called a SinBz function.
which can only generate Sin harmonic fields, i.e., (35)
Since Eqs (28) and (34) both meet the conditions of Eq (27), when β = k, the conclusion that the stream function type determines the Bz function type is evident by comparing Eqs (27) and (34) with Eqs (21) and (30). In other words, Sin stream functions can only generate Sin harmonic fields and the Cos stream functions can only generate Cos harmonic fields. If we want to generate corresponding higher harmonic fields while retaining uniform Bz0 as mentioned above, the target harmonic field type must be first determined from Table 1. Eq (30) shows that the stream and harmonic functions must choose Cos function when β = k = 0. Eq (28) shows the results as [12]. However, the methodology in the current paper is more general, since it is valid for spherical harmonics that include Sin and Cos functions simultaneously, whereas [12] only presented Cos harmonic functions, with the generation of Sin harmonic functions only represented by rotating at specific angles. Although [12] conclusions were correct, they lacked a strict proof.
When β = k ≠ 0, εβ = 2, and Eqs (26) and (33) have the same form, i.e. . Thus, Cos and Sin Bz functions would have the same coefficients. Comparing Eqs (28) and (34), the difference between them is just trigonometry on ϕ, i.e., cosβϕ and sinβϕ. Hence, by rotating the coils π/2β degrees clockwise, Cos harmonics are changed into Sin harmonics with the same α and β.
The condition α≥β should also be considered along with the two conditions of Eq (27), (36) where i = 1,2,3,…N; and N represents the number of generated harmonic fields.
Eq (36) shows that the shim coil for a given degree l and order k can generate an infinite number of harmonic fields depending on the value of i. Hence, the fields generated by a coil with degree l and order k may be expressed as (37) and from Eq (26), (38) where (39)
Eq (38) may be expressed in matrix form as (40) where U = [U1, U2, U3 ⋯UQ]T, and . D(i, q) can be calculated from Eq (39), which is constant for the corresponding values of i and q. is the coefficient matrix of harmonic fields.
The restricting condition, (41) will make the coil only generate one specific type of harmonic field with l = α(i) while the other N-1 types will not be generated. Values of degree l and order k may be given as targets in advance. The nonzero term’s value of may be arbitrarily chosen except zero, because is proportional to the current coefficient matrix, U, when D is constant, and the current coefficient matrix U can be solved. U’s magnification only changes the current magnitude, not the distribution. For example, when l = 1, k = 0, then β = 0 and α = 2i − 1 from Eq (36), and there should be N types of harmonic fields generated by the coil. However, from Eqs (41) and (29), only the harmonic field is built, i.e., the Z direction gradient field.
S(ρ, φ) may be obtained by substituting the solved matrix U into Eq (21). However, since it is continuous, it cannot be used directly for engineering applications. Therefore, S(ρ, φ) must be processed discretely before application.
S(ρ, φ) may be represented by some current-carrying coils, with the coil current, determined by (42) where Imax and Imin are the maximum and minimum values of S(ρ, φ), respectively; and M is the order of S(ρ, φ), which is set in advance. Therefore, the discrete S(ρ, φ) can be expressed as (43) where j = 0, 1, 2, 3⋯M − 1.
Eq (43) indicates that the current stream distribution function, S(ρ, φ), is expressed by the corresponding order contour lines.
Design diagram and results for shim coils
Fig 3 shows the shim coil design process based on the above methodology as a flow diagram. Several specific examples of target fields design processes are presented. Two parameters are required first: Q = 4 and N = 4 were used for all the design coils.
Case 1
- The stream function degree and order were set as l = 1 and k = 1, respectively.
- The generated harmonic field’s degree and order were determined from Eq (36), i.e., α = 2i − 1 and β = k = 1.
- Eqs (41) and (29) ensure that only one type of target harmonic field will be generated, i.e. with α = 1, β = 1 and . From Table 1, rsin θ cosϕ is the X type harmonic in the rectangular coordinate system.
- The current coefficient matrix U was solved by Eq (40), and then the stream function S(ρ, φ) of generating X type harmonic field was obtained by substituting U into Eq (21).
- The discrete S(ρ, φ) was calculated from Eqs (42) and (43), and is called an X coil.
- The Y coil generating the Y harmonic was obtained by rotating the X coil π / 2 degrees clockwise based on the above conclusion.
Case 2
- The stream function degree and order were set as l = 2 and k = 1, respectively.
- The degree generated harmonic field order was determined from Eq (36), i.e. α = 2i and β = k = 1.
- Eqs (41) and (29) ensure one type of target harmonic field will be generated, i.e. with α = 2, β = 1 and . From Table 1, r2cos θ sin θ cosϕ is the XZ harmonic in the rectangular coordinate system.
- The current coefficient matrix U was solved by Eq (40), and the stream function S(ρ, φ) generating the XZ harmonic field was obtained by substituting U into Eq (21).
- The discrete S(ρ, φ) was calculated from Eqs (42) and (43), and is called an XZ coil.
- The YZ coil generating the Y harmonic was obtained by rotating the XZ coil π / 2 degrees clockwise based on the above conclusion.
Case 3
- The stream function degree and order were set as l = 4 and k = 0, respectively.
- The generated harmonic field degree and order were determined from Eq (36), i.e. α = 2(i − 1) and β = k = 0.
- Eq (41) ensured only one type of target harmonic field will be generated, i.e. with α = 4, β = 0and . From Table 1, r4 (35cos4 θ − 30cos2 θ + 3) is the Z4 harmonic in the rectangular coordinate system.
- The current coefficient matrix U was be solved by Eq (40), and the stream function S(ρ, φ) generating X harmonic fields was obtained by substituting U into Eq (21).
- The discrete S(ρ, φ) was calculated from Eqs (42) and (43), and is called a Z4 coil.
Following the process of Fig 3, nine pairs of BSCs were calculated that generate X, Y, Z, Z2, XZ, YZ, X2-Y2, Z3 and Z4 harmonic fields (Table 1), as shown in Fig 4. The coils were used for shimming the main magnetic field of the high-performance relaxation analyzer. The gap between magnetic poles is 120 mm, i.e., a = 60mm, and the target field volume is Φ × H = 25.4 mm × 40 mm. Therefore, the maximum distance from the zero point is less than 60 mm, which meets the requirement of Eq (14).
Fig 4 shows different colored coils, where each color represents different current density strengths. During the design process, positive and negative current densities are represented by clockwise and anti-clockwise coils, respectively. Fig 5(a) shows the engineering drawing for the shim coils. The pair of printed circuit boards (PCBs) shown in Fig 5(b) and 5(c) are multilayer boards 2 mm thick. Each PCB for the nine shim coils was installed on the two poles of a permanent biplanar MRI in symmetry. A pair of coils generating the same harmonic in two PCBs were connected in series by wires. Thus, there were nine independent groups of constant current sources to power the nine BSC pairs, respectively.
(a) the engineering drawing for the shim coils, (b) and (c) the multilayer PCBs.
Experiments to test shimming effects
An experiment was conducted to test the effects of the shim coils. The magnetic intensity of the biplanar permanent MRI = 0.5T, hence resonance frequency = 21.3 MHz for pure water. The adjustment order of shim coil current was Z, X, Y, XZ, YZ, Z2, X2-Y2, Z3, and Z4. The effect of shimming can be measured by comparing the free induced decay (FID) integral area before and after shimming. Once the current in the first BSC pair was adjusted to achieve maximum integral area, then the next BSC pair was adjusted, and so on to through all BSCs. BSC maximum current was 310 mA, and total thermal power < 10 W. Shim coil electric parameters are shown in Table 2, where the resistance terms represent the total resistance of a pair coil in series. Fig 6 shows the test equipment.
Magnetic dephasing caused by field inhomogeneity produces additional suppression of the signal. Hence, damping the magnitude of transverse magnetization is described by replacing the decay time, T2 with a modified time, . Although qualitatively they have the same shape, the new envelope typically decays much faster in time. Decay time represents a combination of external field induced and thermodynamic T2 effects, (44) where is both machine and sample dependent[18]. Since the sample used in these experiments was pure water, and the sample’s effect on could be ignored, and hence, only depends on inhomogeneities of the main field in this case. Generally, dependence is used in FID measurements to determine if main field homogeneity is adequate. This method was also used in the experiment, and the Fourier transform of FID (data in S1 Table) are shown in Fig 7.
The shimming effect is clearly evident. As the FID integral area increases from 28,900 to 5,892,900, an approximately 20-fold increase, the full width at half maximum (FWHM) of the frequency spectrum decreased from 17.90 to 0.81 ppm, and the corresponding full width at 1/10 maximum (FWTM) decreased from 79.62 to 4.87 ppm.
Since thermal deformation of the shim coils will decrease the shimming effect, stability of the shimming effect was also considered, and estimated by measuring FWHM and FWTM every 10 minutes over 24 hours. The average change rate was approximately 0.50%, with a maximum rate of approximately 0.85%.
Discussion and conclusion
The general expression for magnetic induction was derived from magnetic scalar potential and indicates that the field may be expanded as a series of harmonic fields, which is the basis of target field theory. Shimming aims to eliminate the effects of high order harmonic fields through reversed harmonic fields induced by the shim coils.
The harmonic fields contain Sin and Cos harmonic functions, induced by the corresponding Sin and Cos stream functions. The BSCs not only directly generated specific harmonic fields, but also generated other harmonic fields through specific operations.
The design process was shown diagrammatically, and nine BSCs were designed and fabricated based on the theory developed here, then installed in a biplanar permanent MRI. The shimming effect was very significant, which indicates that the theory and development approach is viable.
References
- 1. Hills B, Benamira S, Marigheto N, Wright K. T 1—T 2 correlation analysis of complex foods. Journal of Display Technology. 2004;26(4):543–60.
- 2. Trbovic N, Kim B, Friesner RA, Iii AGP. Structural analysis of protein dynamics by MD simulations and NMR spin-relaxation. Proteins-structure Function & Bioinformatics. 2008;71(2):684–94.
- 3. Guthausen A, Guthausen G, Kamlowski A, Todt H, Burk W, Schmalbein D. Measurement of fat content of food with single-sided NMR. Journal of the American Oil Chemists Society. 2004;81(8):727–31.
- 4. Evdokimov IN, Eliseev NY, Akhmetov BR. Initial stages of asphaltene aggregation in dilute crude oil solutions: studies of viscosity and NMR relaxation. Fuel. 2003;82(7):817–23.
- 5. Keating K, Knight R. A laboratory study of the effect of magnetite on NMR relaxation rates. Journal of Applied Geophysics. 2008;66(3–4):188–96.
- 6. Turner R. A target field approach to optimal coil design. Journal of Physics D Applied Physics. 1986;19(8):L147–L51.
- 7. Forbes LK, Crozier S. A novel target-field method for finite-length magnetic resonance shim coils: I. Zonal shims. Journal of Physics D-Applied Physics. 2001;34(24):3447–55(9).
- 8. Forbes LK, Crozier S. A novel target-field method for finite-length magnetic resonance shim coils: II. Tesseral shims. Journal of Physics D Applied Physics. 2002;35(9):839–49.
- 9. Forbes LK, Crozier S. Asymmetric zonal shim coils for magnetic resonance applications. Medical Physics. 2001;28(8):1644–51. pmid:11548933
- 10. Liu W, Zu D, Tang X. A novel approach to designing cylindrical-surface shim coils for a superconducting magnet of magnetic resonance imaging. Chinese Physics B. 2010;19(1):563–74.
- 11. Liu W, Zu D, Tang X, Guo H. Target-field method for MRI biplanar gradient coil design. Journal of Physics D Applied Physics. 2007;40(15):4418–24.
- 12. Liu W, Tang X, Zu D. A novel target-field approach to design bi-planar shim coils for permanent-magnet MRI. Concepts in Magnetic Resonance Part B Magnetic Resonance Engineering. 2010;37B(1):29–38.
- 13. You XF, Hu LL, Yang WH, Wang Z, Wang HX. Biplanar Shim Coil Design for 1.5 T Permanent Magnet of In Vivo Animal MRI. IEEE Transactions on Applied Superconductivity. 2010;20(3):1045–9.
- 14. Hu G, Ni Z, Wang Q. A Novel Target-Field Method Using LASSO Algorithm for Shim and Gradient Coil Design. IEEE Transactions on Applied Superconductivity. 2012;22(3):4900604–4900604.
- 15. Hu G, Ni Z, Wang Q. Shim Coil Set for NMR Using a Novel Target Field Method Based on Trigonometric Series. IEEE Transactions on Applied Superconductivity. 2014;24(3):1–5.
- 16. Roméo F, Hoult DI. Magnet field profiling: analysis and correcting coil design. Magnetic Resonance in Medicine. 1984;1(1):44–65. pmid:6571436
- 17.
Abramowitz Milton, Stegun I. Handbook of Mathematical Functions: with formulas, graphs, and mathematical tables: U.S. Govt. Print. Off. 136–44 p.
- 18.
Brown RW, Cheng YCN, Haacke EM, Thompson MR, Venkatesan R. Magnetic Resonance Imaging: Physical Principles and Sequence Design, Second Edition: J. Wiley & Sons; 1999.