This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Optimal Inverse Design of Magnetic Field Profiles in a Magnetically Shielded Cylinder

M. Packer1    P. J. Hobson1    N. Holmes2    J. Leggett2    P. Glover2    M. J. Brookes2    R. Bowtell2    T. M. Fromhold1 1School of Physics and Astronomy, University of Nottingham, Nottingham, NG7 2RD, UK.
2Sir Peter Mansfield Imaging Centre, School of Physics and Astronomy, University of Nottingham, Nottingham, NG7 2RD, UK.
(September 6, 2025)
Abstract

Magnetic shields that use both active and passive components to enable the generation of a tailored low-field environment are required for many applications in science, engineering, and medical imaging. Until now, accurate field nulling, or field generation, has only been possible over a small fraction of the overall volume of the shield. This is due to the interaction between the active field-generating components and the surrounding high-permeability passive shielding material. In this paper, we formulate the interaction between an arbitrary static current flow on a cylinder and an exterior closed high-permeability cylinder. We modify the Green’s function for the magnetic vector potential and match boundary conditions on the shield’s interior surface to calculate the total magnetic field generated by the system. We cast this formulation into an inverse optimization problem to design active–passive magnetic field shaping systems that accurately generate any physical static magnetic field in the interior of a closed cylindrical passive shield. We illustrate this method by designing hybrid systems that generate a range of magnetic field profiles to high accuracy over large interior volumes, and simulate them in real-world shields whose passive components have finite permeability, thickness, and axial entry holes. Our optimization procedure can be adapted to design active–passive magnetic field shaping systems that accurately generate any physical user-specified static magnetic field in the interior of a closed cylindrical shield of any length, enabling the development and miniaturization of systems that require accurate magnetic shielding and control.

preprint: APS Preprint

I Introduction

Regions of space that require precisely-controlled magnetic field environments are essential for a wide range of experiments, devices, and applications. These include quantum sensing of gravity and gravity gradients for geophysical survey and mapping Wueaax0800 ; doi:10.1038/s41598-018-30608-1 ; SnaddenGradiometer ; AIQuantumSensors ; atomic magnetometry PhysRevLett.113.013001 ; quspin ; 10.1155/2015/491746 for applications including material characterization ROMALIS2011258 and magnetoencephalography 10.1364/BOE.3.000981 ; nature ; noise reduction in fundamental physics experiments doi:10.1063/1.4919366 ; 10.1007/s10751-014-1109-5 such as timing using high-precision atomic clocks MORIC2014287 ; LiangClock , measuring the electric dipole moment of fundamental systems RevModPhys.62.541 ; HindsEDM ; ACMEEDM ; doi:10.1063/1.4922671 , and testing Lorentz-invariance by observing the limits of spin precession PhysRevLett.105.151604 ; PhysRevA.100.010501 ; PhysRevLett.112.110801 . Typically, these systems are enclosed within high-permeability materials, such as mumetal, to shield magnetically sensitive components from undesired magnetic fields. Cylindrical geometries, in particular, are widely used due to their comparatively high shielding factor relative to their low manufacturing cost 10.1063/1.1656455 ; GRABCHIKOV201649 ; 6217348 .

Romeo and Hoult first laid the mathematical framework for the design of magnetic fields in free space through the use of current loops and arcs RandH . These simple elements were expanded in a spherical harmonic basis and unwanted field profiles removed by adjusting the relative separations of the discrete coils. Inverse methods based on formulating a current density in terms of simple triangular boundary elements Pissanetzky_1992 ; doi:10.1002/cmr.b.20091 ; doi:10.1002/cmr.b.20040 enabled the design of coils of arbitrary complexity, giving greater flexibility in the design of systems at the cost of computational power and numerical instability. Pseudo-analytical formulations using a Green’s function expansion and harmonic minimization methods have been developed to generate accurate user-specified magnetic fields in free space Forbes_2002 ; Forbes_2001 ; niall0 to facilitate the need for fast and accurate design procedures. However, these methods did not incorporate the interaction of high-permeability passive shielding material, hindering the accurate generation of specified target magnetic field profiles doi:10.1002/9780470268483.app2 in shielded environments. Consequently, optimization of magnetic field cancellation, or other field shaping, systems in the presence of a material with high magnetic permeability is a long-standing challenge in electromagnetism.

Finite element methods (FEMs) can be used to develop models of hybridized active and passive shielding systems. One method of optimizing active–passive systems using FEMs would be to use genetic algorithms genetic ; genetic1 to evolve the coil parameters iteratively, including the effect of the passive material on the magnetic field generated actively at each iteration. Due to their computational complexity, however, FEMs can be slow, and, if coupled with forward optimization procedures provide only locally optimal designs since desired magnetic field profiles depend highly non-linearly on the system parameters. Analytical formulations of the magnetic field generated by hybrid active–passive systems have the distinct advantage that optimal solutions can be calculated at a range of target points with minimal computation CACIAGLI2018423 . Currently, analytical solutions for coils in high-permeability cylindrical magnetic shields have only been formulated in the specific cases of magnetically-shielded solenoids and discrete current loops Solenoid1 ; solenoid2 ; doi:10.1063/1.1719514 . The geometric parameters of the active structure in these systems, such as the separation distances of wire loops, are adapted to account for the interaction between the active and passive systems. Previously, the method of mirror images jackson has been used to formulate the response of a planar material with high magnetic permeability to a magnetic field generated by a current source cubefem ; niall ; 8500866 ; LIU2020166846 . In these formulations, Maxwell’s equations are solved explicitly by including the reflections of the current source generated by the high-permeability material in order to match the required boundary conditions. More generally, Green’s function solutions to boundary value problems have been calculated for an extensive range of electromagnetic systems greensey , but have not previously been found generally for the case of a finite closed cylindrical high-permeability shield in the presence of an arbitrary cylindrical coaxial static current source.

To address this, here, we incorporate ab initio the effect of a finite length high-permeability cylinder on the magnetic field generated by an arbitrary static current flow on a conducting cylinder, and use our results to determine the flow required to generate specified static target fields optimally. This enables the geometry of the active components on the surface of a cylinder to be determined entirely from a desired magnetic field profile. Guided by turner , we first derive a Green’s function for a hybrid active–passive field-generating system described in cylindrical coordinates. We then utilize a modified Fourier basis to define an adjusted current density distribution which accounts for the effect of the high-permeability material. From this, we determine globally-optimal current density maps using a quadratic optimization procedure, akin to magnetic field design methodologies used previously in Magnetic Resonance Imaging (MRI) doi:10.1002/mrm.1910260202 ; hoult . To construct practical current sources from these current density maps, we define the streamfunction of the current continuum and discretize it into a set of closed-loop current-carrying wire geometries. Using this formulation, we present two example coil designs optimized in the interior of a closed cylindrical magnetic shield of finite length and high permeability, μr1\mu_{r}\gg 1, and show that our analytical model agrees well with FEM simulations performed for the optimized current flow patterns. We then show that our design methodology can be used in a real-world situation where the cylindrical magnetic shield has finite thickness and permeability as well as axial entry holes in the end caps to allow experimental access. Using this formulation, we transform the performance of systems designed to generate user-specified magnetic field profiles in the magnetostatic regime, reducing the amount of high-permeability material required, and find globally-optimal solutions required for practical, low Size, Weight, Power, and Cost (SWaP-C) technologies for the applications listed above.

II Theory

The interface conditions for a magnetic field along a boundary, SS, between two materials are that the normal component of the magnetic field, 𝐁\mathbf{B}, and tangential component of the magnetic field strength, H, are continuous. Considering the boundary between air and a material, working in the magnetostatic regime, where no eddy currents are induced, and in the case where no surface currents are present, these interface conditions are

(𝐁mat.𝐁air)𝐧^=0on S,(\mathbf{B_{\mathrm{mat.}}}-\mathbf{B_{\mathrm{air}}})\cdot\mathbf{\hat{n}}=0\qquad\textnormal{on $S$}, (1)

and

(1μr𝐁mat.𝐁air)𝐧^=0on S,\left(\frac{1}{\mu_{r}}\mathbf{B_{\mathrm{mat.}}}-\mathbf{B_{\mathrm{air}}}\right)\wedge\mathbf{\hat{n}}=0\qquad\textnormal{on $S$}, (2)

where 𝐧^\hat{\mathbf{n}} is the unit vector normal to the boundary, and μr\mu_{r} is the relative permeability of the material. In free space, the magnetic field is related to the magnetic field strength and the magnetization, M, by

𝐁=μ0(𝐇+M).\mathbf{B}=\mu_{0}(\mathbf{H}+\textbf{M}). (3)

Physically, the magnetization of the sub-domains of a material change in response to an applied magnetic field to satisfy the boundary condition, (2), at the material’s surface. Here, we choose to formulate this response in terms of a pseudo-current density, 𝐉~\widetilde{\mathbf{J}}, confined to the surface of the material, which relates to the curl of the magnetization,

𝐌=J~.\mathbf{\nabla}\wedge\mathbf{M}=\widetilde{\textbf{J}}. (4)

The magnetic field strength resulting from a current source, 𝐉𝐜\mathbf{J_{c}}, can be expressed using Ampère’s law

𝐇=𝐉𝐜.\nabla\wedge\mathbf{H}=\mathbf{J_{c}}. (5)

Substituting (4) and (5) into the curl of (3), noting 𝐁=𝐀\mathbf{B}=\mathbf{\nabla}\wedge\mathbf{A} where 𝐀\mathbf{A} is the vector potential, results in the Poisson equation in free space,

2𝐀=μ0(𝐉𝐜+J~).\nabla^{2}\mathbf{A}=-\mu_{0}(\mathbf{J_{c}}+\widetilde{\textbf{J}}). (6)

As shown in many papers and textbooks jackson , the solution to the Poisson equation, for an arbitrary current density, 𝐉\mathbf{J}, is given by

𝐀(𝐫)=μ0rd3𝐫G(𝐫,𝐫)𝐉(𝐫),\mathbf{A\left(r\right)}=\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})\mathbf{J(r^{\prime})}, (7)

where G(𝐫,𝐫)G(\mathbf{r},\mathbf{r^{\prime}}) is the associated Green’s function.

Let us now use the boundary condition on the magnetic field, (2), to examine the effect of high-permeability material on the magnetic field generated by a specific current distribution. Consider a hollow high-permeability, μr\mu_{r}\rightarrow\infty, cylinder of radius, ρs\rho_{s}, length, LsL_{s}, thickness, dd, with high-permeability planar end caps located at z=±Ls/2z=\pm L_{s}/2 that is surrounded by free space (Fig. 1). An arbitrary static current flows over an internal open coaxial cylinder of radius, ρc<ρs\rho_{c}<\rho_{s}, and length, L1L2=Lc<LsL_{1}-L_{2}=L_{c}<L_{s}, where Ls/2<L2<L1<Ls/2-L_{s}/2<L_{2}<L_{1}<L_{s}/2, as shown in Fig. 1.

xxyyzzρc\rho_{c}z=L1z=L_{1}z=L2z=L_{2}ρs\rho_{s}z=Ls/2z=L_{s}/2z=Ls/2z=-L_{s}/2
Figure 1: Schematic diagram showing a high magnetic permeability cylinder of length, LsL_{s}, and radius, ρs\rho_{s}, with planar end caps located at z=±Ls/2z=\pm L_{s}/2. This cylinder encloses an interior conducting open cylindrical shell of length, Lc=L1L2L_{c}=L_{1}-L_{2}, and radius, ρc\rho_{c}.

Since high-permeability materials, such as mumetal, can have μr\mu_{r} values >100,000 times that of air, the magnetic field must abruptly change direction at the boundary between its surface and air to satisfy the boundary conditions (1)-(2). When the shield is of sufficient thickness, the tangential components of the magnetic field at its boundary must be approximately zero. The boundary condition, (2), on the interior surface of the exterior closed cylinder for the example depicted in Fig. 1, requires that

Bρ|z=±Ls/20,Bϕ|z=±Ls/2,ρ=ρs0,Bz|ρ=ρs0,B_{\rho}\bigg{\rvert}_{z=\pm L_{s}/2}\hskip-30.0pt\approx 0,\quad\quad B_{\phi}\bigg{\rvert}_{z=\pm L_{s}/2,\rho=\rho_{s}}\hskip-51.0pt\approx 0,\quad\hskip 35.0ptB_{z}\bigg{\rvert}_{\rho=\rho_{s}}\approx 0, (8)

where the magnetic field, 𝐁=Bρ𝝆^+Bϕϕ^+Bz𝐳^\mathbf{B}=B_{\rho}~\bm{\hat{\rho}}+B_{\phi}~\bm{\hat{\phi}}+B_{z}~\mathbf{\hat{z}}, is expressed in cylindrical polar coordinates. Previously, it has been found that the response of a high-permeability material deviates from that of a perfect magnetic conductor on the scale of 𝒪(μr1)\mathcal{O}\left(\mu_{r}^{-1}\right) mu ; mu1 . Therefore, we may assume for high-permeability materials, such as mumetal, the response can be approximated to that of a perfect magnetic conductor without introducing significant errors.

Due to the symmetries of the system it is natural to work in cylindrical coordinates. Following the formulation of Turner turner , we express the vector potential (7) due to an arbitrary current distribution, 𝐉=Jρ(𝐫)𝝆^+Jϕ(𝐫)ϕ^+Jz(𝐫)𝐳^\mathbf{J}=J_{\rho}(\mathbf{r^{\prime}})~\bm{\hat{\rho}}+J_{\phi}(\mathbf{r^{\prime}})~\bm{\hat{\phi}}+J_{z}(\mathbf{r^{\prime}})~\hat{\mathbf{z}}, as

Aρ(𝐫)=μ0rd3𝐫G(𝐫,𝐫)(Jρ(𝐫)cos(ϕϕ)+Jϕ(𝐫)sin(ϕϕ)),A_{\rho}\left(\mathbf{r}\right)=\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})\left(J_{\rho}\left(\mathbf{r^{\prime}}\right)\cos\left(\phi-\phi^{\prime}\right)+J_{\phi}(\mathbf{r^{\prime}})\sin\left(\phi-\phi^{\prime}\right)\right), (9)
Aϕ(𝐫)=μ0rd3𝐫G(𝐫,𝐫)(Jρ(𝐫)sin(ϕϕ)Jϕ(𝐫)cos(ϕϕ)),A_{\phi}\left(\mathbf{r}\right)=-\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})\left(J_{\rho}\left(\mathbf{r^{\prime}}\right)\sin\left(\phi-\phi^{\prime}\right)-J_{\phi}(\mathbf{r^{\prime}})\cos\left(\phi-\phi^{\prime}\right)\right), (10)
Az(𝐫)=μ0rd3𝐫G(𝐫,𝐫)Jz(𝐫).A_{z}\left(\mathbf{r}\right)=\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})J_{z}(\mathbf{r^{\prime}}). (11)

Since the current has been restricted to flow over an interior cylindrical shell centred radially about the origin, its radial components may be set to zero, resulting in the simplified vector potentials

Aρ(𝐫)=μ0rd3𝐫G(𝐫,𝐫)Jϕ(𝐫)sin(ϕϕ),A_{\rho}\left(\mathbf{r}\right)=\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})J_{\phi}(\mathbf{r^{\prime}})\sin\left(\phi-\phi^{\prime}\right), (12)
Aϕ(𝐫)=μ0rd3𝐫G(𝐫,𝐫)Jϕ(𝐫)cos(ϕϕ).A_{\phi}\left(\mathbf{r}\right)=\mu_{0}\int_{r^{\prime}}\mathrm{d}^{3}\mathbf{r^{\prime}}\ G(\mathbf{r},\mathbf{r^{\prime}})J_{\phi}(\mathbf{r^{\prime}})\cos\left(\phi-\phi^{\prime}\right). (13)

Substituting the Green’s function solution from (7) in cylindrical coordinates jackson ,

G(𝐫,𝐫)=14π2m=eim(ϕϕ)dkeik(zz)Im(|k|ρ<)Km(|k|ρ>),G(\mathbf{r,r^{\prime}})=\frac{1}{4\pi^{2}}\sum_{m=-\infty}^{\infty}e^{im(\phi-\phi^{\prime})}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{ik\left(z-z^{\prime}\right)}I_{m}(|k|\rho_{<})K_{m}(|k|\rho_{>}), (14)

into (11)-(13), the components of the vector potential may be expressed as

Aρ(ρ,ϕ,z)=iμ0ρ4πm=dkeimϕeikz[Im1(|k|ρ<)Km1(|k|ρ>)\displaystyle A_{\rho}\left(\rho,\phi,z\right)=-\frac{i\mu_{0}\rho^{\prime}}{4\pi}\sum_{m=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}\Big{[}I_{m-1}(|k|\rho_{<})K_{m-1}(|k|\rho_{>})\qquad\qquad\qquad\qquad\qquad\qquad
Im+1(|k|ρ<)Km+1(|k|ρ>)]Jϕm(k),\displaystyle-I_{m+1}(|k|\rho_{<})K_{m+1}(|k|\rho_{>})\Big{]}J_{\phi}^{m}(k), (15)
Aϕ(ρ,ϕ,z)=μ0ρ4πm=dkeimϕeikz[Im1(|k|ρ<)Km1(|k|ρ>)\displaystyle A_{\phi}\left(\rho,\phi,z\right)=\frac{\mu_{0}\rho^{\prime}}{4\pi}\sum_{m=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}\Big{[}I_{m-1}(|k|\rho_{<})K_{m-1}(|k|\rho_{>})\ \ \ \ \qquad\qquad\qquad\qquad\qquad\qquad
+Im+1(|k|ρ<)Km+1(|k|ρ>)]Jϕm(k),\displaystyle+I_{m+1}(|k|\rho_{<})K_{m+1}(|k|\rho_{>})\Big{]}J_{\phi}^{m}(k), (16)
Az(ρ,ϕ,z)=μ0ρ2πm=dkeimϕeikzIm(|k|ρ<)Km(|k|ρ>)Jzm(k),\displaystyle A_{z}\left(\rho,\phi,z\right)=\frac{\mu_{0}\rho^{\prime}}{2\pi}\sum_{m=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}I_{m}(|k|\rho_{<})K_{m}(|k|\rho_{>})J_{z}^{m}(k), (17)

where ρ\rho^{\prime} is the radius of the cylinder and ρ>\rho_{>}, ρ<\rho_{<} is either ρ\rho, ρ\rho^{\prime} if ρ>ρ\rho>\rho^{\prime} or ρ\rho^{\prime}, ρ\rho if ρ<ρ\rho<\rho^{\prime}, respectively. Equations (15)-(17) contain Fourier transforms of the current densities,

Jϕm(k)=12π02πdϕeimϕdzeikzJϕ(ϕ,z),J_{\phi}^{m}(k)=\frac{1}{2\pi}\int_{0}^{2\pi}\mathrm{d}\phi^{\prime}\ e^{-im\phi^{\prime}}\int_{-\infty}^{\infty}\mathrm{d}z^{\prime}\ e^{-ikz^{\prime}}J_{\phi}\left(\phi^{\prime},z^{\prime}\right), (18)
Jzm(k)=12π02πdϕeimϕdzeikzJz(ϕ,z),J_{z}^{m}(k)=\frac{1}{2\pi}\int_{0}^{2\pi}\mathrm{d}\phi^{\prime}\ e^{-im\phi^{\prime}}\int_{-\infty}^{\infty}\mathrm{d}z^{\prime}\ e^{-ikz^{\prime}}J_{z}\left(\phi^{\prime},z^{\prime}\right), (19)

with their corresponding inverse transforms given by

Jϕ(ϕ,z)=12πm=dkeimϕeikzJϕm(k),J_{\phi}(\phi^{\prime},z^{\prime})=\frac{1}{2\pi}\sum_{m=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi^{\prime}}e^{ikz^{\prime}}J_{\phi}^{m}\left(k\right), (20)
Jz(ϕ,z)=12πm=dkeimϕeikzJzm(k).J_{z}(\phi^{\prime},z^{\prime})=\frac{1}{2\pi}\sum_{m=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi^{\prime}}e^{ikz^{\prime}}J_{z}^{m}\left(k\right). (21)

As a result of this formulation, we can now combine methods for matching the boundary conditions at the radial interface, akin to the formulation of passive screening of magnetic field gradients for MRI ap , with the method of mirror images, accounting for the effect of the planar end caps, to determine the effect of the high-permeability material on the overall magnetic field profile. Due to the cylindrical symmetry of the system, the radial boundary condition may be satisfied by matching the azimuthal Fourier modes in the magnetic field, generated by the cylindrical current source, through the use of a pseudo-current density induced on an infinite cylinder. As the planar end caps are spatially orthogonal to the pseudo-current generated by the infinite cylinder, any image current formed by applying the method of mirror images continues to satisfy the radial boundary condition. Consequently, we can decouple the boundary conditions on the high-permeability cylinder and at the planar end cap boundaries. This must be done sequentially to generate mirror images of the pseudo-current density induced on the high-permeability cylindrical shell and, hence, satisfy the boundary conditions over the entire domain of the closed finite high-permeability cylinder. As a result, using (15)-(17) and the usual formulation of the method of mirror images with two infinite parallel planes, depicted in Fig. 2, the vector potential in the region ρcρρs\rho_{c}\leq\rho\leq\rho_{s}, including the effect of the high-permeability cylinder, may be written in terms of an infinite summation over the reflected image currents,

Aρ(ρ,ϕ,z)=iμ04πm=p=dkeimϕeikz{ρc[Im1(|k|ρc)Km1(|k|ρ)\displaystyle A_{\rho}\left(\rho,\phi,z\right)=-\frac{i\mu_{0}}{4\pi}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}\Bigg{\{}\rho_{c}\Big{[}I_{m-1}(|k|\rho_{c})K_{m-1}(|k|\rho)\qquad\qquad\qquad\qquad\qquad
Im+1(|k|ρc)Km+1(|k|ρ)]Jϕmp(k)+ρs[Im1(|k|ρ)Km1(|k|ρs)\displaystyle-I_{m+1}(|k|\rho_{c})K_{m+1}(|k|\rho)\Big{]}J_{\phi}^{mp}(k)+\rho_{s}\Big{[}I_{m-1}(|k|\rho)K_{m-1}(|k|\rho_{s})\qquad\qquad
Im+1(|k|ρ)Km+1(|k|ρs)]Jϕmp~(k)},\displaystyle-I_{m+1}(|k|\rho)K_{m+1}(|k|\rho_{s})\Big{]}\widetilde{J_{\phi}^{mp}}(k)\Bigg{\}}, (22)
Aϕ(ρ,ϕ,z)=μ04πm=p=dkeimϕeikz{ρc[Im1(|k|ρc)Km1(|k|ρ)\displaystyle A_{\phi}\left(\rho,\phi,z\right)=\frac{\mu_{0}}{4\pi}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}\Bigg{\{}\rho_{c}\Big{[}I_{m-1}(|k|\rho_{c})K_{m-1}(|k|\rho)\qquad\qquad\qquad\qquad\qquad\ \ \ \
+Im+1(|k|ρc)Km+1(|k|ρ)]Jϕmp(k)+ρs[Im1(|k|ρ)Km1(|k|ρs)\displaystyle+I_{m+1}(|k|\rho_{c})K_{m+1}(|k|\rho)\Big{]}J_{\phi}^{mp}(k)+\rho_{s}\Big{[}I_{m-1}(|k|\rho)K_{m-1}(|k|\rho_{s})\qquad\qquad
+Im+1(|k|ρ)Km+1(|k|ρs)]Jϕmp~(k)},\displaystyle+I_{m+1}(|k|\rho)K_{m+1}(|k|\rho_{s})\Big{]}\widetilde{J_{\phi}^{mp}}(k)\Bigg{\}}, (23)
Az(ρ,ϕ,z)=μ02πm=p=dkeimϕeikz[ρcIm(|k|ρc)Km(|k|ρ)Jzmp(k)\displaystyle A_{z}\left(\rho,\phi,z\right)=\frac{\mu_{0}}{2\pi}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ e^{im\phi}e^{ikz}\Big{[}\rho_{c}I_{m}(|k|\rho_{c})K_{m}(|k|\rho)J_{z}^{mp}(k)\qquad\qquad\qquad\qquad\qquad\ \ \ \
+ρsIm(|k|ρ)Km(|k|ρs)Jzmp~(k)],\displaystyle+\rho_{s}I_{m}(|k|\rho)K_{m}(|k|\rho_{s})\widetilde{J_{z}^{mp}}(k)\Big{]}, (24)

where

Jϕmp(k)=12π02πdϕeimϕdzeikzJϕp(ϕ,z),J_{\phi}^{mp}(k)=\frac{1}{2\pi}\int_{0}^{2\pi}\mathrm{d}\phi^{\prime}\ e^{-im\phi^{\prime}}\int_{-\infty}^{\infty}\mathrm{d}z^{\prime}\ e^{-ikz^{\prime}}J_{\phi}^{p}\left(\phi^{\prime},z^{\prime}\right), (25)
Jzmp(k)=12π02πdϕeimϕdzeikzJzp(ϕ,z),J_{z}^{mp}(k)=\frac{1}{2\pi}\int_{0}^{2\pi}\mathrm{d}\phi^{\prime}\ e^{-im\phi^{\prime}}\int_{-\infty}^{\infty}\mathrm{d}z^{\prime}\ e^{-ikz^{\prime}}J_{z}^{p}\left(\phi^{\prime},z^{\prime}\right), (26)

are the Fourier transforms of the pthp^{th} reflected image current and Jϕ,zmp~(k)\widetilde{J^{mp}_{\phi,z}}(k) is the Fourier transform of the pthp^{th} reflected pseudo-current induced on the high-permeability cylinder. Fig. 2 depicts how azimuthal, Jϕp(ϕ,z)J_{\phi}^{p}\left(\phi^{\prime},z^{\prime}\right), and axial, Jzp(ϕ,z)J_{z}^{p}\left(\phi^{\prime},z^{\prime}\right), image currents are generated by two parallel planar perfect magnetic conductors.

\vdots\vdotsz=dz^{\prime}=dp=0p=0z=d+Lsz^{\prime}=-d+L_{s}p=1p=1z=(1)pd+pLsz^{\prime}=(-1)^{p}d+pL_{s}p=2,..,p=2,\ ..,\ \inftyz=dLsz^{\prime}=-d-L_{s}p=1p=-1z=(1)pd+pLsz^{\prime}=(-1)^{p}d+pL_{s}p=2,..,p=-2,\ ..,\ -\inftyLsL_{s}
\vdots\vdotsz=d1z^{\prime}=d_{1}z=d2z^{\prime}=d_{2}z=d2+Lsz^{\prime}=-d_{2}+L_{s}z=d1+Lsz^{\prime}=-d_{1}+L_{s}z=(1)pd2+pLsz^{\prime}=(-1)^{p}d_{2}+pL_{s}z=d2Lsz^{\prime}=-d_{2}-L_{s}z=d1Lsz^{\prime}=-d_{1}-L_{s}z=(1)pd1+pLsz^{\prime}=(-1)^{p}d_{1}+pL_{s}z=Ls/2z=L_{s}/2z=Ls/2z=-L_{s}/2
Figure 2: Schematic diagram showing how azimuthal (left) and axial (right) currents are reflected by two infinite parallel planes (hatched) of infinite extension and permeability (i.e. perfect magnetic conductors) located at z=±Ls/2z=\pm L_{s}/2. (left) Azimuthal currents located in the z=dz^{\prime}=d plane are translated, by the reflection process, to the z=(1)pd+pLsz^{\prime}=(-1)^{p}d+pL_{s} planes. (right) Axial currents flowing from z=d1z^{\prime}=d_{1} to z=d2z^{\prime}=d_{2} are reflected to positions z=(1)pd1+pLsz^{\prime}=(-1)^{p}d_{1}+pL_{s} and z=(1)pd2+pLsz^{\prime}=(-1)^{p}d_{2}+pL_{s}, respectively, with odd reflections reversing the initial current flow direction. Black circles show cross-sections of wires carrying current into (red crosses) and out of (red circles) the page.

Writing the magnetic field in cylindrical coordinates,

𝐁=𝐀=(1ρAzϕAϕz)𝝆^+(AρzAzρ)ϕ^+1ρ(ρ(ρAϕ)Aρϕ)𝐳^,\mathbf{B}=\nabla\wedge\mathbf{A}=\left(\frac{1}{\rho}\frac{\partial A_{z}}{\partial\phi}-\frac{\partial A_{\phi}}{\partial z}\right)\bm{\hat{\rho}}+\left(\frac{\partial A_{\rho}}{\partial z}-\frac{\partial A_{z}}{\partial\rho}\right)\bm{\hat{\phi}}+\frac{1}{\rho}\left(\frac{\partial}{\partial\rho}(\rho A_{\phi})-\frac{\partial A_{\rho}}{\partial\phi}\right)\mathbf{\hat{z}}, (27)

the boundary conditions, (8), on the magnetic field at ρ=ρs\rho=\rho_{s} are

1ρ(ρ(ρAϕ)Aρϕ)|ρ=ρs=0,\displaystyle\frac{1}{\rho}\left(\frac{\partial}{\partial\rho}(\rho A_{\phi})-\frac{\partial A_{\rho}}{\partial\phi}\right)\Bigg{\rvert}_{\rho=\rho_{s}}=0, (28)
(AρzAzρ)|ρ=ρs=0.\displaystyle\left(\frac{\partial A_{\rho}}{\partial z}-\frac{\partial A_{z}}{\partial\rho}\right)\Bigg{\rvert}_{\rho=\rho_{s}}=0. (29)

Substituting (22)-(24) into (28)-(29), the Fourier transformed pseudo-current density on the cylindrical wall of the high-permeability cylinder is found to be

Jϕ,zmp~(k)=ρcIm(|k|ρc)Km(|k|ρs)ρsIm(|k|ρs)Km(|k|ρs)Jϕ,zmp(k),\widetilde{J_{\phi,z}^{mp}}(k)=-\frac{\rho_{c}I^{\prime}_{m}(|k|\rho_{c})K_{m}(|k|\rho_{s})}{\rho_{s}I_{m}(|k|\rho_{s})K^{\prime}_{m}(|k|\rho_{s})}J_{\phi,z}^{mp}(k), (30)

where Im(z)I^{\prime}_{m}(z) and Km(z)K^{\prime}_{m}(z) are the derivatives with respect to zz of Im(z)I_{m}(z) and Km(z)K_{m}(z), respectively. Using the continuity equation, (20)-(24), and (30), the magnetic field interior to the conducting cylinder, for all points ρ<ρc\rho<\rho_{c}, is given by

Bρ(ρ,ϕ,z)=iμ0ρc2πm=p=dkkeimϕeikzIm(|k|ρ)Rm(k,ρc,ρs)Jϕmp(k),\displaystyle B_{\rho}\left(\rho,\phi,z\right)=\frac{i\mu_{0}\rho_{c}}{2\pi}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ ke^{im\phi}e^{ikz}I^{\prime}_{m}(|k|\rho)R_{m}(k,\rho_{c},\rho_{s})J_{\phi}^{mp}(k), (31)
Bϕ(ρ,ϕ,z)=μ0ρc2πρm=p=dkm|k|keimϕeikzIm(|k|ρ)Rm(k,ρc,ρs)Jϕmp(k),\displaystyle B_{\phi}\left(\rho,\phi,z\right)=-\frac{\mu_{0}\rho_{c}}{2\pi\rho}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ m\frac{|k|}{k}e^{im\phi}e^{ikz}I_{m}(|k|\rho)R_{m}(k,\rho_{c},\rho_{s})J_{\phi}^{mp}(k), (32)
Bz(ρ,ϕ,z)=μ0ρc2πm=p=dk|k|eimϕeikzIm(|k|ρ)Rm(k,ρc,ρs)Jϕmp(k),\displaystyle B_{z}\left(\rho,\phi,z\right)=-\frac{\mu_{0}\rho_{c}}{2\pi}\sum_{m=-\infty}^{\infty}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ |k|e^{im\phi}e^{ikz}I_{m}(|k|\rho)R_{m}(k,\rho_{c},\rho_{s})J_{\phi}^{mp}(k), (33)

where Rm(k,ρc,ρs)=Km(|k|ρc)Im(|k|ρc)Km(|k|ρs)Im(|k|ρs)R_{m}(k,\rho_{c},\rho_{s})=K^{\prime}_{m}(|k|\rho_{c})-\frac{I^{\prime}_{m}(|k|\rho_{c})K_{m}(|k|\rho_{s})}{I_{m}(|k|\rho_{s})}. In order to determine the magnetic field generated by an arbitrary cylindrical current source, we must construct an orthogonal basis defined on a finite cylinder, which accounts for the mirror images. To do this we use a modified Fourier basis, defining the pthp^{\textnormal{th}} reflected azimuthal current to be

Jϕp(ϕ,z)\displaystyle J_{\phi}^{p}(\phi^{\prime},z^{\prime}) =(Tep(z;L1,L2,Ls)+Top(z;L1,L2,Ls))[n=1NWn0sin(nπ((1)p(zpLs)L2)Lc)\displaystyle=\left(T^{p}_{e}(z^{\prime};L_{1},L_{2},L_{s})+T^{p}_{o}(z^{\prime};L_{1},L_{2},L_{s})\right)\Bigg{[}\sum_{n=1}^{N}W_{n0}\sin\left(\frac{n\pi\left((-1)^{p}\left(z^{\prime}-pL_{s}\right)-L_{2}\right)}{L_{c}}\right)
+n=1Nm=1M(Wnmcos(mϕ)+Qnmsin(mϕ))cos(nπ((1)p(zpLs)L2)Lc)],\displaystyle\qquad\qquad+\sum_{n=1}^{N}\sum_{m=1}^{M}\left(W_{nm}\cos(m\phi^{\prime})+Q_{nm}\sin(m\phi^{\prime})\right)\cos\left(\frac{n\pi\left((-1)^{p}\left(z^{\prime}-pL_{s}\right)-L_{2}\right)}{L_{c}}\right)\Bigg{]}, (34)

in which

Tep(z;L1,L2,Ls)=(H(zL2pLs)H(zL1pLs))(1+(1)p2),T^{p}_{e}(z^{\prime};L_{1},L_{2},L_{s})=\left(H\left(z^{\prime}-L_{2}-pL_{s}\right)-H\left(z^{\prime}-L_{1}-pL_{s}\right)\right)\left(\frac{1+(-1)^{p}}{2}\right), (35)
Top(z;L1,L2,Ls)=(H(z+L1pLs)H(z+L2pLs))(1(1)p2),T^{p}_{o}(z^{\prime};L_{1},L_{2},L_{s})=\left(H\left(z^{\prime}+L_{1}-pL_{s}\right)-H\left(z^{\prime}+L_{2}-pL_{s}\right)\right)\left(\frac{1-(-1)^{p}}{2}\right), (36)

where H(x)H(x) is the Heaviside function and (Wn0,Wnm,Qnm)\left(W_{n0},W_{nm},Q_{nm}\right) are Fourier coefficients to be determined. Substituting (34) into (31)-(33), we derive a set of governing equations which relate the magnetic field to the set of weighted Fourier coefficients,

Bρ(ρ,ϕ,z)=n=1NWn0Fn(ρ,z)+n=1Nm=1M(WnmGnmw(ρ,ϕ,z)+QnmGnmq(ρ,ϕ,z)),B_{\rho}\left(\rho,\phi,z\right)=\sum_{n=1}^{N}W_{n0}F_{n}\left(\rho,z\right)+\sum_{n=1}^{N}\sum_{m=1}^{M}\left(W_{nm}G^{w}_{nm}\left(\rho,\phi,z\right)+Q_{nm}G^{q}_{nm}\left(\rho,\phi,z\right)\right), (37)
Bϕ(ρ,ϕ,z)=n=1Nm=1M(WnmHnmw(ρ,ϕ,z)+QnmHnmq(ρ,ϕ,z)),B_{\phi}\left(\rho,\phi,z\right)=\sum_{n=1}^{N}\sum_{m=1}^{M}\left(W_{nm}H^{w}_{nm}\left(\rho,\phi,z\right)+Q_{nm}H^{q}_{nm}\left(\rho,\phi,z\right)\right), (38)
Bz(ρ,ϕ,z)=n=1NWn0Dn(ρ,z)+n=1Nm=1M(WnmSnmw(ρ,ϕ,z)+QnmSnmq(ρ,ϕ,z)),B_{z}\left(\rho,\phi,z\right)=\sum_{n=1}^{N}W_{n0}D_{n}\left(\rho,z\right)+\sum_{n=1}^{N}\sum_{m=1}^{M}\left(W_{nm}S^{w}_{nm}\left(\rho,\phi,z\right)+Q_{nm}S^{q}_{nm}\left(\rho,\phi,z\right)\right), (39)

where the functions Fn(ρ,z)F_{n}\left(\rho,z\right), Gnmw,q(ρ,ϕ,z)G^{w,q}_{nm}\left(\rho,\phi,z\right), Hnmw,q(ρ,ϕ,z)H^{w,q}_{nm}\left(\rho,\phi,z\right), Dn(ρ,z)D_{n}\left(\rho,z\right), and Snmw,q(ρ,ϕ,z)S^{w,q}_{nm}\left(\rho,\phi,z\right) are defined in Appendix A. Having determined the magnetic field produced by an arbitrary cylindrical current, we may now use an inverse method to solve the system of governing equations, (37)-(39), to determine the unknown Fourier coefficients (Wn0,Wnm,Qnm)\left(W_{n0},W_{nm},Q_{nm}\right) for a specified target magnetic field. Following work done by Carlson et al. doi:10.1002/mrm.1910260202 , this may be done by a least squares minimization with the addition of a penalty term to regularize the problem. This regularization term may take many forms, with individual contributions to it representing, for example, the curvature of a given wire geometry, the power consumption, or any other physical parameter that depends quadratically on the geometry of the coil. In this work we focus on the overall power dissipated in the cylindrical current flow, but this choice is somewhat arbitrary since all of the regularization parameters act to achieve the same general goal. If the regularization term is large, the result is a well-conditioned inverse problem that yields a simple current flow, but reduced field fidelity. On the other hand, if the regularization term is small, then the result is a less well conditioned inverse problem that yields a more intricate pattern of current flow but a higher-fidelity magnetic field. The power dissipation in the conducting cylinder of thickness, tt, and resistivity, ϱ\varrho, is given by

P=ρcϱtL2L1dz02πdϕ|Jz(ϕ,z)|2+|Jϕ(ϕ,z)|2,P=\frac{\rho_{c}\varrho}{t}\int_{L_{2}}^{L_{1}}\mathrm{d}z^{\prime}\int_{0}^{2\pi}\mathrm{d}\phi^{\prime}\ |J_{z}(\phi^{\prime},z^{\prime})|^{2}+|J_{\phi}(\phi^{\prime},z^{\prime})|^{2}, (40)

which, when integrated over the surface of the cylinder, using the continuity equation and (34), gives

P=ρcϱt[n=1NWn02πLc+n=1Nm=1M(Wnm2+Qnm2)(πLc2+m2Lc32πn2ρc2)].P=\frac{\rho_{c}\varrho}{t}\left[\sum_{n=1}^{N}W_{n0}^{2}\pi L_{c}+\sum_{n=1}^{N}\sum_{m=1}^{M}\left(W_{nm}^{2}+Q_{nm}^{2}\right)\left(\frac{\pi L_{c}}{2}+\frac{m^{2}L_{c}^{3}}{2\pi n^{2}\rho_{c}^{2}}\right)\right]. (41)

We now construct a cost function using a least squares optimization procedure,

Φ=k[𝐁desired(𝐫k)𝐁(𝐫k)]2+βP,\Phi=\sum_{k}\left[\mathbf{B}^{\mathrm{desired}}\left(\mathbf{r}_{k}\right)-\mathbf{B}\left(\mathbf{r}_{k}\right)\right]^{2}+\beta P, (42)

evaluated at KK target field points, where β\beta is a weighting parameter chosen such that the physical parameters may be adjusted to achieve specified physical constraints. The minimization is achieved by taking the derivative of the cost function with respect to the Fourier coefficients,

ΦWi0=0,ΦWij=0,ΦQij=0,i,j>1,\frac{\partial\Phi}{\partial W_{i0}}=0,\qquad\frac{\partial\Phi}{\partial W_{ij}}=0,\qquad\frac{\partial\Phi}{\partial Q_{ij}}=0,\qquad i,j>1, (43)

allowing the optimal Fourier coefficients to be found by matrix inversion for any physically attainable target magnetic field. The current density is then related, through the continuity equation, to the streamfunction

φ(ϕ,z)=(H(zL1)H(zL2))[n=1NLcnπWn0cos(nπ(zL2)Lc)\displaystyle\varphi(\phi^{\prime},z^{\prime})=\left(H\left(z^{\prime}-L_{1}\right)-H\left(z^{\prime}-L_{2}\right)\right)\Bigg{[}\sum_{n=1}^{N}\frac{L_{c}}{n\pi}W_{n0}\cos\left(\frac{n\pi\left(z^{\prime}-L_{2}\right)}{L_{c}}\right)\qquad\qquad\qquad\qquad\qquad\qquad
n=1Nm=1MLcnπ(Wnmcos(mϕ)+Qnmsin(mϕ))sin(nπ(zL2)Lc)],\displaystyle-\sum_{n=1}^{N}\sum_{m=1}^{M}\frac{L_{c}}{n\pi}\left(W_{nm}\cos(m\phi^{\prime})+Q_{nm}\sin(m\phi^{\prime})\right)\sin\left(\frac{n\pi\left(z^{\prime}-L_{2}\right)}{L_{c}}\right)\Bigg{]}, (44)

on the inner conducting cylindrical surface.

Ideally, the Fourier series would have an infinite number of coefficients. However, truncating the series at a large finite number of terms still provides accurate solutions for sufficiently regularized problems. This is because higher-order terms contribute less at distances much larger than their spatial period. When designing fields in regions close to the conducting surface, if a sufficiently large number of coefficients is chosen, the real-world field fidelity is limited by the accuracy to which the current continuum can be approximated by discretized wire configurations, rather than by the number of Fourier coefficients. Typically, setting N=200 and equating M to the degree of the desired field harmonic is adequate. An approximate solution to the current continuum is then found by discretizing the streamfunction into NφN_{\varphi} values, where φj=minφ+(j1/2)Δφ,j=1,,Nφ\varphi_{j}=\textnormal{min}\ \varphi+(j-1/2)\Delta\varphi,j=1,...,N_{\varphi}, separated by Δφ=maxφminφNφ\Delta\varphi=\frac{\textnormal{max}\ \varphi-\textnormal{min}\ \varphi}{N_{\varphi}}. The number of contours should be maximized according to the constraints in manufacturing because the accuracy of the model depends on the approximation of the continuum. For situations where only coarse discretization is possible, we recommend that a form of discrete optimization is used instead. When physically manufacturing these structures, the distance of the wires from the high-permeability material is important. Without the passive shield, one can determine how accurately the discrete coil represents the current continuum by using the elemental Biot–Savart law to calculate the error as NφN_{\varphi} is adjusted.

III Results

We now analyze our theoretical model by designing and testing hybrid active–passive magnetic field-generating systems. Regarding the validation of our calculations, we first note that, as expected from previous work Solenoid1 ; solenoid2 ; doi:10.1063/1.1719514 and shown in the Supplementary Material, our calculations confirm that the optimal coil design for generating a constant axial field inside a closed cylindrical perfect magnetic shield is a perfect solenoid that runs along the full length of the cylindrical shield.

In Fig. 3 and Fig. 4 respectively, we show active–passive systems for generating a constant transverse field, BxB_{x}, normal to the axis of the cylinder, and a linear transverse field gradient, 𝐁=(z𝐱^+x𝐳^)\mathbf{B}=(z~\mathbf{\hat{x}}+x~\mathbf{\hat{z}}), along the axis of the cylinder. Each of these systems has a cylindrical surface of length Lc=0.95L_{c}=0.95 m and radius ρc=0.245\rho_{c}=0.245 m, which carries the coil current distribution. This current distribution is interior to and centred about the origin of a closed perfect magnetically conducting cylinder of length Ls=1L_{s}=1 m and radius ρs=0.25\rho_{s}=0.25 m. The field is optimized over the central cylindrical region spanning half the radius and length of the coil cylinder. Fig. 3a and Fig. 4a show the respective streamfunctions on the surface of the cylinder and their discretization into wire patterns. The magnetic fields shown in Fig. 3b–c and Fig. 4b are calculated in three ways: analytically, using our theoretical model in (37)-(39); numerically, using COMSOL Multiphysics® with the shield treated as a perfect magnetic conductor; and numerically in free space, i.e. excluding the high-permeability material and calculating the magnetic fields by applying the elemental Biot–Savart law directly to the discrete coil geometries in Fig. 3a and Fig. 4a. It is clear from Figs. 34 that our design methodology is capable of generating highly accurate user-specified target magnetic fields inside the optimized field region with good agreement between the theoretical model and numerical simulations.

We quantify this agreement by analyzing the deviation from the target fields in the optimization region, ΔBx\Delta{B_{x}} and ΔdBx/dz\Delta{\mathrm{d}B_{x}/\mathrm{d}z}, for the constant transverse field and linear transverse field gradient systems, respectively. Specifically, along the zz-axis of the optimized region the maximum absolute deviations from the target fields are 0.110.11% and 0.240.24%, respectively. Over the same region, the maximum absolute deviations between the numerically-simulated and analytically-calculated field profiles are 0.0020.002% and 0.0030.003%, respectively. We can also see the hybrid nature of our optimization by the improved performance of the active systems when inside, and coupled to, the passive shield. For example, the strength of the BxB_{x} field is nearly doubled, and its uniformity is improved by a factor of 2020, when the high-permeability cylinder is added to the constant transverse field-generating system (see Fig. 3b).

In Fig. 5 we show the numerically-calculated color maps of the BxB_{x} field in the yy-zz plane generated by the constant transverse field (Fig. 3a) and linear transverse field gradient (Fig. 4a) systems, using COMSOL Multiphysics® with the shield treated as a perfect magnetic conductor. We summarize the performance of both systems in Table 1, calculating the cylindrical shield fractions – the ratio of the radial and axial extent of the central region to that of the passive shield – where the maximum deviations from the target fields are less than 0.01%0.01\%, 0.05%0.05\%, 0.1%0.1\%, 0.5%0.5\%, 1%1\%, and 5%5\%, respectively.

Refer to caption
Refer to caption
Figure 3: Wire layouts (a) and performance (b–c) of an optimized hybrid active–passive constant transverse field-generating system in which current flows on a cylinder of length Lc=0.95L_{c}=0.95 m and radius ρc=0.245\rho_{c}=0.245 m. The wire layouts are optimized to generate a constant transverse field, Bx=1B_{x}=1 μ\muT, across the cylinder and normal to its axis of symmetry. The current-carrying cylinder is placed symmetrically inside a perfect closed magnetic shield of length Ls=1L_{s}=1 m and radius ρs=0.25\rho_{s}=0.25 m and the magnetic field is optimized between ρ=[0,ρc/2]\rho=[0,\rho_{c}/2] and z=±Lc/4z=\pm{L_{c}}/4; dashed black lines in (b–c). The least squares optimization was performed with parameters N=200N=200, M=1M=1, and β=5.95×1012\beta=5.95\times 10^{-12}. (a) Color map of the optimal current streamfunction on the cylinder [blue and red shaded regions correspond to the flow of current in opposite senses respectively and their intensity shows the streamfunction magnitude from low (white) to high (intense color)]. Solid and dashed black curves represent discrete wires with opposite senses of current flow, approximating the current continuum with Nφ=24N_{\varphi}=24 contour levels. (b) Transverse magnetic field, BxB_{x}, versus axial position, zz, calculated from the current continuum in (a) in three ways: analytically using (37)-(39) (solid red curve); numerically using COMSOL Multiphysics® Version 5.3a and modelling the high-permeability cylinder as a perfect magnetic conductor (blue dotted curve); numerically without the high-permeability cylinder and using the Biot–Savart law with Nφ=100N_{\varphi}=100 contour levels (dashed green). (c) Enlarged section of (b) emphasizing the high level of field uniformity and the agreement between the numerical and analytical results over the optimization region.
Refer to caption
Refer to caption
Figure 4: Wire layouts (a) and performance (b) of an optimized hybrid active–passive linear transverse gradient field-generating system in which current flows on a cylinder of length Lc=0.95L_{c}=0.95 m and radius ρc=0.245\rho_{c}=0.245 m. The wire layouts are optimized to generate a linear transverse field gradient, dBx/dz=1\mathrm{d}B_{x}/\mathrm{d}z=1 μ\muT/m, along the zz-axis of the cylinder. The current-carrying cylinder is placed symmetrically inside a perfect closed magnetic shield of length Ls=1L_{s}=1 m and radius ρs=0.25\rho_{s}=0.25 m and the magnetic field is optimized between ρ=[0,ρc/2]\rho=[0,\rho_{c}/2] and z=±Lc/4z=\pm{L_{c}}/4; dashed black lines in (b). The least squares optimization was performed with parameters N=200N=200, M=1M=1, and β=5.95×1012\beta=5.95\times 10^{-12}. (a) Color map of the optimal current streamfunction on the cylinder [blue and red shaded regions correspond to the flow of current in opposite senses respectively and their intensity shows the streamfunction magnitude from low (white) to high (intense color)]. Solid and dashed black curves represent discrete wires with opposite senses of current flow, approximating the current continuum with Nφ=24N_{\varphi}=24 contour levels. (b) Transverse magnetic field, BxB_{x}, versus axial position, zz, calculated from the current continuum in (a) in three ways: analytically using (37)-(39) (solid red curve); numerically using COMSOL Multiphysics® Version 5.3a and modelling the high-permeability cylinder as a perfect magnetic conductor (blue dotted curve); numerically without the high-permeability cylinder and using the Biot–Savart law with Nφ=100N_{\varphi}=100 contour levels (dashed green).
Refer to caption
Refer to caption
Figure 5: Color maps showing the magnitude of the transverse magnetic field, BxB_{x}, in the yy-zz plane inside a closed finite length perfect magnetic conductor generated by two active–passive systems: (a) the constant transverse field-generating system depicted in Fig. 3; (b) the linear transverse gradient field-generating system depicted in Fig. 4. The field profiles were calculated numerically using COMSOL Multiphysics® Version 5.3a. Contours show where the field deviates from the target field by 11% (solid curves), 0.10.1% (dashed curves), 0.010.01% (dot-dashed curves), and 0.0010.001% (dotted curves; in (a) only).
  Cylindrical Shield Fraction
  Perfect   Imperfect
  Max. Field Deviation (%)   𝐁𝐱\mathbf{B_{x}}   𝐝𝐁𝐱/𝐝𝐳\mathbf{\bm{\mathrm{d}}B_{x}/\bm{\mathrm{d}}z}   𝐁𝐱\mathbf{B_{x}}   𝐝𝐁𝐱/𝐝𝐳\mathbf{\bm{\mathrm{d}}B_{x}/\bm{\mathrm{d}}z}
  0.01\mathbf{0.01}   0.3200.320   0.2370.237   0.1900.190   0.1680.168
  0.05\mathbf{0.05}   0.3980.398   0.3150.315   0.3500.350   0.2680.268
  0.1\mathbf{0.1}   0.4370.437   0.3480.348   0.4420.442   0.3200.320
  0.5\mathbf{0.5}   0.4720.472   0.4480.448   0.4740.474   0.4400.440
  𝟏\mathbf{1}   0.4960.496   0.4700.470   0.4990.499   0.4700.470
  𝟓\mathbf{5}   0.5980.598   0.5530.553   0.5980.598   0.5510.551
Table 1: Cylindrical shield fractions – defined as the ratio of the radius and length of the central region to those of the passive shield – where the maximum magnetic field deviations are within 0.01%0.01\%, 0.05%0.05\%, 0.1%0.1\%, 0.5%0.5\%, 1%1\%, and 5%5\% of the target fields generated by the constant transverse, BxB_{x}, and linear transverse gradient, dBx/dz\mathrm{d}B_{x}/\mathrm{d}z, systems, depicted in Fig. 3a and Fig. 4a, respectively. The magnetic field deviations were calculated numerically using COMSOL Multiphysics® Version 5.3a in two ways: inside a perfect magnetic conductor (perfect case); inside a magnetic shield with finite permeability μr=20000\mu_{r}=20000, thickness d=1d=1 mm, and a circular entry hole of normalized radius, ρh=0.25ρs\rho_{h}=0.25\rho_{s} in both end caps (imperfect case).

When physically constructing active–passive structures for real-world experiments, additional limitations must be taken into consideration in order to generate accurate magnetic fields using our design methodology. These limitations originate either from the theoretical model itself or from experimental practicalities. The limitations in the theoretical model are primarily associated with how accurately the high-permeability cylinder approximates a perfect magnetic conductor. This depends on the value of the finite permeability, the thickness of the shielding material, and the required experimental access holes in the shielding system. The errors introduced by these parameters depend on the lengths, radii, and positions of the conducting and high-permeability cylinders relative to the location of the optimization region. The experimental limitations on the field fidelity relate to the stability of the experimental equipment and errors in manufacturing an accurate representation of the current continuum. These errors include coarse discretization of the current continuum, inexact wire placement and construction, and imprecise positioning of the active structure inside the high-permeability shield. In practice, highly stable experimental equipment is available, particularly power supplies and current drivers Ac_n_2018 , and it is possible to manufacture structures that approximate the current continuum accurately turner . Consequently, the error introduced in the formulation of our model must be calculated to determine the accuracy of any future potential designs in a real-world experimental set-up. Our active–passive systems must, therefore, be analyzed for the case of a high-permeability cylinder that is not a closed perfect magnetic conductor. To do this, we use COMSOL Multiphysics® working in the magnetostatic regime, to determine how the uniformity of the BxB_{x} field generated by the constant transverse field-generating system in Fig. 3a changes when the perfect closed magnetic conductor is replaced by one that is imperfect. To construct an imperfect shield, we define the magnetic permeability μr=20000\mu_{r}=20000 to match the permeability of industrial standard mumetal regularly used as a passive shield. We then vary the wall thickness, dd, of a closed magnetic shield and determine how small dd can be while maintaining high field uniformity. Finally, using this minimum thickness, we introduce a circular axial entry hole of radius ρh\rho_{h} at the center of each end cap and determine how large the hole can be to preserve field uniformity.

We use the root mean square field deviation, ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}}, of the attained field from the uniform target field, calculated along the zz-axis of the optimized field region, to evaluate the performance of the active–passive system. The light blue crosses in Fig. 6a show that ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} values calculated numerically from the current continuum in Fig. 3a using COMSOL Multiphysics®, decrease as dd increases in the range (0.052.5)(0.05-2.5) mm with interval size 0.050.05 mm, converging to the thick material limit where the thickness is assumed to be infinite. The horizontal dashed red line shows the analytical value of ΔBxRMS=0.0232%{\Delta}B_{x}^{\mathrm{RMS}}=0.0232\% calculated using (37)-(39). The numerical ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} values decrease asymptotically below this analytical limit and approach the difference 𝒪(μr1)0.005%\mathcal{O}(\mu_{r}^{-1})\approx 0.005\% mu ; mu1 that we predicted for our model in Section II. This intrinsic error, resulting from the small difference between thick high-permeability materials and a perfect magnetic conductor, sets the hard limit on the accuracy of any magnetic field that can by designed using our theoretical model. In reality, however, this limit is so small that for a thick material with a high permeability, such as mumetal, the errors in manufacturing and construction will be much more significant. As technologies advance which reduce these system errors, such as screen-printed foldable PCBs PCBCoils and 3D-printing technologies 3DPrintingPaper , it may become more relevant to develop a model which accounts ab initio for magnetic shields of finite permeability and thickness.

We see from Fig. 6a that the asymptotic limit is reached at approximately d=1d=1 mm, where ΔBxRMS=0.019%{\Delta}B_{x}^{\mathrm{RMS}}=0.019\%. At this point, regarding the accuracy of our model, there is little advantage to increasing dd further. Consequently, in Fig. 6b we take d=1d=1 mm and examine the effect of introducing circular axial entry holes in both end caps of the high-permeability cylinder. Although ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} increases as the hole radius, ρh\rho_{h}, increases from no hole, ρh=0\rho_{h}=0, to when there is no end cap, ρh=ρs\rho_{h}=\rho_{s}, we see that small holes in both end caps allow experimental access without significantly reducing the fidelity of the desired field profile. In particular, for our system, the hole radius can be made as large as ρh=0.25ρs\rho_{h}=0.25\rho_{s} while only increasing ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} by 0.0012%0.0012\% when compared to the no hole case (horizontal dashed light blue line).

In Fig. 7 we show the numerically-calculated color maps of the BxB_{x} field in the yy-zz plane generated by the constant transverse field (Fig. 3a) and linear transverse field gradient (Fig. 4a) systems. Both of these systems are simulated with the same imperfect high-permeability cylindrical magnetic shield that has had its properties determined in the above analysis: μr=20000\mu_{r}=20000, d=1d=1 mm, and ρh=0.25ρs\rho_{h}=0.25\rho_{s}. The performance of both systems in terms of the cylindrical shield fraction is summarized in Table 1.

Finally, we see from Table 1 that this imperfect magnetic shield does not introduce significant magnetic field deviations above 0.1%0.1\% when compared to a perfect shield with the same geometry. In particular, the maximum difference between the perfect and imperfect cylindrical shield fractions for deviations above 0.1%0.1\% is only 0.0280.028. Large deviations in the field accuracy below 0.1%0.1\% can be graphically seen when comparing the color maps for the perfect (Fig. 5) and imperfect (Fig. 7) cases. The contours showing field deviations of 0.01%0.01\% and 0.001%0.001\% are strongly perturbed, as expected from the analysis in Fig. 6, demonstrating the hard intrinsic limit on our model when generating target field profiles inside real-world magnetic shields. Similar analysis should be applied when designing other active–passive systems using our theoretical model in order to quantify its accuracy for a specific experimental setup. Further analysis could also be performed to determine the low-frequency limit in which a time-dependent current source could be included. However, if the magnitudes of any induced eddy currents are much less than the magnitude of the coil current, such effects will be negligible. Further designs generating more exotic field profiles can be found in the Supplementary Material. All designs can be found in our open access Python code which can be used to design systems to generate specific physical target field using our model (see addendum for more details).

Refer to captiondd
Refer to captionρh\rho_{h}
Figure 6: Plots showing how the performance of the optimized hybrid active–passive constant transverse field-generating system depicted in Fig. 3 depends (a) on the thickness, dd, of the high-permeability cylinder (inset), and (b) on the radius, ρh\rho_{h}, of the circular axial entry hole in the two end caps (inset), which allow access to the interior of the system. (a) Root mean square (RMS) deviation, ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}}, evaluated along the axis of the optimized field region, as a function of the high-permeability shield thickness, dd, taking μr=20000\mu_{r}=20000 and ρh=0\rho_{h}=0. Light blue crosses show ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} values calculated numerically from the current continuum in Fig. 3a using COMSOL Multiphysics® Version 5.3a. Horizontal dashed red line shows the analytical value of ΔBxRMS=0.0232%{\Delta}B_{x}^{\mathrm{RMS}}=0.0232\% calculated using (37)-(39). (b) ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} evaluated along the axis of the optimized field region, as a function of the normalized axial hole radius, ρh/ρs\rho_{h}/\rho_{s}, taking μr=20000\mu_{r}=20000 and d=1d=1. Purple crosses show ΔBxRMS{\Delta}B_{x}^{\mathrm{RMS}} values calculated numerically from the current continuum in Fig. 3a using COMSOL Multiphysics® Version 5.3a. For comparison, the horizontal dashed light blue line shows the numerical RMS deviation ΔBxRMS=0.0190%{\Delta}B_{x}^{\mathrm{RMS}}=0.0190\% calculated when d=1d=1 mm and ρh=0\rho_{h}=0.
Refer to caption
Refer to caption
Figure 7: Color maps showing the magnitude of the transverse magnetic field, BxB_{x}, in the yy-zz plane inside a magnetic shield with permeability μr=20000\mu_{r}=20000, thickness d=1d=1 mm, and a circular axial entry hole of normalized radius, ρh=0.25ρs\rho_{h}=0.25\rho_{s}, around the centre of each end cap generated by two active–passive systems: (a) the constant transverse field-generating system depicted in Fig. 3; (b) the linear transverse gradient field-generating system depicted in Fig. 4. The field profiles were calculated numerically using COMSOL Multiphysics® Version 5.3a. Contours show where the field deviates from the target field by 11% (solid curves), 0.10.1% (dashed curves), 0.010.01% (dot-dashed curves), and 0.0010.001% (dotted curves; in (a) only).

IV Conclusion

In this paper, we have developed an analytical model to calculate the total magnetic field generated by an arbitrary current flow on a cylinder that is coaxially nested within a finite closed high-permeability cylinder. We modified the Green’s function for the magnetic vector potential, matched the radial and planar boundary conditions of the magnetic field through the introduction of a pseudo-current density, and incorporated a harmonic minimization procedure to design optimal user-specified magnetic fields by using a modified cylindrical Fourier basis. We then verified this optimization procedure by designing coils to generate a constant transverse field, BxB_{x}, across the cylinder, and a linear transverse field gradient, dBx/dz\mathrm{d}B_{x}/\mathrm{d}z, along the length of the cylinder. Our analytical calculations of these field profiles agreed well with numerical simulations. The optimization procedure generated highly accurate BxB_{x} and dBx/dz\mathrm{d}B_{x}/\mathrm{d}z field profiles, inside a high-permeability cylinder, with peak-to-peak deviations from the target profiles below 0.11%0.11\% and 0.24%0.24\%, respectively. The analytically-predicted deviations agreed with the numerical simulations to within 0.002%0.002\% and 0.003%0.003\% for the constant and linear gradient systems, respectively.

We further investigated the validity of our model by analyzing the behavior of the constant transverse field-generating system inside a magnetic shield of permeability μr=20000\mu_{r}=20000, finite thickness, and with circular axial entry holes in the end caps. We found a range of parameters where the analytical predictions for a perfect cylindrical magnetic conductor remain close to numerical simulations for a cylindrical shield with finite permeability and thickness that includes entry holes; showing that the designs generated by our model are applicable to real-world magnetic shields. Notably, when the active field-generating systems were enclosed by a passive magnetic shield with realistic experimental parameters (μr=20000\mu_{r}=20000, thickness 11 mm, and entry holes of radius equal to 2525% of the shield’s radius), the deviation from the desired constant and linear gradient field profiles were less than 0.1%0.1\% and 0.5%0.5\%, respectively, over more than 40%40\% of the central radial and axial extent of this simulated real-world magnetic shield.

Our flexible optimization procedure enables the design of new active–passive magnetic field shaping systems to generate accurately any static magnetic field profile in the interior of a finite closed magnetic shield, subject to satisfying Maxwell’s equations in free space and not saturating the shielding material. This facilitates the development and miniaturization of systems and technologies which require such control, including quantum sensors, fundamental physics experiments, and medical technologies. Further investigation could consider an analytical treatment of finite magnetic shield thickness and permeability and interactions with an open magnetic shield topology.

Addendum

Acknowledgements  We acknowledge support from the UK Quantum Technology Hub for Sensing and Timing, funded by the Engineering and Physical Sciences Research Council (EP/M013294/1).
Competing Interests  The authors M. Packer, P. J. Hobson, T. M. Fromhold, M. J. Brookes, and R. Bowtell declare that they have a patent pending to the UK Government Intellectual Property Application office (Application Number 1913549.0) regarding the magnetic field optimization techniques described in this work. The authors have no other competing financial interests.
Correspondence  Correspondence and requests should be addressed to Mark.Fromhold@nottingham.ac.uk.
Open Access  The Python code used to design arbitrary cylindrical coils in a magnetically shielded cylinder can be found in the following GitHub repository: https://github.com/peterjhobson/fields_in_shields. Verification using COMSOL Multiphysics® requires a valid license.

References

  • (1) X. Wu, Z. Pagel, B. S. Malek, T. H. Nguyen, F. Zi, D. S. Scheirer, and H. Müller. Gravity surveys using a mobile atom interferometer. Sci. Adv., 5(9), 2019.
  • (2) V. Menoret, P. Vermeulen, N. L. Moigne, S. Bonvalot, P. Bouyer, A. Landragin, and B. Desruelle. Gravity measurements below 10910^{-9} gg with a transportable absolute quantum gravimeter. Sci. Rep., 8(12300), 2018.
  • (3) M. J. Snadden, J. M. McGuirk, P. Bouyer, K. G. Haritos, and M. A. Kasevich. Measurement of the Earth’s gravity gradient with an atom interferometer-based gravity gradiometer. Phys. Rev. Lett., 81(5):971, 1998.
  • (4) K. Bongs, M. Holynski, J. Vovrosh, P. Bouyer, G. Condon, E. Rasel, C. Schubert, W. P. Schleich, and A. Roura. Taking atom interferometric quantum sensors from the laboratory to real-world applications. Nat. Rev. Phys., Oct. 2019.
  • (5) B. Patton, E. Zhivun, D. C. Hovde, and D. Budker. All-optical vector atomic magnetometer. Phys. Rev. Lett., 113:013001, Jul. 2014.
  • (6) Y. J. Kim and I. Savukov. Ultra-sensitive magnetic microscopy with an optically pumped magnetometer. Sci. Rep., 6(24773), 2016.
  • (7) H. Zhang, S. Zou, X. Chen, and W. Quan. Parameter modeling analysis and experimental verification on magnetic shielding cylinder of all-optical atomic spin magnetometer. J. Sens., 2015:1–7, 05 2015.
  • (8) M. V. Romalis and H. B. Dang. Atomic magnetometers for materials characterization. Mater. Today, 14(6):258–262, 2011.
  • (9) T. Sander, J. Preusser, R. Mhaskar, J. Kitching, L. Trahms, and S. Knappe. Magnetoencephalography with a chip-scale atomic magnetometer. Biomed. Opt. Express, 3:981–90, 05 2012.
  • (10) E. Boto, N. Holmes, J. Leggett, G. Roberts, V. Shah, S. S. Meyer, L. D. Muñoz, K. J. Mullinger, T. M. Tierney, S. Bestmann, G. R. Barnes, R. Bowtell, and M. J. Brookes. Moving magnetoencephalography towards real-world applications with a wearable system. Nature, 555(657-661), 2018.
  • (11) I. Altarev, M. Bales, D. H. Beck, T. Chupp, K. Fierlinger, P. Fierlinger, F. Kuchler, T. Lins, M. G. Marino, B. Niessen, G. Petzoldt, U. Schläpfer, A. Schnabel, J. T. Singh, R. Stoepler, S. Stuiber, M. Sturm, B. Taubenheim, and J. Voigt. A large-scale magnetic shield with 10610^{6} damping at millihertz frequencies. J. Appl. Phys., 117(18):183903, 2015.
  • (12) Y. Sakamoto, C. Bidinosti, Y. Ichikawa, Takefumi Satoh, Y. Ohtomo, S. Kojima, C. Funayama, T. Suzuki, M. Tsuchiya, T. Furukawa, A. Yoshimi, T. Ino, H. Ueno, Y. Matsuo, T. Fukuyama, and K. Asahi. Development of high-homogeneity magnetic field coil for 129Xi EDM experiment. Hyperfine Interact., 230, 04 2015.
  • (13) I. Moric, P. Laurent, P. Chatard, C.-M. de Graeve, S. Thomin, V. Christophe, and O. Grosjean. Magnetic shielding of the cold atom space clock PHARAO. Acta Astronaut., 102:287–294, 2014.
  • (14) L. Liu, D.-S. Lü, W.-B. Chen, T. Li, Q.-Z. Qu, B. Wang, L. Li, W. Ren, Z.-R. Dong, J.-B. Zhao, W.-B. Xia, X. Zhao, J.-W. Ji, M.-F. Ye, Y.-G. Sun, Y.-Y. Yao, D. Song, Z.-G. Liang, S.-J. Hu, and Y.-Z. Wang. In-orbit operation of an atomic clock based on laser-cooled 87Rb atoms. Nature Comms., 9, 12 2018.
  • (15) N. F. Ramsey. Experiments with separated oscillatory fields and hydrogen masers. Rev. Mod. Phys., 62:541–552, Jul. 1990.
  • (16) J. J. Hudson, D. M. Kara, I. J. Smallman, B. E. Sauer, M. R. Tarbutt, and E. A. Hinds. Improved measurement of the shape of the electron. Nature, 473:493–496, 2011.
  • (17) The ACME Collaboration. Improved limit on the electric dipole moment of the electron. Nature, 562:355–360, 2018.
  • (18) I. Altarev, P. Fierlinger, T. Lins, M. G. Marino, B. Nießen, G. Petzoldt, M. Reisner, S. Stuiber, M. Sturm, J. Taggart Singh, B. Taubenheim, H. K. Rohrer, and U. Schläpfer. Minimizing magnetic fields for precision experiments. J. Appl. Phys., 117(23):233903, 2015.
  • (19) J. M. Brown, S. J. Smullin, T. W. Kornack, and M. V. Romalis. New limit on Lorentz- and CPT-violating neutron spin interactions. Phys. Rev. Lett., 105:151604, Oct. 2010.
  • (20) M. E. Limes, N. Dural, M. V. Romalis, E. L. Foley, T. W. Kornack, A. Nelson, L. R. Grisham, and J. Vaara. Dipolar and scalar He3129Xe{}^{3}\mathrm{He}\text{$-$}^{129}\mathrm{Xe} frequency shifts in stemless cells. Phys. Rev. A, 100:010501, Jul. 2019.
  • (21) F. Allmendinger, W. Heil, S. Karpuk, W. Kilian, A. Scharth, U. Schmidt, A. Schnabel, Yu. Sobolev, and K. Tullney. New limit on lorentz-invariance- and cptcpt-violating neutron spin interactions using a free-spin-precession He3{}^{3}\mathrm{He}-Xe129{}^{129}\mathrm{Xe} comagnetometer. Phys. Rev. Lett., 112:110801, Mar. 2014.
  • (22) A. Mager. Magnetic shielding efficiencies of cylindrical shells with axis parallel to the field. J. Appl. Phys., 39, 02 1968.
  • (23) S. S. Grabchikov, A. V. Trukhanov, S. V. Trukhanov, I. S. Kazakevich, A. A. Solobay, V. T. Erofeenko, N. A. Vasilenkov, O. S. Volkova, and A. Shakin. Effectiveness of the magnetostatic shielding by the cylindrical shells. J. Magn. Magn. Mater., 398:49–53, 2016.
  • (24) J. Prat-Camps, C. Navau, D. Chen, and A. Sanchez. Exact analytical demagnetizing factors for long hollow cylinders in transverse field. IEEE Magn. Lett., 3:0500104–0500104, 2012.
  • (25) F. Roméo and D. I. Hoult. Magnet field profiling: analysis and correcting coil design. Magn. Reson. Med., 1(1):44-65, Mar. 1984.
  • (26) S. Pissanetzky. Minimum energy MRI gradient coils of general geometry. Meas. Sci. Technol., 3(7):667–673, Jul. 1992.
  • (27) M. Poole and R. Bowtell. Novel gradient coils designed using a boundary element method. Concept. Magn. Reson. B, 31B(3):162–175, 2007.
  • (28) R.A. Lemdiasov and R. Ludwig. A stream function method for gradient coil design. Concept. Magn. Reson. B, 26B(1):67–80, 2005.
  • (29) L. K. Forbes and S. Crozier. A novel target-field method for finite-length magnetic resonance shim coils: II. Tesseral shims. J. Phys. D: Appl. Phys., 35, 9, 839–849 2002.
  • (30) L. K. Forbes and S. Crozier. A novel target-field method for finite-length magnetic resonance shim coils: I. Zonal shims. J. Phys. D: Appl. Phys., 34, 24, 3447–3455 2001.
  • (31) N. Holmes, T. M. Tierney, J. Leggett, E. Boto, S. Mellor, G. Roberts, R. M. Hill, V. Shah, G. R. Barnes, M. J. Brookes, and R. Bowtell. Balanced, bi-planar magnetic field and field gradient coils for field compensation in wearable magnetoencephalography. Sci. Rep. 9, 14196 (2019).
  • (32) S. Celozzi, R. Araneo, and G. Lovat. Appendix B: Magnetic Shielding. John Wiley & Sons, Ltd, 2008.
  • (33) S. Celozzi and F. Garzia. Active shielding for power-frequency magnetic field reduction using genetic algorithms optimisation. IEE Proceedings A - Sci., Mes., and Technol., 151(1):2–7, 2004.
  • (34) K. F. Man, K. S. Tang and S. Kwong. Genetic algorithms: concepts and applications [in engineering design]. IEEE Trans. Ind., 43(5):519–534, 1996.
  • (35) A. Caciagli, R. J. Baars, A. P. Philipse, and B. W. M. Kuipers. Exact expression for the magnetic field of a finite cylinder with arbitrary uniform magnetization. J. Magn. Magn. Mater., 456:423 – 432, 2018.
  • (36) C.-Y. Liu, T. Andalib, D. C. M. Ostapchuk, and C. P. Bidinosti. Analytic models of magnetically enclosed spherical and solenoidal coils. Nucl. Instrum. Methods Phys. Res., 949:162837, 2020.
  • (37) R. Lambert and C. Uphoff. Magnetically shielded solenoid with field of high homogeneity. Rev. Sci. Instrum., 46, 03 1975.
  • (38) R. J. Hanson and F. M. Pipkin. Magnetically shielded solenoid with field of high homogeneity. Rev. Sci. Instrum., 36(2):179–188, 1965.
  • (39) J. D. Jackson. Classical electrodynamics (3rd ed.). Wiley, New York, 1998.
  • (40) Q. Cao, D. Pan, J. Li, Y. Jin, Z. Sun, S. Lin, G. Yang, and L. Li. Optimization of a coil system for generating uniform magnetic fields inside a cubic magnetic shield. Energies, 11(3):608, 2018.
  • (41) N. Holmes, J. Leggett, E. Boto, G. Roberts, R. M. Hill, T. M. Tierney, V. Shah, G. R. Barnes, M. J. Brookes, and R. Bowtell. A bi-planar coil system for nulling background magnetic fields in scalp mounted magnetoencephalography. NeuroImage, 181(1):760–774, 2018.
  • (42) T. Liu, J. Voigt, Z. Sun, A. Schnabel, K. Grueneberg, I. Fan, and L. Li. Two-step mirror model for the optimization of the magnetic field generated by coils inside magnetic shielding. In 2018 Conference on Precision Electromagnetic Measurements (CPEM 2018), 1–2, 2018.
  • (43) T. Liu, A. Schnabel, Z. Sun, J. Voigt, and L. Li. Approximate expressions for the magnetic field created by circular coils inside a closed cylindrical shield of finite thickness and permeability. J. Magn. Magn. Mater., 507:166846, 2020.
  • (44) L.-W. Li, M.-S. Leong, T.-S. Yeo, and P.-S. Kooi. Electromagnetic dyadic Green’s functions in spectral domain for multilayered cylinders. J. Electromagnet. Wave, 14:961–985, 2000.
  • (45) R. Turner. A target field approach to optimal coil design. J. Phys. D: Appl. Phys., 19(8), 1986.
  • (46) J. W. Carlson, K. A. Derby, K. C. Hawryszko, and M. Weideman. Design and evaluation of shielded gradient coils. Magn. Reson. Med., 26(2):191–206, 1992.
  • (47) D. I. Hoult and R. Deslauriers. Accurate shim-coil design and magnet-field profiling by a power-minimization-matrix method. J. Magn. Reson., 108:1(9–20), 1994.
  • (48) P. Hammond. Electric and magnetic images. Proc. IEE Part C Monogr., 107:306, 1960.
  • (49) P. Hammond. Effect of finite thickness of magnetic substrate on planar inductors. IEEE Trans. Magn., 26:270–275, 1990.
  • (50) R. Turner and R. M. Bowley. Passive screening of switched magnetic field gradients. J. Phys. E Sci. Instrum., 19(876), 1986.
  • (51) A. Acín, I. Bloch, H. Buhrman, T. Calarco, C. Eichler, J. Eisert, D. Esteve, N. Gisin, S. J. Glaser, F. Jelezko, S. Kuhr, M. Lewenstein, M. F. Riedel, P. O. Schmidt, R. Thew, A. Wallraff, I. Walmsley, and F. K. Wilhelm. The quantum technologies roadmap: a European community view. New J. Phys., 20(8):080201, Aug. 2018.
  • (52) J. R. Corea, A. M. Flynn, B. Lechene, G. Scott, G. D. Reed, P. J. Shin, M. Lustig, and A. C. Ariasb. Screen-printed flexible MRI receive coils. Nat. Commun., 7, Mar. 2016.
  • (53) T. D. Ngo, A. Kashani, G. Imbalzano, K. T. Q. Nguyen, and D. Hui. Additive manufacturing (3D printing): A review of materials, methods, applications and challenges. Compos. B. Eng., 143:172–196, 2018.

Appendices

A Mathematical Definitions

Fn(ρ,z)=p=dkI0(|k|ρ)(K0(|k|ρc)I0(|k|ρc)K0(|k|ρs)I0(|k|ρs))Cnp1(k,z),\displaystyle F_{n}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ I^{\prime}_{0}\left(|k|\rho\right)\Bigg{(}K^{\prime}_{0}(|k|\rho_{c})-\frac{I^{\prime}_{0}(|k|\rho_{c})K_{0}(|k|\rho_{s})}{I_{0}(|k|\rho_{s})}\Bigg{)}C^{1}_{np}(k,z), (45)
Gnm(ρ,z)=p=dkIm(|k|ρ)(Km(|k|ρc)Im(|k|ρc)Km(|k|ρs)Im(|k|ρs))Cnp2(k,z),\displaystyle G_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ I^{\prime}_{m}\left(|k|\rho\right)\Bigg{(}K^{\prime}_{m}(|k|\rho_{c})-\frac{I^{\prime}_{m}(|k|\rho_{c})K_{m}(|k|\rho_{s})}{I_{m}(|k|\rho_{s})}\Bigg{)}C^{2}_{np}(k,z), (46)
Gnmw(ρ,ϕ,z)=cos(mϕ)Gnm(ρ,z),Gnmq(ρ,ϕ,z)=sin(mϕ)Gnm(ρ,z),G^{w}_{nm}\left(\rho,\phi,z\right)=\cos\left(m\phi\right)G_{nm}\left(\rho,z\right),\quad G^{q}_{nm}\left(\rho,\phi,z\right)=\sin\left(m\phi\right)G_{nm}\left(\rho,z\right), (47)
Hnm(ρ,z)=p=dkmIm(|k|ρ)(Km(|k|ρc)Im(|k|a)Km(|k|ρs)Im(|k|ρs))Cnp3(k,z),\displaystyle H_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ mI_{m}\left(|k|\rho\right)\Bigg{(}K^{\prime}_{m}(|k|\rho_{c})-\frac{I^{\prime}_{m}(|k|a)K_{m}(|k|\rho_{s})}{I_{m}(|k|\rho_{s})}\Bigg{)}C^{3}_{np}(k,z), (48)
Hnmw(ρ,ϕ,z)=sin(mϕ)Hnm(ρ,z),Hnmq(ρ,ϕ,z)=cos(mϕ)Hnm(ρ,z),H^{w}_{nm}\left(\rho,\phi,z\right)=\sin\left(m\phi\right)H_{nm}\left(\rho,z\right),\quad H^{q}_{nm}\left(\rho,\phi,z\right)=-\cos\left(m\phi\right)H_{nm}\left(\rho,z\right), (49)
Dn(ρ,z)=p=dkI0(|k|ρ)(K0(|k|ρc)I0(|k|ρc)K0(|k|ρs)I0(|k|ρs))Cnp4(k,z),\displaystyle D_{n}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ I_{0}\left(|k|\rho\right)\Bigg{(}K^{\prime}_{0}(|k|\rho_{c})-\frac{I^{\prime}_{0}(|k|\rho_{c})K_{0}(|k|\rho_{s})}{I_{0}(|k|\rho_{s})}\Bigg{)}C^{4}_{np}(k,z), (50)
Snm(ρ,z)=p=dkIm(|k|ρ)(Km(|k|ρc)Im(|k|ρc)Km(|k|ρs)Im(|k|ρs))Cnp5(k,z),\displaystyle S_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ I_{m}\left(|k|\rho\right)\Bigg{(}K^{\prime}_{m}(|k|\rho_{c})-\frac{I^{\prime}_{m}(|k|\rho_{c})K_{m}(|k|\rho_{s})}{I_{m}(|k|\rho_{s})}\Bigg{)}C^{5}_{np}(k,z), (51)
Snmw(ρ,ϕ,z)=cos(mϕ)Snm(ρ,z),Snmq(ρ,ϕ,z)=sin(mϕ)Snm(ρ,z),S^{w}_{nm}\left(\rho,\phi,z\right)=\cos\left(m\phi\right)S_{nm}\left(\rho,z\right),\quad S^{q}_{nm}\left(\rho,\phi,z\right)=\sin\left(m\phi\right)S_{nm}\left(\rho,z\right), (52)

where,

Cnp1(k,z)=iμ0ρcnLckeik(zpLs)(e(1)pikL2+(1)n+1e(1)pikL1n2π2Lc2k2),\displaystyle C^{1}_{np}(k,z)=i\mu_{0}\rho_{c}nL_{c}ke^{ik(z-pL_{s})}\left(\frac{e^{-(-1)^{p}ikL_{2}}+(-1)^{n+1}e^{-(-1)^{p}ikL_{1}}}{n^{2}\pi^{2}-L_{c}^{2}k^{2}}\right), (53)
Cnp2(k,z)=i(1)pLcknπCnp1(k,z),\displaystyle C^{2}_{np}(k,z)=\frac{i(-1)^{p}L_{c}k}{n\pi}C^{1}_{np}(k,z), (54)
Cnp3(k,z)=i(1)pLc|k|nπkρCnp1(k,z),\displaystyle C^{3}_{np}(k,z)=-\frac{i(-1)^{p}L_{c}|k|}{n\pi k\rho}C^{1}_{np}(k,z), (55)
Cnp4(k,z)=i|k|kCnp1(k,z),\displaystyle C^{4}_{np}(k,z)=\frac{i|k|}{k}C^{1}_{np}(k,z), (56)
Cnp5(k,z)=(1)pLc|k|nπCnp1(k,z).\displaystyle C^{5}_{np}(k,z)=-\frac{(-1)^{p}L_{c}|k|}{n\pi}C^{1}_{np}(k,z). (57)

Performing the integrals over kk by splitting up the odd and even terms in pp while expressing the summation over the infinite pseudo-current densities through a Fourier series expansion

p=e2ikpLs\displaystyle\sum_{p=-\infty}^{\infty}e^{2ikpL_{s}} =πLsp=δ(kπpLs),\displaystyle=\frac{\pi}{L_{s}}\sum_{p=-\infty}^{\infty}\delta\left(k-\frac{\pi p}{L_{s}}\right), (58)

we can simplify the expressions in (45), (46), (48), (50), and (51), to find that

Fn(ρ,z)=p=I0(|πpLs|ρ)\bBigg@4(K0(|πpLs|ρc)I0(|πpLs|ρc)K0(|πpLs|ρs)I0(|πpLs|ρs)\bBigg@4)Cnp1(z)\displaystyle F_{n}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}I^{\prime}_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho\right)\bBigg@{4}(K^{\prime}_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)-\frac{I^{\prime}_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)K_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}{I_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}\bBigg@{4})C^{1}_{np}(z)
Gnm(ρ,z)=p=Im(|πpLs|ρ)\bBigg@4(Km(|πpLs|ρc)Im(|πpLs|ρc)Km(|πpLs|ρs)Im(|πpLs|ρs)\bBigg@4)Cnp2(z),\displaystyle G_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}I^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho\right)\bBigg@{4}(K^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)-\frac{I^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)K_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}{I_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}\bBigg@{4})C^{2}_{np}(z), (59)
Hnm(ρ,z)=p=mIm(|πpLs|ρ)\bBigg@4(Km(|πpLs|ρc)Im(|πpLs|ρc)Km(|πpLs|ρs)Im(|πpLs|ρs)\bBigg@4)Cnp3(z),\displaystyle H_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}mI_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho\right)\bBigg@{4}(K^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)-\frac{I^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)K_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}{I_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}\bBigg@{4})C^{3}_{np}(z), (60)
Dn(ρ,z)=p=I0(|πpLs|ρ)\bBigg@4(K0(|πpLs|ρc)I0(|πpLs|ρc)K0(|πpLs|ρs)I0(|πpLs|ρs)\bBigg@4)Cnp4(z),\displaystyle D_{n}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}I_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho\right)\bBigg@{4}(K^{\prime}_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)-\frac{I^{\prime}_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)K_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}{I_{0}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}\bBigg@{4})C^{4}_{np}(z), (61)
Snm(ρ,z)=p=Im(|πpLs|ρ)\bBigg@4(Km(|πpLs|ρc)Im(|πpLs|ρc)Km(|πpLs|ρs)Im(|πpLs|ρs)\bBigg@4)Cnp5(z),\displaystyle S_{nm}\left(\rho,z\right)=\sum_{p=-\infty}^{\infty}I_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho\right)\bBigg@{4}(K^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)-\frac{I^{\prime}_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{c}\right)K_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}{I_{m}\left(\left|\frac{\pi p}{L_{s}}\right|\rho_{s}\right)}\bBigg@{4})C^{5}_{np}(z), (62)

where,

Cnp1(z)=iμ0ρcnLcpeiπpzLsn2Ls2Lc2p2\displaystyle C^{1}_{np}(z)=i\mu_{0}\rho_{c}nL_{c}\frac{pe^{i\frac{\pi pz}{L_{s}}}}{n^{2}L_{s}^{2}-L_{c}^{2}p^{2}} (((1)peiπpL2Ls+eiπpL2Ls)\displaystyle\Bigg{(}\left((-1)^{p}e^{i\frac{\pi pL_{2}}{L_{s}}}+e^{-i\frac{\pi pL_{2}}{L_{s}}}\right)
+(1)n+1((1)peiπpL1Ls+eiπpL1Ls)),\displaystyle\qquad\qquad+(-1)^{n+1}\left((-1)^{p}e^{i\frac{\pi pL_{1}}{L_{s}}}+e^{-i\frac{\pi pL_{1}}{L_{s}}}\right)\Bigg{)}, (63)
Cnp2(z)=μ0ρcLc2Lsp2eiπpzLsn2Ls2Lc2p2\displaystyle C^{2}_{np}(z)=\frac{\mu_{0}\rho_{c}L_{c}^{2}}{L_{s}}\frac{p^{2}e^{i\frac{\pi pz}{L_{s}}}}{n^{2}L_{s}^{2}-L_{c}^{2}p^{2}} (((1)peiπpL2LseiπpL2Ls)\displaystyle\Bigg{(}\left((-1)^{p}e^{i\frac{\pi pL_{2}}{L_{s}}}-e^{-i\frac{\pi pL_{2}}{L_{s}}}\right)
+(1)n+1((1)peiπpL1LseiπpL1Ls)),\displaystyle\qquad\qquad+(-1)^{n+1}\left((-1)^{p}e^{i\frac{\pi pL_{1}}{L_{s}}}-e^{-i\frac{\pi pL_{1}}{L_{s}}}\right)\Bigg{)}, (64)
Cnp3(z)=|p|Lsp2πρCnp2(z),\displaystyle C^{3}_{np}(z)=-\frac{|p|L_{s}}{p^{2}\pi\rho}C^{2}_{np}(z), (65)
Cnp4(z)=i|p|pCnp1(z),\displaystyle C^{4}_{np}(z)=\frac{i|p|}{p}C^{1}_{np}(z), (66)
Cnp5(z)=i|p|pCnp2(z).\displaystyle C^{5}_{np}(z)=\frac{i|p|}{p}C^{2}_{np}(z). (67)

Supplementary Material

A solenoidal coil

As shown in previous work [36, 37, 38], a solenoid of the same length as the high-permeability cylinder provides the most optimal solution for generating a constant axial field. Due to the image currents, the finite solenoid effectively acts as one of infinite extension, resulting in the most homogeneous possible magnetic field in the zz-direction. A perfect finite solenoid of length LcL_{c} carries a total current of

It=Lc/2Lc/2dzI,I_{t}=\int_{-L_{c}/2}^{L_{c}/2}\mathrm{d}z^{\prime}\ I, (68)

where II is the current density, i.e. the current per unit solenoid length, resulting in the azimuthal current It/LcI_{t}/L_{c}. Using (25) the Fourier transform of the current through a finite solenoid given by

Jϕmp(k)=Itδm0eikpLcSinc(kLc/2).J_{\phi}^{mp}(k)=I_{t}\delta_{m0}e^{-ikpL_{c}}\textnormal{Sinc}(kL_{c}/2). (69)

Substituting the above equation into (33) gives the magnetic field in the zz-direction

Bz(ρ,ϕ,z)=μ0Itρc2πp=dk|k|eikzeikpLSinc(kLc/2)I0(|k|ρ)\displaystyle B_{z}\left(\rho,\phi,z\right)=\frac{\mu_{0}I_{t}\rho_{c}}{2\pi}\sum_{p=-\infty}^{\infty}\int_{-\infty}^{\infty}\mathrm{d}k\ |k|e^{ikz}e^{-ikpL}\textnormal{Sinc}(kL_{c}/2)I_{0}(|k|\rho)\qquad\qquad\qquad\qquad
×[K1(|k|ρc)+I1(|k|ρc)K0(|k|ρs)I0(|k|ρs)].\displaystyle\times\Bigg{[}K_{1}(|k|\rho_{c})+\frac{I_{1}(|k|\rho_{c})K_{0}(|k|\rho_{s})}{I_{0}(|k|\rho_{s})}\Bigg{]}. (70)

Performing the integral over kk by expressing the summation over the infinite pseudo-current reflections through a Fourier series expansion

p=eikpLs\displaystyle\sum_{p=-\infty}^{\infty}e^{ikpL_{s}} =2πLsp=δ(k2πpLs),\displaystyle=\frac{2\pi}{L_{s}}\sum_{p=-\infty}^{\infty}\delta\left(k-\frac{2\pi p}{L_{s}}\right), (71)

we find

Bz(ρ,ϕ,z)=μ0ItρcLcp=|2πpLc|cos(2πpzLc)Sinc(πp)I0(|2πpLc|ρ)\displaystyle B_{z}\left(\rho,\phi,z\right)=\frac{\mu_{0}I_{t}\rho_{c}}{L_{c}}\sum_{p=-\infty}^{\infty}\left|\frac{2\pi p}{L_{c}}\right|\cos\left(\frac{2\pi pz}{L_{c}}\right)\textnormal{Sinc}(\pi p)I_{0}\left(\left|\frac{2\pi p}{L_{c}}\right|\rho\right)\qquad\qquad\qquad\qquad\qquad
×[K1(|2πpLc|ρc)+I1(|2πpLc|ρc)K0(|2πpLc|ρs)I0(|2πpLc|ρs)].\displaystyle\times\Bigg{[}K_{1}\left(\left|\frac{2\pi p}{L_{c}}\right|\rho_{c}\right)+\frac{I_{1}(|\frac{2\pi p}{L_{c}}|\rho_{c})K_{0}(|\frac{2\pi p}{L_{c}}|\rho_{s})}{I_{0}(|\frac{2\pi p}{L_{c}}|\rho_{s})}\Bigg{]}. (72)

This summation can be simplified as the only contributing term is p=0p=0, which, when evaluated results in

Bz(ρ,ϕ,z)=μ0ItLc.B_{z}\left(\rho,\phi,z\right)=\frac{\mu_{0}I_{t}}{L_{c}}. (73)

This result might seem counter intuitive because the magnetic field is identical to a long solenoid in free space with NN turns, i.e. Bz(ρ,ϕ,z)=μ0IN/LcB_{z}\left(\rho,\phi,z\right)=\mu_{0}IN/L_{c}, with no field created by the cylindrical surface of the passive shield. This is, however, entirely physical as an infinite solenoid generates zero magnetic field outside of the solenoid itself. Consequently, there is no response due to the surface of the cylindrical wall and, therefore, no magnetic field generated by the cylindrical surface of the perfect magnetic conductor, i.e. the high-permeability cylinder.

Example coil designs

In Figs. 89, we present further hybrid active–passive systems, which generate more complex magnetic field landscapes beyond the constant field and field gradient considered in the main body of the paper. The co-ordinate axes and magnetic field plots are labelled in the same way as the systems presented in the main text. The design in Fig. 8 generates uniform axial magnetic fields, BzB_{z}, with different strengths in two different regions of a magnetic shield. The design in Fig. 9 generates a quadratic gradient field whose spatial variation matches the harmonic 𝐁=(2xz𝒙^2yz𝒚^+(x2y2)𝒛^)\mathbf{B}=(2xz~\bm{\hat{x}}-2yz~\bm{\hat{y}}+(x^{2}-y^{2})~\bm{\hat{z}}). Further systems can be designed using Python code in the GitHub repository listed in the addendum.

Refer to caption
Refer to caption
Figure 8: Wire layouts (a) and performance (b) of an optimized hybrid active–passive uniform axial field-generating system in which current flows on a cylinder of length Lc=0.95L_{c}=0.95 m and radius ρc=0.245\rho_{c}=0.245 m. The wire layouts are optimized to generate axial constant fields, BzB_{z}, of two different magnitudes along the zz-axis of the cylinder in two separate regions. The current-carrying cylinder is placed symmetrically inside a perfect closed magnetic shield of length Ls=1L_{s}=1 m and radius ρs=0.25\rho_{s}=0.25 m and target magnetic field values of Bz=1B_{z}=1 μ\muT and Bz=2B_{z}=2 μ\muT are optimized between ρ=[0,ρc/2]\rho=[0,\rho_{c}/2] and either z=[0.45Lc,0.15Lc]z=[-0.45L_{c},0.15L_{c}] [dashed black lines in (b) where target Bz=1B_{z}=1 μ\muT] and z=[0.15Lc,0.45Lc]z=[0.15L_{c},0.45L_{c}] [dot-dashed black lines in (b) where target Bz=2B_{z}=2 μ\mu]. The least squares optimization was performed with parameters N=200N=200, M=0M=0, and β=2.97×1011\beta=2.97\times 10^{-11}. (a) Color map of the optimal current streamfunction on the cylinder [blue and red shaded regions correspond to the flow of current in opposite senses and their intensity shows the streamfunction magnitude from low (white) to high (intense color)]. Solid and dashed black curves represent discrete wires with opposite senses of current flow, approximating the current continuum with Nφ=8N_{\varphi}=8 contour levels. (b) Axial magnetic field, BzB_{z}, versus axial position, zz, calculated from the current continuum in (a) in three ways: analytically using (37)-(39) (solid red curve); numerically using COMSOL Multiphysics® Version 5.5a and modelling the high-permeability cylinder as a perfect magnetic conductor (blue dotted curve, which essentially overlays the red curve); numerically without the high-permeability cylinder and using the Biot–Savart law with Nφ=250N_{\varphi}=250 contour levels (dashed green curve).
Refer to caption
Refer to caption
Refer to caption
Figure 9: Wire layouts (a) and performance (b–c) of an optimized hybrid active–passive quadratic gradient field-generating system in which current flows on a cylinder of length Lc=0.95L_{c}=0.95 m and radius ρc=0.245\rho_{c}=0.245 m. The wire layouts are optimized to generate a quadratic gradient field, 𝐁=(2xz𝒙^2yz𝒚^+(x2y2)𝒛^)\mathbf{B}=(2xz~\bm{\hat{x}}-2yz~\bm{\hat{y}}+(x^{2}-y^{2})~\bm{\hat{z}}) μ\muT. The current-carrying cylinder is placed symmetrically inside a perfect closed magnetic shield of length Ls=1L_{s}=1 m and radius ρs=0.25\rho_{s}=0.25 m and the magnetic field is optimized between ρ=[0,ρc/2]\rho=[0,\rho_{c}/2] and z=±Lc/4z=\pm{L_{c}}/4; dashed black lines in (b–c), respectively. The least squares optimization was performed with parameters N=200N=200, M=2M=2, and β=5.95×1012\beta=5.95\times 10^{-12}. (a) Color map of the optimal current streamfunction on the cylinder [blue and red shaded regions correspond to the flow of current in opposite senses and their intensity shows the streamfunction magnitude from low (white) to high (intense color)]. Solid and dashed black curves represent discrete wires with opposite senses of current flow, approximating the current continuum with Nφ=24N_{\varphi}=24 contour levels. (b) Axial magnetic field, BzB_{z}, versus transverse position, xx, at z=0z=0 calculated from the current continuum in (a) in three ways: analytically using (37)-(39) (solid red curve); numerically using COMSOL Multiphysics® Version 5.5a and modelling the high-permeability cylinder as a perfect magnetic conductor (blue dotted curve, which essentially overlays the red curve); numerically without the high-permeability cylinder and using the Biot–Savart law with Nφ=250N_{\varphi}=250 contour levels (dashed green curve). (c) Transverse magnetic field, BxB_{x}, versus axial position, zz, at x=0.05x=0.05 m calculated from the current continuum in (a) in the same three ways as (b); labelled as in (b).