1 Introduction

Fourier transform ion cyclotron resonance mass-spectrometry is a well established powerful experimental technique for solving a wide range of problems in analytical chemistry and biochemistry, such as determination of the composition of complex mixtures, identification of biological compounds, and accurate mass measurement [16].

The main part of the ICR mass spectrometer is a measuring cell, which is in fact the Penning ion trap in which ions are trapped by a combination of electric and magnetic fields. In order to measure the masses of the ions after they are trapped in the cell, cyclotron motion of the ions is excited by the rf field and the frequency of this motion is determined by measuring the current induced in the external electric circle connected to the detection electrodes of the cell. After the Fourier transform of this time domain signal one obtains its frequency spectrum and after calibration a mass spectrum.

The configuration of the electric field inside the ion trap strongly influences the analytical characteristics of the ICR mass spectrometer, its resolving power and mass accuracy [7, 8].

Recently performed supercomputer simulations of ion clouds motion in a Penning trap showed that the hyperbolic field is the best for achieving long duration of synchronous ion motion and obtaining high resolving power [911]. Making the electric field distribution inside the FT ICR cell close to the field in a hyperbolic cell we call cell harmonization.

Our approach to cell harmonization is based on the so-called dynamic harmonization of the electric field [12]. The cell field becomes hyperbolic after being averaged by the cyclotron motion. The principal design of such a cell was previously described in [12] and is presented in Figure 1a.

Figure 1
figure 1

(a)- The ICR cell with dynamic harmonization [12] (a). Trapping electrodes with surface geometry close to spherical (b). Segments for electrostatic field harmonization (c). Grounded segments (d). Line separating detection electrodes assembly from excitation electrode assembly (b)- The designs of the compensation ICR cell with dynamic harmonization (a). Trapping electrodes with surface geometry close to spherical (b). Extra electrodes for compensation of magnetic field inhomogeneity by average radial electrostatic field (c). Segments for electrostatic field harmonization (d). Grounded segments electrodes are connected into groups for excitation and detection (not shown of the figure). (c)- Magnetic field near center for two 7 Tesla Bruker magnets. Black, installed in Bremen, red, installed in Moscow. Magnetic field [T]. (d)- Magnetic field for 7 Tesla Bruker magnet installed in Bremen. Magnetic field [T]

As described in [12] this cell is a cylinder segmented by curves along axial (magnetic field) direction

$$ \alpha = \frac{{2\pi }}{N}n\pm b\left( {1 - {{{\left( {\frac{z}{a}} \right)}}^2}} \right);\;n = 0,1...,N - 1 $$
(1)

Here the z-axial coordinate of the cell, \( b = \frac{\pi }{N} - \frac{\pi }{{60}},a \) – is half the length of the cell, α– the angle coordinate of a point on the curve, N – number of electrodes of each type. The original experimentally tested ion trap with dynamic harmonization had eight segments with width decreasing to the center of the cell and eight grounded electrodes with width increasing to the center, four of which are divided into two segments, each of which belongs to either excitation or detection groups of electrodes. The trapping potential V is applied to first group of electrodes and to trapping electrodes. Other electrodes are grounded to DC voltage; rf voltages are applied via capacitors to excitation groups of electrodes and detection group electrodes are connected with each other and with preamplifier by capacitors of appropriate value of capacity.

The ion trap with dynamic harmonization showed the highest resolving power ever achieved on peptides and proteins [13]. The time of transient duration reaches 300 s and seems to be limited only by the vacuum inside the FT ICR cell and magnetic field inhomogeneity [14]. Such results were obtained on a solenoid magnet of high homogeneity (less than 1 ppm of magnetic field in the central region [6 cm in diameter and 6 cm length]). In order to obtain a long time domain signal using the dynamically harmonized cell on the other systems, the magnetic field of their magnets should be corrected correspondingly. Among the systems of interest are FT ICR mass spectrometers on permanent magnets, with inhomogeneity of the magnetic field about 500 ppm in a 1 cm3 cube [15], and on cryogenic free magnets with inhomogeneity of 100 ppm in a cylindrical volume 25 mm in diameter and 40 mm in length. These instruments demonstrated the resolving power of about 100,000 for m/z around 500. For such ICR mass spectrometers the inhomogeneity of the magnetic field is the main factor influencing the time of signal acquisition and resolving power. The inhomogeneity of the magnetic field was also the main limiting factor for an ICR mass spectrometer equipped with a 25 Tesla resistive magnet [16]. The inhomogeneity of the magnetic field in a 1 cm in diameter sphere was approximately 50 ppm for this magnet. Correction of the magnetic field to achieve higher inhomogeneity is an expensive and complicated procedure.

Recently it was demonstrated that in the case of Gabrielse’s type FT ICR cell, the influence of the inhomogeneity of the magnetic field could be decreased by compensating the electric field by accurately adjusting the compensation voltage on one of the electrodes of seven segment cell [1, 8, 17].

Here the same idea is applied to the dynamically harmonized cell. We present a design of the ICR cell with magnetic field inhomogeneity compensation based on the principle of the dynamic field creation. Additional segments with a potential different from that on the main segments are introduced into the original ion trap with dynamic harmonization [12, 13], thus creating an additional electric field inside the cell. These segments are shaped by the curves of fourth order to z-coordinate (axial). Such electrodes can create a fourth order correction to the electric field and by turning voltage on them it is possible to compensate 2-nd order inhomogeneity of the magnetic field (see Figure 1b. Computer experiments were performed with additional segments shaped by curves of even higher orders: sixth and eighth to z-coordinate for correction of higher order magnetic field inhomogeneity.)

It was shown that by varying the voltage on these additional electrodes it is possible to make the disturbances of the cyclotron frequency from the magnetic field inhomogeneity independent of the z-oscillation amplitude. The inhomogeneity of the magnetic field for the two Bruker magnets is represented in Figure 1c, d. It can be seen that in a small region near the center the magnetic field has a mainly linear inhomogeneity and for a larger z the quadratic homogeneity dominates.

2 Theory

It was shown [18, 19] that only the inhomogeneity of the magnetic field in its z direction has a considerable influence on cyclotron frequency. The effects of the inhomogeneity in radial directions are negligible. Therefore for a single ion inside the FT ICR trap the general equation for radial force balance for simplified case of circular motion is:

$$ m{{\omega }^2}r = qB\left( {r,z} \right)v + q{{E}_r}\left( {r,z} \right) $$
(2)

Where m - ion mass, q - ion charge, B(r,z) is the intensity of magnetic field in the z direction, E r (r,z) - the radial component of the electric force formed by the ion trap, ω - the cyclotron frequency, r - cyclotron radius, z - coordinate in the direction along the magnetic field, v - velocity. Divided by the cyclotron radius this equation becomes:

$$ \frac{{m{{\omega }^2}}}{q}r = B\left( {r,z} \right)\omega + \frac{{{{E}_r}\left( {r,z} \right)}}{r} $$
(3)

In case of the electric fields created by hyperbolic electrodes cyclotron frequency does not depend on z. The dependence of the magnetic field B(r,z) and the radial component of the electric field E r (r,z) on the z coordinate causes the cyclotron frequency dependence on the z coordinate. As a consequence ions with different amplitudes of z oscillation have different cyclotron frequencies and the ion cloud will experience dephasing during its cyclotron rotation. To prevent such dephasing the cyclotron frequency should be made independent of the z coordinate. Mathematically this means that its first derivative by z is equal to zero. The first derivative of Equation 3 by the z-coordinate is:

$$ \frac{m}{q}2\omega {{\omega '}_z} = {{B'}_z}\left( {r,z} \right)\omega + B\left( {r,z} \right){{\omega '}_z} + {{\left( {\frac{{{{E}_r}\left( {r,z} \right)}}{r}} \right)}^{\prime }}_z $$
(4)

and by equalizing \( {{\omega '}_z} \) to zero we obtain:

$$ {{B'}_z}\left( {r,z} \right)\omega + {{\left( {\frac{{E\left( {r,z} \right)}}{r}} \right)}^{\prime }}_z = 0 $$
(5)

Taking into account that\( \omega = \frac{{qB}}{m} \), we can rewrite Equation (5) in the following form:

$$ \frac{q}{m}{{B'}_z}\left( {r,z} \right)B\left( {r,z} \right) + {{\left( {\frac{{{{E}_r}\left( {r,z} \right)}}{r}} \right)}^{\prime }}_z = 0 $$
(6)

This is the equation describing the required relationship between the magnetic and the electric field in order for compensation to take place.

It is possible to describe the z component of the magnetic field for any magnet as a series of spherical functions as proposed in [19]:

$$ {{B}_z} = {{{A_1^0 + 2A_2^0z + 3A_2^1x + 3B_2^1y + 3A_3^0\left( {2{{z}^2} - {{x}^2} - {{y}^2}} \right)}} \left/ {{2 + ...}} \right.} $$
(7)

Current shims of different geometry (circular, rectangular) are used for shimming different terms in expansion (7). Usually the main impact on the inhomogeneity of the magnetic field is caused by the quadratic term.

As a consequence we simplified our task and considered only the inhomogeneity of the magnetic field in the following form:

$$ B = {{B}_0}\left( {1 + \gamma {{z}^2}} \right) $$
(8)

The effects of other terms were not included in our current considerations. This field may be corrected by the electric potential of the form:

$$ V = a + b\left( {{{r}^2} - 2{{z}^2}} \right) + c\left( {8{{z}^4} - 24{{z}^2}{{r}^2} + 3{{r}^4}} \right) $$
(9)

This is a result of electric field representation as a series of spherical harmonics. By inserting this into the Equation 6, we obtain:

$$ 0 = {{B}_0}\gamma 2z\omega + {{\left( {\frac{{2br + c\left( { - 48{{z}^2}r + 12{{r}^3}} \right)}}{r}} \right)}^{\prime }}_z $$
(10)

This equation can be satisfied for

$$ c = \frac{{e{{B}_0}^2\gamma }}{{48m}} $$
(11)

So, the quadratic term of the magnetic field inhomogeneity can be compensated by the fourth order spherical harmonics of the electric field.

The design of an ion trap capable to create such electric field is presented in Figure 1b. Additional segments shaped by the fourth order curve were introduced to the original ion trap with dynamic harmonization. The form of the curve obeys the equation:

$$ {{\alpha }_4} = \frac{{2\pi }}{8}n\pm {{b}_0}\left( {1 - {{{\left( {\frac{z}{{k*a}}} \right)}}^4}} \right) $$
(12)

with \( {{b}_0} = \frac{\pi }{{7.2}} - \frac{\pi }{{60}},k = 1.15 \).

If the potential on the compensation electrodes is set equal to the potential of the housing and trapping electrodes then the compensated cell becomes similar to the original cell with dynamic harmonization. So the same cell design may be successfully used for magnets of different homogeneity of the magnetic field. For magnets of high homogeneity the potential on the compensation electrodes will be close to the potential on the housing electrodes.

In the original ion trap with dynamic harmonization [12] the trapping electrodes are shaped by following the equipotentials of harmonic field. In the proposed cell with compensation electrodes the position of the trapping electrodes remained the same. This means that when the potential on the compensation electrodes is not equal to the potential on the housing electrodes the trapping electrodes do not fit the equipotential of the compensated field. This leads to the presence of additional corrections of a higher order in the electrostatic field.

It is possible to create an exact averaged compensated field of the form (9) by segmenting the trapping electrodes. See Appendix I for more details.

3 Computer Simulations

Simulation of ion cloud dynamics in the cell with dynamic harmonization is a challenging problem. The time of transient duration for such a cell could reach 300 s [13]. During this time the ion accomplishes hundreds of millions rotations. As a consequence for such long times even slight numerical errors in the calculated electromagnetic field or in the integration of ion motion equations will lead to a considerable difference between computer simulation results and experiment.

For example recently performed computer simulations of ion cloud motion in the original ion trap with dynamic harmonization [12] showed a dephasing rate which was much faster than that observed experimentally. Further investigations showed that this dephasing occurred due to the dependence of the radial component of the electric force on the z coordinate. Such dependence occurred because of errors of the electrostatic potential calculations.

The potential distribution has been calculated by several methods: finite difference method (FDM) in cylindrical and Cartesian coordinates and finite element method (FEM). We performed a multi-grid successive over-relaxation with optimal parameter method for FDM in Cartesian coordinates and multi-grid Gauss-Zeidel method for FDM in cylindrical coordinates. Seven-point stencil was used for approximation of the Laplasian. To obtain high accuracy the size of the mesh, number of intermediate meshes and number of iterations were varied. Also SIMION 8 (David Manura Scientific Instruments Services, Ringoes, NJ, USA) has been applied for comparison.

The accuracy of our calculations was controlled by comparing the analytically obtained averaged field with the field obtained for the case when the voltage on the compensation electrodes was equal to the voltage on the housing and trapping electrodes. The comparing procedure was the following. For the original ion trap with dynamic harmonization with radius R and half length Z the field averaged over the angle can be obtained as a solution for the system of equations:

$$ \begin{array}{*{20}{c}} {V\left( {r,z} \right) = a + b\left( {{{r}^{2}} - 2{{z}^{2}}} \right)} \hfill \\ {V\left( {R,0} \right) = \frac{\pi }{{60}}V} \hfill \\ {V\left( {R,Z} \right) = V} \hfill \\ \end{array} $$
(13)

Cylindrical symmetry of the cell suggests that the field averaged by the angle of rotation must be the solution of the averaged boundary problem [12]. Here, V is the voltage on housing and trapping electrodes, and \( \frac{\pi }{{60}} \) - the angle width of the housing electrode in the center of the cell. By solving this system of equations we can easily calculate the averaged by angle theoretical field. It is convenient to compare the obtained results with the field given by Equation (13) on the central axis because the averaging procedure may cause additional errors.

The results obtained for field accuracy using different methods are shown below. Simulations have been performed for a cell with the following dimensions [12]: radius of 28 mm, half-length - 75 mm, radius of the trapping electrode - 148.7 mm. In the center of one of the trapping electrodes a circular hole of 6 mm in diameter for ion inlet was placed. We defined an error as the largest discrepancy between the numerically calculated field and the field given by (13) on the central axis.

  • FDM Cylindrical coordinates – Error = 1.3 %. Mesh corresponds to 2 points per 1 mm.

  • FDM Cartesian coordinates – Error = 0.075 %. Mesh corresponds to 12 points per 1 mm.

  • FEM – Error = 0.65 %. Mesh corresponds to 2 points per 1 mm.

  • SIMION – Errors 0.56 %. Mesh corresponds to 10 points per 1 mm.

For all methods different mesh sizes limited only by available computer memory and different number of iterations were tried.

Also, comparison of the solutions in the whole volume of the cell has been performed. The numerically obtained field potential was averaged by the angle and compared to the field given by Equation (13). All methods showed close accuracy: for radii less than 70 % of the cell the error is about 1 %; for large radii the error is about 1.5 %–2 %.

Additional details are placed in the Appendix II.

The other possible source of errors is integration of ion motion equations. This integration was performed using a fourth order Runge–Kutta method with frequency correction. Realization of the frequency correction was similar to the one used in the Boris integration method [20]. Time step of integration was chosen from the condition, that there are around 3000 calculation steps per one cyclotron period. For calculation of the electrostatic field inside the mesh element a trilinear interpolation method was used [21]. Also, numerous simulations in the hyperbolic field were performed in order to make sure that the integration procedure is not the source of errors.

To estimate the dephasing time of an ion cloud the following numerical experiment was carried out. The cyclotron motion during detection of ions with different m/q in a 7 T magnetic field with different cyclotron radii and oscillation amplitudes was simulated.

The initial conditions for the equation of ion motion were the values of z coordinate, radius r, and corresponding cyclotron velocity v. The phase was the same for all of the experiments.

The z- oscillation amplitude was varied from 2 mm to 30 mm with 1 mm steps. Moments of ion intersection with the plane x = 0 were recorded. Such method gives us the possibility to monitor the evolution of the cyclotron frequency.

The time of complete ion cloud dephasing is defined as the time corresponding to the moment in the cloud evolution when the head of cloud touches its tail. One rotation cycle for ions with different oscillation amplitudes takes different times. If one denotes the mean length of the cyclotron period for these ions as \( \overline t \) and the standard deviation which corresponds to the ion cloud dephasing rate as Δt, then the number of rotations required for complete dephasing is\( {{N}_{{deph}}} = {{{\overline t }} \left/ {{\Delta t}} \right.} \). And the time of dephasing is:

$$ {{T}_{{deph}}} = {{N}_{{deph}}}\bullet \overline t = \frac{{{{{\overline t }}^2}}}{{\Delta t}} $$
(14)

Results of the simulations are presented in Figure 2.

Figure 2
figure 2

Dependence of the ion cloud dephasing time on the compensation electrode voltage for different values of the z-oscillation amplitude (zero to peak), radius and m/z. Red γ = 1⋅10−9 mm −2, Green γ = 2⋅10−9 mm −2, Blue γ = 3⋅10−9 mm −2, Milky Blue γ = 4⋅10−9 mm −2. See Equation 8

The voltage on the compensation electrodes does not depend on the amplitude of ion oscillation in the potential well along the magnetic field (Figure 2c, d). Also no dependence on cyclotron radius was observed (Figure 2d, e, f).

An inversely proportional dependence of the optimal voltage on the compensation electrode from m/q (Figure 2a, b, c) and a linear dependence from the value of inhomogeneity of the magnetic field were observed as predicted by theory.

For example, for an inhomogeneity coefficient γ = 4⋅10−9 mm −2 the optimal compensation voltage is equal to 13 V for m/q = 300, 8 V for m/q = 500 and 6 V for m/q = 700. The width at half height of the peaks on Figure 2 is equal to approximately 1 V. This means that it can be expect that the proposed cell will effectively align the cyclotron frequency in an m/q range of about 100 Da for moderate m/q and for the whole upper m/q range.

The dependence of the dephasing time from the oscillation amplitude and radius, which can be seen in Figure 2, can be explained by numerical errors in the simulations of the electric field.

Simulations performed for the conventional ion trap with dynamic harmonization revealed an important rule that the accuracy of the electric field is the main factor influencing ion cloud dephasing [22].

It is also possible to compensate the linear ingomogeneity of the magnetic field using the proposed cell. For this it is necessary to set different potentials on the left and right compensation segments. The voltages on the compensation electrodes were changed in accordance with the following condition: \( {{V}_l} + {{V}_r} = 2*{{V}_{{trap}}} \), where V l,r - are the voltages on left and right sets of compensation electrodes and V trap is the voltage on the housing electrodes. Thus the compensation voltages on the left and right electrodes are symmetric with respect to the trapping voltage.

In Figure 3 the results of such compensation are shown. It can be seen that for linear inhomogeneity it is possible to correct the cyclotron frequency and increase the time of synchronous ion motion. Also the inverse proportionality of the dependence from m/q and linear dependence from the inhomogeneity coefficient can be seen. The compensation works only for a certain m/q range. The average order of such m/q range is approximately hundreds of Da. The complete compensation could be done for much narrower m/q range (what is enough in case of fine structure resolution and isotopic patterns of proteins).

Figure 3
figure 3

Dependence of the ion cloud dephasing time on the compensation electrode voltage for different values of the z-oscillation amplitude (zero to peak), radius and m/z. Linear inhomogeneity. Time of synchronic motion vs. voltage on right set of compensation electrodes. V l +V r  = 2*V trap . B=B(1+γz). Black γ = 1⋅10−7 mm −1, Red γ = 3⋅10−7 mm −1, Green γ = 5⋅10−7 mm −1, Blue γ = 7⋅10−7 mm −1, Milky Blue γ = 9⋅10−7 mm −1

In order to compare these results with the compensation theory the following computational experiment was done. The z coordinates were frozen and the values of the magnetic field, electric force and current coordinates of the ions during their rotation were recorded. Approximately 150 records per cyclotron period were made.

For each z coordinate the mean radial component of the electric field E r (z) was calculated. The compensation theory predicts that in order for compensation to occur, (as follows from Equation 6) the following condition must be met:

$$ {{\omega }_c}B{{'}_z}(z) + \frac{{E{{'}_z}(z)}}{r} = 0 $$
(15)

If derivative \( E{{'}_z}(z) \) is replaced with a finite difference \( \Delta E(z) = \frac{{E(z) - E(0)}}{z} \) and similar is done for \( B{{'}_z}(z) \), it may be concluded that curves \( {{\omega }_c}\left( {B(z) - B(0)} \right) \) and \( \frac{{E(z) - E(0)}}{r} \) should match in order to meet the compensation condition. From Figure 4 it can be seen that by adjusting the compensation electrode voltage one can almost satisfy these conditions.

Figure 4
figure 4

Compensation conditions for the case of γ = 2⋅10−9 mm −2, Z [mm]. B[T], w[s-1], E/r[V/m2]

It can be clearly seen that for each z coordinate the inhomogeneity of the magnetic field was compensated by a correction in the electric force.

4 Conclusions

The theory of compensation of the magnetic field inhomogeneity inside an FT ICR cell with dynamic harmonization by introducing specific electric field corrections is presented. An ICR cell design is proposed in which the inhomogeneous component of the magnetic field of the second order is compensated by an electric field, created by incorporated into the housing electrode assembly special electrodes which borders are shaped by a 4-th order curve. By setting different voltages on left and right set of compensation electrodes, it also possible to compensate a linear inhomogeneity. Computer simulations have shown that in the proposed cell design the inhomogeneity of the magnetic field can be effectively compensated in relatively large mass to charge ratio range and a considerable increase in the resolving power in the case of low homogeneity of the magnetic field could be obtained.