Skip to main content

Welcome to a Grasp lesson

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

Lesson 64

Field Shaping with Compensation Coils

Recommended resources

Hello! Welcome back to our course on high magnetic field technology.

In our last lesson, we focused on the crucial engineering practice of modular magnet design. We saw how building magnets from independent, nested coils makes them easier to maintain, repair, and cool, which is essential for the high-availability environment of a user facility like LNCMI.

Having designed a powerful and serviceable magnet, we now turn our attention to the quality of the field it produces. For most physics experiments, simply generating a high field isn't enough; the field must be extremely uniform across the sample's volume to ensure that all parts of the sample experience the same conditions. This lesson addresses that need directly, fulfilling the learning outcome: Describe the principles of field shaping using compensation coils (e.g., Maxwell pairs) to improve field homogeneity.

We will start with the classic Helmholtz coil, move to more advanced configurations like the Maxwell coil, and finally, explore the general mathematical principle that governs the design of all compensation coil systems.

1. The Challenge of Homogeneity and the Helmholtz Solution

A simple, finite-length solenoid produces its most uniform field at its geometric center, but the field strength falls off as you move away from the center, either radially or axially. For precision experiments, this fall-off, or inhomogeneity, can be a significant source of error.

The most fundamental approach to improving axial homogeneity is the Helmholtz coil. This configuration consists of two identical circular coils, separated by a distance equal to their radius, and carrying the same current in the same direction.

To understand how this specific arrangement creates a uniform field, we will walk through the derivation of the on-axis magnetic field.

Magnetic Field from a Helmholtz Coil

This video from Physics Ninja provides a clear, step-by-step derivation of the on-axis magnetic field for a Helmholtz coil. It builds the total field by superimposing the fields from two individual coils.

Please watch from 6:28 to 22:27. The key parts are: Adapting the Single Loop Formula (6:28 - 10:39): See how the standard formula for a single loop's on-axis field is modified to account for a coil that is shifted away from the origin. Combining Two Coils (10:39 - 13:01): Understand how the fields from the two shifted coils are added together to get the total field of the Helmholtz pair. Field at the Center (13:01 - 17:25): Follow the calculation for the field at the exact midpoint (z=0). Field at the Coil Plane (17:25 - 22:27): See the calculation for the field at the center of one of the coils (z=R/2). The fact that this value is very close to the field at z=0 demonstrates the uniformity.

The crucial insight from this derivation is what happens when we set the coil separation equal to the radius . To formalize this, we can look at the Taylor series expansion of the magnetic field along the axis around the center :

  • By symmetry, all odd derivatives (, , etc.) are zero at the center.
  • The key contribution of the Helmholtz geometry is that the specific separation also makes the second derivative, , equal to zero.

By cancelling the lowest-order non-zero term in the expansion, the field in the central region becomes exceptionally uniform, with deviations only appearing at the order. This principle of cancelling derivatives is the foundation of field shaping.

While we've focused on circular coils, this principle extends to other geometries. For experiments requiring optical access from multiple directions, rectangular Helmholtz coils are often used. The same principle applies: an optimal spacing exists that cancels the second-order derivative and maximizes the volume of uniform field.


2. Higher-Order Correction: Maxwell Coils and Shimming

The Helmholtz configuration is excellent, but for even more stringent homogeneity requirements (common in NMR/MRI or quantum physics), we need to cancel higher-order derivatives as well.

A classic example is the Maxwell coil, which is designed to cancel both the second and fourth derivatives ( and ), creating an even larger region of uniformity. This typically involves more than two coils and specific current ratios between them.

Braun-Maxwell Coil System for Field Homogeneity
This diagram illustrates a Braun-Maxwell coil system. It uses three coaxial coils with specific radii, positions, and current ratios to achieve a very high degree of field homogeneity. The central coil has radius R and current I, while the two outer coils have a radius of \(\sqrt{4/7}R\), are placed at a distance of \(\sqrt{3/7}R\) from the center, and carry a current of \((49/64)I\).

This leads to the general, practical process known as shimming: making small adjustments to the magnetic field to improve its homogeneity. The extreme requirements of Magnetic Resonance Imaging (MRI) provide an excellent analogy for the techniques used in research magnets.

Introducing MRI: Hardware - Static Magnetic Field (17 of 56)

This video from Albert Einstein College of Medicine, though focused on MRI, explains the concept of shimming perfectly. The challenge of creating a uniform field in a large bore for a human body is directly analogous to doing so for a complex physics experiment.

Watch the segment from 5:01 to 9:21. Pay attention to the different types of shimming described: The Concept of Shimming (5:01 - 6:19): Understand the analogy of shimming a wobbly table. Passive Shimming (6:19 - 6:59): This involves placing small pieces of ferromagnetic material at specific locations inside the magnet bore during installation. Superconducting Shims (6:59 - 8:02): These are additional superconducting coils whose currents are set once at the factory to make gross corrections. Room-Temperature (Active) Shims (8:02 - 9:21): These are regular electromagnets used to make fine-tuned adjustments before each experiment (or scan), correcting for distortions caused by the sample or equipment being placed in the magnet.

In the context of pulsed field magnets at a facility like LNCMI, "active shimming" is accomplished with a set of compensation coils. These are separate, smaller coils placed around the main magnet. By running small, controlled currents through them, operators can generate corrective fields that cancel out the inherent inhomogeneities of the main magnet and any distortions from the experimental setup.

Test your understanding!

An experiment requires a field uniformity of 100 parts-per-million (ppm) over a 1 cm³ sample volume. The main pulsed magnet can only provide 1000 ppm uniformity. What combination of shimming techniques would an engineer likely use to meet the experimental requirement?

Show answer

An engineer would use a multi-stage approach.

  1. Passive Shimming: During the magnet's construction and installation, passive shims (carefully shaped and placed metal pieces) and possibly fixed-current superconducting shims (if it's a hybrid system) would be used to correct the largest, static inhomogeneities down to, for example, 200 ppm. This corrects for manufacturing tolerances in the main coil.
  2. Active Shimming: A set of room-temperature compensation coils would then be used for dynamic, fine-tuned correction. Before the experiment, the field would be mapped, and computer-controlled power supplies would energize the compensation coils to cancel the remaining 200 ppm of inhomogeneity and any new distortions from the sample probe, bringing the field within the required 100 ppm tolerance.

3. The General Principle: Space Harmonic Suppression (SHS)

We've seen specific examples like Helmholtz and Maxwell coils. Now, let's explore the universal mathematical framework that allows engineers to design any coil system for optimal homogeneity. The core idea is to treat the magnetic field's spatial variation in terms of harmonics, much like decomposing a sound wave into its constituent frequencies.

The ideal current distribution on a cylinder to produce a perfectly uniform transverse field is a sinusoidal function, . A real coil, made of discrete wires, can only approximate this. The goal of compensation coil design is to place discrete wires in such a way that their combined field best mimics this ideal distribution.

The Space Harmonic Suppression (SHS) method formalizes this.

The magnetic field homogeneity of coils by means of the ...

To grasp the fundamental theory, we'll consult a more advanced paper. This will introduce a powerful, generalized method for designing homogeneous field coils.

This reading is more theoretical but provides the core principle. Section 2 (page 401-402): Read 'Homogeneous magnetic field coils: the cosine current distribution theorem'. The key takeaway is that an ideal, perfectly uniform transverse field is generated by a current density that varies as cos(θ) around the coil's circumference. Section 5 (page 404): Read 'Spatial harmonics of the current distribution...'. The central idea here is that the field from any arrangement of discrete wires can be expressed as a Fourier series. The uniform field is the first term (the fundamental harmonic). Inhomogeneities are the higher-order harmonics. By strategically choosing the angular positions (θn) of the wires, we can set the coefficients of the unwanted harmonics to zero, effectively cancelling them.

In essence, the SHS method gives us a recipe for field shaping:

  1. Express the magnetic field from a set of discrete coils as a spatial Fourier series.
  2. The n=1 term corresponds to the desired uniform field.
  3. The n=3, 5, 7... terms (for a symmetric coil) correspond to the unwanted field inhomogeneities.
  4. By adding more pairs of coils at specific, calculated angles, you create a system of equations where you can force the coefficients of the lowest-order unwanted harmonics to be zero.

The Helmholtz coil is the solution for cancelling the first unwanted harmonic. The Maxwell coil cancels the first and second. The SHS method is a general algorithm that allows you to design a coil system to cancel as many harmonics as necessary to achieve a desired level of homogeneity.


Conclusion

Creating a useful high magnetic field is a two-step process: first, generate the required field strength robustly, and second, ensure that field has the necessary quality. This lesson focused on the latter. We saw how specific arrangements of coils can be used to systematically cancel out the natural inhomogeneities of the magnetic field.

Key Takeaways:

  • Field homogeneity is critical for precision experiments, and simple solenoids are inherently inhomogeneous.
  • The Helmholtz coil () is the classic solution, cancelling the second-order spatial derivative of the field along the axis.
  • More advanced systems like the Maxwell coil cancel even higher-order derivatives to create a larger uniform volume.
  • Shimming is the practical process of improving homogeneity, which can be passive (fixed metal pieces) or active (controllable compensation coils).
  • The unifying principle is Space Harmonic Suppression (SHS), a mathematical method that uses Fourier analysis to determine the optimal placement of conductors to cancel unwanted spatial field harmonics.

Next Lesson Preview:
In this lesson, we have described the principles of field shaping. In the next lesson, we will put this theory into practice to address 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 move from principles to direct calculation, applying the SHS method to design a simple compensation system.