Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 65

Designing Nulling Coils for Field Gradient Correction

Recommended resources

Hello! Welcome to the next lesson in our course on high magnetic field technology.

In the last lesson, we explored the principles behind shaping magnetic fields to improve homogeneity. We saw how specific coil arrangements like the Helmholtz pair can cancel unwanted low-order field derivatives and learned about the general method of Space Harmonic Suppression (SHS).

This lesson will take those principles and put them into practice. Our goal is to move from the why to the how, directly addressing the learning outcome: Calculate the geometry and current required for a set of correction coils to null field gradients in a sample volume. We will develop a systematic, quantitative method for designing and operating a correction coil system, a critical step in building any high-precision magnet.

1. Describing Inhomogeneity: The Harmonic Expansion

To correct a field, we first need a precise mathematical language to describe its imperfections. In the previous lesson, we used a one-dimensional Taylor series. A more powerful and general approach, standard in magnet design, is the harmonic expansion.

In a source-free region, the magnetic field can be expressed as a sum over a basis of polynomial functions, , which are solutions to Maxwell's equations.

Here:

  • are the harmonic polynomials. They describe the spatial shape of the field components. For example, represents a uniform vertical field, while represents a linear vertical gradient along the z-axis ().
  • are the generalized magnetic gradients. These coefficients represent the strength of each harmonic component in the total field. Our goal is to make the unwanted coefficients as close to zero as possible.

The core idea of field correction is to use auxiliary coils to generate a field with the same harmonic shape () as the unwanted gradient but with the opposite sign, such that the sum of the main field's gradient and the correction field's gradient is zero.

To get a concrete feel for these harmonic polynomials, we'll consult a paper describing the coil system for the n2EDM experiment. This resource provides the rigorous foundation we need.

Generating a highly uniform magnetic field inside the ...

This paper, 'Generating a highly uniform magnetic field inside the...', details a state-of-the-art system for field control. We will use it to understand the mathematical basis of the harmonic expansion.

Please read the following sections: Section 2 (page 3): Start at 'Magnetic field uniformity in n2EDM'. Focus on Equation (2.1) which defines the harmonic expansion. Note how the coefficients G_lm are called 'generalized magnetic gradients'. Appendix A (pages 13-15): Skim this appendix. It shows how the harmonic polynomials Π_lm are derived from the magnetic scalar potential and Laplace's equation. Pay particular attention to Table 5 and Table 6, which list the explicit forms of these polynomials. For example, in Table 6, for l=1, m=0, you can see that the Π_z component is just z, confirming this mode represents a linear gradient ∂Bz/∂z.

This framework gives us our targets. If we can measure or simulate the field of our main magnet and decompose it into its harmonic components, we will get a list of unwanted gradient coefficients that we need to cancel.


2. From Geometry to Gradients: The Coil Constant

Now, how do we design a coil that produces a specific harmonic, for instance, a linear gradient ? The geometry of the coil windings determines the spectrum of harmonics it generates.

Consider a simple coil to generate a linear gradient along the z-axis, . This is often called a coil.

From the n2EDM paper (resource LINK, Appendix D), these are geometries for coils designed to produce specific gradients. Left: A G10 coil for a linear z-gradient. It's an anti-Helmholtz configuration with two pairs of loops carrying opposite currents. Middle: A G20 coil for a quadratic z-gradient. Right: A G30 coil for a cubic z-gradient.

Let's focus on the G10 coil on the left. It consists of two pairs of square loops. The inner pair and outer pair have currents flowing in opposite directions. At the center (), the vertical fields from the top and bottom halves cancel out, so . However, since the field from the top loops decreases with distance and the field from the bottom loops increases (becomes less negative) with distance, their derivatives add up, creating a strong, nearly linear gradient across the center.

For any given correction coil geometry, we can define a coil constant, , which quantifies how efficiently it generates a specific harmonic gradient per unit of current.

This constant depends only on the coil's geometry. It can be calculated by:

  1. Using the Biot-Savart law to find the magnetic field produced by 1 Ampere of current in the coil.
  2. Projecting this field onto the harmonic polynomials to find the resulting gradient coefficients .

While the full calculation is a complex numerical integration, the principle is straightforward. For simple on-axis gradients (), this is equivalent to calculating the field's spatial derivatives at the center.

To see the kind of formulas involved in step 1, we can refer to the thesis on Helmholtz coil design.

Design and Implementation of Magnetic Field Compensation ...

This thesis, 'Design and Implementation of Magnetic Field Compensation...', provides the detailed equations for the magnetic field from a rectangular coil pair, which are derived by applying the Biot-Savart law to each wire segment.

Briefly look at Appendix A (pages 35-37). You don't need to study these equations in detail. The purpose is to see the explicit (and lengthy) formulas for the Bx, By, and Bz components of the field from a rectangular coil pair. Calculating a coil constant involves taking spatial derivatives of these expressions at the origin.


3. The Calculation: Nulling the Gradients

With the concepts of harmonic gradients and coil constants, we can now set up the calculation.

Imagine our main pulsed coil, when fired, produces the desired high field (the term) but also has a significant, unwanted linear z-gradient, .

Problem: We have a correction coil (like the one pictured above) with a known coil constant . What current, , do we need to pass through it to null the main coil's gradient?

Solution:
The total gradient in the system is the sum of the gradient from the main coil and the gradient from the correction coil:

We know that . To null the total gradient, we set :

Solving for the required current gives our answer:

This is the fundamental calculation. The negative sign simply means the correction coil's current must generate a gradient that opposes the unwanted one.

Test your understanding!

A pulsed magnet produces a central field of 50 T. Field mapping reveals an unwanted quadratic gradient . You have a G20 correction coil (like the one in the middle of the image above) with a pre-calculated coil constant of .

What current must you apply to the G20 coil to cancel this inhomogeneity?

Show answer

We use the formula .

You would need to apply a current of +60 A to the G20 coil. The positive current makes sense, as the coil's intrinsic constant is negative, so a positive current will generate the required negative gradient to cancel the positive unwanted one.


4. The General Solution: The Coil Matrix

In a real system, the situation is more complex.

  1. A coil designed to be a "pure" generator might also produce small, higher-order gradients (, , etc.).
  2. The main magnet will have many unwanted gradients (, , , etc.), not just one.

Therefore, a real compensation system uses an array of different correction coils. The effect of this array is captured by a coil constant matrix, often called a shimming matrix.

Let's say we want to correct different harmonic gradients using different correction coils. We can write the problem in matrix form:

Where:

  • is a vector of the unwanted gradients from the main magnet.
  • is a vector of the currents we want to find for our correction coils.
  • is the coil constant matrix. The element is the strength of the -th harmonic gradient produced by a unit current in the -th coil.

To null the gradients, we set and solve for the currents . If the number of coils equals the number of gradients we want to control (), the matrix is square and we can solve by inverting it:

This matrix equation is the heart of a modern, automated field correction system. Before an experiment, the system performs a field map to determine . Since the coil matrix is a fixed property of the hardware (determined once by simulation and measurement), the control computer can instantly calculate the required correction currents and apply them.

The n2EDM paper provides a perfect description of this exact process in a real-world application.

Generating a highly uniform magnetic field inside the ...

Let's return to the n2EDM paper to see how this matrix method is implemented in practice.

Read Section 4.5 (page 12), 'Magnetic field optimization with gradient and optimization coils'. This short section is a beautiful summary of our lesson. It states: 'Individual mapping of the ... coils allow us to determine their respective coil constants... One can then determine from the measured harmonic spectrum the coil currents that cancel a given set of harmonic modes.' This is a direct description of calculating \mathbf{C} and then solving for \vec{I}.


Conclusion

In this lesson, we transitioned from the principles of field shaping to a concrete, calculable methodology. We have established a complete framework for designing and operating a compensation coil system.

Key Takeaways:

  • Magnetic field inhomogeneity is best described by a harmonic expansion, where coefficients quantify the strength of each unwanted gradient.
  • Correction coils are designed with specific geometries to target specific harmonics. The relationship between the coil's current and the gradient it produces is its coil constant, .
  • For a single unwanted gradient, the required correction current is simple to calculate: .
  • For a realistic system with multiple gradients and multiple correction coils, the problem is solved using the coil matrix: . This is the basis for automated shimming systems in modern magnet facilities.

Next Lesson Preview:
We have now covered the design of both the main field coil and the correction coils needed to ensure field quality. Our next lesson, "Explain the physical principles of single-turn coil field generation and the extreme mechanical stresses involved," will shift gears to an entirely different and more extreme method of generating pulsed fields, opening up the topic of ultra-high field generation.