computer programs\(\def\hfill{\hskip 5em}\def\hfil{\hskip 3em}\def\eqno#1{\hfil {#1}}\)

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767

MuMag2022: a software tool for analyzing magnetic field dependent unpolarized small-angle neutron scattering data of bulk ferromagnets

crossmark logo

aDepartment of Physics and Materials Science, University of Luxembourg, 162A Avenue de la Faïencerie, L-1511 Luxembourg, Grand Duchy of Luxembourg, and bDepartamento CITIMAC, Facultad de Ciencias, Universidad de Cantabria, 39005 Santander, Spain
*Correspondence e-mail: [email protected], [email protected], [email protected], [email protected]

Edited by F. Meilleur, Oak Ridge National Laboratory, USA, and North Carolina State University, USA (Received 31 January 2022; accepted 19 May 2022; online 28 July 2022)

The MATLAB-based software tool MuMag2022 is presented for the analysis of magnetic-field-dependent unpolarized small-angle neutron scattering (SANS) data of bulk ferromagnets such as elemental nanocrystalline ferromagnets, magnetic nanocomposites or magnetic steels. On the basis of the micromagnetic theory for the magnetic SANS cross section, the program analyzes unpolarized total (nuclear and magnetic) SANS data within the approach-to-saturation regime. The main features of MuMag2022 are the estimation of the exchange-stiffness constant, and of the strength and spatial structure of the magnetic anisotropy field and the magnetostatic field due to longitudinal magnetization fluctuations. MuMag2022 is open source and available as a standalone executable for Windows at https://mumag.uni.lu.

1. Introduction

Magnetic small-angle neutron scattering (SANS) is in many respects different from nonmagnetic nuclear SANS or small-angle X-ray scattering (SAXS). This is mainly related to the following points: (i) the quantity of interest in magnetic SANS is the three-dimensional magnetization vector field of the sample, Mathematical equation, while it is the scalar nuclear density Mathematical equation that is of relevance in nonmagnetic SANS. Therefore, besides changes in the magnitude of Mathematical equation, spatial variations in the orientation of Mathematical equation are of special importance for magnetic SANS. (ii) The method for obtaining Mathematical equation, a continuum micromagnetic variational ansatz aiming to minimize the total magnetic energy of the system, is conceptually different from that used to obtain Mathematical equation – mostly concepts based on particle form factors and structure factors. (iii) As a consequence of the quantum-mechanical exchange interaction, magnetization profiles are smoothly varying continuous functions of the position, which entails the absence of sharp (discontinuous) features in the magnetic microstructure. Although models with a smoothly varying Mathematical equation have also been developed for nonmagnetic SANS (e.g. Schmidt et al., 1991[Schmidt, P. W., Avnir, D., Levy, D., Höhr, A., Steiner, M. & Röll, A. (1991). J. Chem. Phys. 94, 1474-1479.]; Heinemann et al., 2000[Heinemann, A., Hermann, H., Wiedenmann, A., Mattern, N. & Wetzig, K. (2000). J. Appl. Cryst. 33, 1386-1392.]), the most widespread approach in particle scattering is to fit a certain form-factor model, implying the presence of a sharp interface, to a set of experimental data. These differences have fundamental consequences regarding the scattering behavior; e.g. magnetic SANS on bulk ferromagnets does generally not exhibit an asymptotic Mathematical equation Porod law, but may reveal larger power-law exponents (e.g. Bersweiler et al., 2021[Bersweiler, M., Pratami Sinaga, E., Peral, I., Adachi, N., Bender, P., Steinke, N.-J., Gilbert, E. P., Todaka, Y., Michels, A. & Oba, Y. (2021). Phys. Rev. Mater. 5, 044409.]). Related to the previous statement is the fact that the correlation function of magnetic systems exhibits a different functional dependency from the density–density autocorrelation function of nonmagnetic particle systems.

A theoretical framework for magnetic SANS has been developed in recent years (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]), which allows one to analyze the momentum-transfer and applied-field dependence of the total unpolarized SANS cross section within the approach-to-saturation regime of the macroscopic magnetization. This approach provides information on the magnetic interaction parameters such as the exchange-stiffness constant, and the strength and spatial structure of the magnetic anisotropy and magnetostatic field. The software tool MuMag2022 presented here encodes the relevant expressions and allows for the analysis of (Mathematical equation azimuthally averaged) magnetic-field-dependent unpolarized SANS data of bulk ferromagnets; examples are elemental nanocrystalline ferromagnets, magnetic nanocomposites or magnetic steels.

The article is organized as follows: Section 2[link] summarizes, for the two most often employed scattering geometries, the main theoretical expressions for the unpolarized nuclear and magnetic SANS cross section and explains the data analysis procedure. Section 3[link] provides some details on the operation of the MuMag2022 software and Section 4[link] presents some selected example cases.

2. Magnetic SANS theory – unpolarized neutrons

The magnetic-field-dependent SANS of bulk ferromagnets is typically dominated by the spin-misalignment scattering, i.e. the part of the magnetic SANS cross section that is related to the transverse magnetization Fourier coefficients. Since the spin-misalignment SANS is independent of the polarization of the incident neutron beam, half-polarized (`spin-up' and `spin-down') SANSPOL1 experiments, which additionally provide access to nuclear–magnetic interference terms, do not provide significantly more information regarding spin misalignment than can already be learned from the analysis of the unpolarized scattering. Chiral correlations are also ignored in our treatment. Therefore, the first version of our software package MuMag2022 considers only the case of unpolarized SANS. In the following, we summarize the main equations for the nuclear and magnetic SANS cross section of bulk ferromagnets, focusing on the two most often used scattering geometries which have the externally applied magnetic field either perpendicular or parallel to the incoming beam.

2.1. k0H0

For the scattering geometry where the applied magnetic field Mathematical equation is perpendicular to the wavevector Mathematical equation of the incoming neutron beam [see Fig. 1[link](a)], the elastic (unpolarized) SANS cross section Mathematical equation at scattering vector Mathematical equation can be written as (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.])

Mathematical equation

where V is the scattering volume, Mathematical equation = 2.91 × 108 A−1 m−1 is the magnetic scattering length, Mathematical equation and Mathematical equation Mathematical equation denote, respectively, the Fourier transforms of the nuclear scattering length density and of the magnetization Mathematical equation, and θ represents the angle between Mathematical equation and Mathematical equation; the asterisks * mark the complex-conjugated quantity.

[Figure 1]
Figure 1
Sketch of the two most often employed scattering geometries in magnetic SANS experiments. (a) Mathematical equation; (b) Mathematical equation. We emphasize that in both geometries the applied-field direction Mathematical equation defines the Mathematical equation direction of a Cartesian laboratory coordinate system. The momentum transfer or scattering vector Mathematical equation corresponds to the difference between the wavevectors of the incident (Mathematical equation) and the scattered (Mathematical equation) neutrons, i.e. Mathematical equation. Its magnitude for elastic scattering, Mathematical equation, depends on the mean wavelength λ of the neutrons and on the scattering angle Mathematical equation. SANS is usually implemented as elastic scattering (Mathematical equation), and the component of Mathematical equation along the incident neutron beam [i.e. qx in (a) and qz in (b)] is neglected. The angle θ specifies the orientation of the scattering vector on the two-dimensional detector; θ is measured between Mathematical equation and Mathematical equation (a) and between Mathematical equation and Mathematical equation (b). Note that in many SANS publications the scattering angle is denoted by the symbol Mathematical equation. However, in order to comply with our previous notation (see e.g. the publications in the reference list), we prefer to denote this quantity by Mathematical equation.

As shown by Honecker & Michels (2013[Honecker, D. & Michels, A. (2013). Phys. Rev. B, 87, 224426.]), near magnetic saturation, Mathematical equation can be evaluated by means of micromagnetic theory. In particular,

Mathematical equation

where

Mathematical equation

represents the nuclear and magnetic residual SANS cross section, which is measured at complete magnetic saturation (infinite field), and

Mathematical equation

is the spin-misalignment SANS cross section. The magnetic scattering due to transverse spin components, with related Fourier amplitudes Mathematical equation and Mathematical equation, is contained in Mathematical equation, which decomposes into a contribution Mathematical equation due to perturbing magnetic anisotropy fields and a part Mathematical equation related to magnetostatic fields. The micromagnetic SANS theory considers a uniform exchange interaction and a random distribution of the magnetic easy axes, as is appropriate for a statistically isotropic polycrystalline ferromagnet (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]). Spatial variations in the magnitude of the saturation magnetization are explicitly taken into account via the function Mathematical equation (see below). Moreover, in the approach-to-saturation regime it is assumed that Mathematical equation, where Mathematical equation denotes the Fourier transform of the saturation magnetization profile Mathematical equation.

Regarding the decomposition of the SANS cross section [equation (2[link])], we emphasize that it is Mathematical equation that depends on the magnetic interactions (exchange, anisotropy, magnetostatics), while Mathematical equation is determined by the geometry of the underlying grain microstructure (e.g. the particle shape or the particle-size distribution). If in a SANS experiment the approach-to-saturation regime can be reached for a particular magnetic material (as is assumed here), then the residual SANS can be obtained by an analysis of field-dependent data via the extrapolation to infinite field (see Section 2[link].4[link]). In a sense, for a bulk ferromagnet, the scattering at saturation resembles the topographical background in Kerr-microscopy experiments, which needs to be subtracted in order to access the magnetic domain structure of the sample (McCord & Hubert, 1999[McCord, J. & Hubert, A. (1999). Phys. Status Solidi A, 171, 555-562.]).

The anisotropy-field scattering function (in units of cm−1)

Mathematical equation

depends on Mathematical equation, which represents the Fourier transform of the spatial structure of the magnetic anisotropy field Mathematical equation of the sample, whereas the scattering function of the longitudinal magnetization (in units of cm−1)

Mathematical equation

provides information on the spatial variation of the saturation magnetization Mathematical equation; for instance, in a multiphase magnetic nanocomposite, Mathematical equation, where Mathematical equation denotes the jump of the magnetization magnitude at internal (particle–matrix) interfaces. Note that the volume average of Mathematical equation equals the macroscopic saturation magnetization Mathematical equation of the sample, which can be measured with a magnetometer. The corresponding dimensionless micromagnetic response functions can be expressed as (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.])

Mathematical equation

and

Mathematical equation

where

Mathematical equation

is a dimensionless function and θ represents the angle between Mathematical equation and Mathematical equation. The effective magnetic field

Mathematical equation

depends on the internal magnetic field

Mathematical equation

and on the micromagnetic exchange length of the field

Mathematical equation

( M0 saturation magnetization; A exchange-stiffness parameter; Mathematical equation demagnetizing field; Mathematical equation demagnetizing factor; Mathematical equation Tm A−1). Note that Mathematical equation in the approach-to-saturation regime. The θ dependence of Mathematical equation and Mathematical equation arises essentially as a consequence of the magnetodipolar interaction. Depending on the values of q and Mathematical equation, a variety of angular anisotropies may be seen on a two-dimensional position-sensitive detector (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]).

The effective magnetic field Mathematical equation [equation (10[link])] consists of a contribution due to the internal field Mathematical equation and the exchange field Mathematical equation. An increase of Mathematical equation increases the effective field only at the smallest q values, whereas Mathematical equation at larger q is always very large (∼10–100 T) and independent of Mathematical equation (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]). The latter statement may be seen as a manifestation of the fact that exchange forces tend to dominate on small length scales (Aharoni, 2000[Aharoni, A. (2000). Introduction to the Theory of Ferromagnetism, 2nd ed. Oxford University Press.]). Since Mathematical equation appears predominantly in the denominators of the final expressions for Mathematical equation and Mathematical equation [compare equations (3.68) and (3.69) of Michels (2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.])], its role is to suppress the high-q Fourier components of the magnetization, which correspond to sharp real-space fluctuations. On the other hand, long-range magnetization fluctuations, at small q, are effectively suppressed when Mathematical equation is increased.

By assuming that the functions Mathematical equation, Mathematical equation and Mathematical equation depend only on the magnitude Mathematical equation of the scattering vector, one can perform an azimuthal average of equation (2[link]), i.e. Mathematical equation. The resulting expressions for the response functions then read

Mathematical equation

and

Mathematical equation

so that the azimuthally averaged total nuclear and magnetic SANS cross section can be written as

Mathematical equation

where

Mathematical equation

For materials exhibiting a uniform saturation magnetization (e.g. single-phase materials), the magnetostatic scattering contribution Mathematical equation [to Mathematical equation, compare equation (4[link])] is expected to be much smaller than the anisotropy-field-related term Mathematical equation [compare e.g. Fig. 23 of Michels (2014[Michels, A. (2014). J. Phys. Condens. Matter, 26, 383201.])].

We emphasize that the micromagnetic theory behind the MuMag2022 software results in an analytical expression for the two-dimensional SANS cross section as a function of the magnitude q and the orientation θ of the scattering vector Mathematical equation. These analytical expressions can be azimuthally averaged over the full angular detector range Mathematical equation (or any other range) and compared with correspondingly averaged experimental SANS data; in other words, it is not required that the experimental input SANS data are isotropic.

2.2. k0H0

For the scattering geometry where the external magnetic field Mathematical equation is parallel to the incident-beam direction Mathematical equation [see Fig. 1[link](b)], the total azimuthally averaged SANS cross section can be written as (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.])

Mathematical equation

where the residual SANS cross section explicitly reads

Mathematical equation

and the response function is isotropic (i.e. θ independent),

Mathematical equation

Mathematical equation is given by equation (5[link]), and we note that in this geometry Mathematical equation does not depend on Mathematical equation fluctuations and equals the expression for the single-phase material case (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]). In other words, the possible two-phase (particle–matrix-type) nature of the underlying microstructure is (for Mathematical equation) only contained in Mathematical equation, and not in Mathematical equation.

2.3. Mean-square anisotropy and magnetostatic field

Numerical integration of Mathematical equation and Mathematical equation over the whole Mathematical equation space, i.e.

Mathematical equation

yields, respectively, the mean-square anisotropy field Mathematical equation and the mean-square longitudinal magnetization fluctuation Mathematical equation (Michels, 2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]). These quantities are, respectively, defined as

Mathematical equation

and

Mathematical equation

Equation (20[link]) follows from equations (21[link]) and (22[link]) by using Parseval's theorem of Fourier theory and the definitions of Mathematical equation and Mathematical equation [equations (5[link]) and (6[link])]. Since experimental data for Mathematical equation and Mathematical equation are only available within a finite range of momentum transfers between qmin and qmax (see Fig. 5 below), one can only obtain rough lower bounds for these quantities. Therefore, the numerical integration of equation (20[link]) is carried out for Mathematical equation; qmin denotes the first experimental data point, while qmax is defined by equation (24[link]) below.

Knowledge of Mathematical equation and of the residual SANS cross section Mathematical equation [equations (16[link]) and (18[link])] allows one to obtain the nuclear scattering

Mathematical equation

without using sector-averaging procedures (in unpolarized scattering) or polarization analysis (Honecker et al., 2010[Honecker, D., Ferdinand, A., Döbrich, F., Dewhurst, C. D., Wiedenmann, A., Gómez-Polo, C., Suzuki, K. & Michels, A. (2010). Eur. Phys. J. B, 76, 209-213.]).

2.4. Neutron data analysis procedure

Equation (15[link]) is linear in both Mathematical equation and Mathematical equation, with a priori unknown functions Mathematical equation, Mathematical equation and Mathematical equation. For given values of the materials parameters A and M0, the numerical values of both response functions are known at each value of q and Mathematical equation. By plotting at a particular Mathematical equation the values of Mathematical equation measured at several Mathematical equation versus Mathematical equation and Mathematical equation, one can obtain the values of Mathematical equation (intercept) and Mathematical equation and Mathematical equation (slopes) at Mathematical equation by a weighted non-negative linear least-squares plane fit (i.e. the parameters Mathematical equation, Mathematical equation and Mathematical equation are assumed to be Mathematical equation). The function `lsqnonneg' of MATLAB has been used for carrying out these fits. Starting from q = qmin, the non-negative least-squares fitting routine is successively performed up to a maximum value of q = qmax [see equation (24[link]) below]. Fig. 2[link] illustrates the data analysis procedure. By treating the exchange-stiffness constant A in the expression for Mathematical equation as an adjustable parameter, one can obtain information on this quantity. We emphasize that in order to obtain a best-fit value for A from experimental field-dependent SANS data, it is not necessary that the data are available in absolute units. This is because A only appears in the dimensionless response functions Mathematical equation and Mathematical equation, while the dimension of the experimental Mathematical equation (in cm−1 or in arbitrary units) is absorbed in the other fitting parameters Mathematical equation, Mathematical equation and Mathematical equation.

[Figure 2]
Figure 2
Illustration of the neutron data analysis procedure according to equation (15)[link]. The total Mathematical equation (solid circles) of the the iron-based alloy Nanoperm is plotted at Mathematical equation = 0.114 nm−1 versus the response functions Mathematical equation and Mathematical equation for A = 4.7 pJ m−1 and experimental field values (in mT) of 1270, 312, 103, 61, 42, 33. The plane represents a fit to equation (15)[link]. The intercept of the plane with the Mathematical equation axis provides the residual SANS cross section Mathematical equation, while Mathematical equation and Mathematical equation are obtained from the slopes of the plane (slopes of the thick black and red lines). In other words, at each experimental Mathematical equation, for given materials parameters A and M0, and for the experimental field values Mathematical equation, the total experimental SANS signals at Mathematical equation are fitted to a function that is of the mathematical form f(x,y) = a + bx+cy, where Mathematical equation, Mathematical equation and Mathematical equation are the fit parameters at Mathematical equation and Mathematical equation and Mathematical equation are the independent variables. The procedure is carried out for Mathematical equation values between qmin and qmax, and then repeated for many different physically plausible A values to determine the best-fit value, Mathematical equation, via equation (25)[link]. Image taken from Michels (2021[Michels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.]), reproduced by permission of Oxford University Press.

As mentioned earlier, the effective magnetic field Mathematical equation [equation (10[link])] is the sum of the internal magnetic field Mathematical equation and the exchange field Mathematical equation. When Mathematical equation, the effective field and, hence, the magnetic SANS cross section become independent of the externally applied magnetic field Mathematical equation. This condition defines a characteristic maximum q value,

Mathematical equation

where Hmax is the maximum applied magnetic field. For Mathematical equation, the reliable separation of the spin-misalignment (Mathematical equation) and residual scattering (Mathematical equation) is difficult (since then one attempts to fit a straight line to a constant), and the micromagnetic analysis should therefore be restricted to Mathematical equation.

The global fitting procedure consists essentially of many straight-plane fits (one at each q value for Mathematical equation). As the experimental best-fit parameter we take the value of A that minimizes the function

Mathematical equation

where the indices m and n count, respectively, the scattering vectors and applied-field values, L is the number of data points (number of q values times the number of internal fields), Mathematical equation is the uncertainty in the experimental SANS cross section Mathematical equation, and Mathematical equation Mathematical equation denotes the fit to equation (15[link]) or (17).

The uncertainty Mathematical equation in A is estimated from the curvature of the Mathematical equation data, according to (Bevington & Robinson, 2003[Bevington, P. R. & Robinson, D. K. (2003). Data Reduction and Error Analysis for the Physical Sciences, ch. 8, 3rd ed. Boston: McGraw-Hill.])

Mathematical equation

The numerical derivative in equation (26[link]) has been computed via (Fornberg, 1988[Fornberg, B. (1988). Math. C, 51, 699-706.])

Mathematical equation

where Mathematical equation is the step size on the A axis (typically Mathematical equation), Mathematical equation represents the global minimum of the function Mathematical equation, Mathematical equation and Mathematical equation.

3. Description of the software

The least-squares fitting routine has been written in MATLAB code and implemented into a Windows- and macOS-compatible standalone executable file using the MATLAB app designer. The user has to provide the following data and take the following points into account:

(i) The total (nuclear and magnetic) unpolarized SANS cross section Mathematical equation measured at several applied magnetic fields within the approach-to-saturation regime (Mathematical equation azimuthally averaged data). Data format: three columns with q in nm−1, Mathematical equation in cm−1 and the uncertainty in Mathematical equation in cm−1. The input data files must be of the .csv, .dat or .txt type and must have the name structure that is explained in Fig. 3[link].

[Figure 3]
Figure 3
Explanation of the input data filename format. The specified numerical values for the applied magnetic fields H0, saturation magnetization M0 and demagnetizing fields Mathematical equation are automatically taken over by the MuMag2022 software for the data analysis.

(ii) If the Mathematical equation data are not available in absolute units, then the mean-square magnetic anisotropy field Mathematical equation and magnetostatic field Mathematical equation [equations (20[link])–(22[link])] cannot be determined. It is then only possible to estimate an average value for the exchange-stiffness constant A.

(iii) The values of the applied magnetic fields Mathematical equation (in mT), where the SANS measurements have been carried out [see point (i) above]. Note that the quantities Mathematical equation, M0 and Mathematical equation have the SI unit A m−1, which on multiplication with Mathematical equation turns into Tesla (T).

(iv) The value of the saturation magnetization Mathematical equation (in mT) of the sample [see point (i) above].

(v) The values of the demagnetizing fields Mathematical equation Mathematical equation (in mT) [see point (i) above]. Note that in equation (11[link]) the demagnetizing field was specified as Mathematical equation with M0 the saturation magnetization. The user may, however, take a different value of the demagnetizing field at each value of the externally applied magnetic field H0 with corresponding magnetization value M(H0). The demagnetizing factor Mathematical equation can be calculated using e.g. the well known formulas for the general ellipsoid by Osborn (1945[Osborn, J. A. (1945). Phys. Rev. 67, 351-357.]) or for rectangular prisms by Aharoni (1998[Aharoni, A. (1998). J. Appl. Phys. 83, 3432-3434.]).

(vi) The data analysis should be restricted to internal magnetic fields Mathematical equation within the approach-to-saturation regime. This information can be taken from an experimental magnetization curve Mathematical equation, which also allows for the determination of M0. We suggest defining `approach-to-saturation' for Mathematical equation values for which the reduced magnetization is Mathematical equation.

(vii) An estimate for qmax using equation (24[link]). Typical A values are of the order of 10 pJ m−1 (1 pJ m−1 = 10−12 J m−1). The data analysis should be restricted to Mathematical equation.

(viii) The following output files are generated (in .csv format). For the perpendicular scattering geometry (Mathematical equation): best-fit results (using Mathematical equation) for the discrete functions Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation = Mathematical equation and Mathematical equation = Mathematical equation. For the parallel scattering geometry (Mathematical equation): best-fit results (using Mathematical equation) for the discrete functions Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation = Mathematical equation and Mathematical equation = Mathematical equation. Data format: three columns with q in nm−1, the respective quantity in cm−1 (if the input data are in absolute units) and the uncertainty in the respective quantity in cm−1. Note that Mathematical equation are dimensionless, while Mathematical equation and Mathematical equation may be in cm−1. Moreover, for each scattering geometry, we specify the data set Mathematical equation [equation (25[link])], the best-fit value for the exchange-stiffness constant Mathematical equation (in pJ m−1) [equation (26[link])], the root-mean-square anisotropy field Mathematical equation (in mT) and the root-mean-square magnetostatic field Mathematical equation (in mT, only for Mathematical equation). The provided data give the user the possibility to generate their own graphical representations.

4. Example cases

The following example data on the two-phase iron-based alloy Nanoperm are taken from the work of Honecker et al. (2013[Honecker, D., Dewhurst, C. D., Suzuki, K., Erokhin, S. & Michels, A. (2013). Phys. Rev. B, 88, 094428.]), and the data on the Nd–Fe–B nanocomposite are those of Bick et al. (2013[Bick, J.-P., Suzuki, K., Gilbert, E. P., Forgan, E. M., Schweins, R., Lindner, P., Kübel, C. & Michels, A. (2013). Appl. Phys. Lett. 103, 122402.]). Further examples in the literature where this type of SANS data analysis has been employed can be found in the work of Bersweiler et al. (2022[Bersweiler, M., Adams, M. P., Peral, I., Kohlbrecher, J., Suzuki, K. & Michels, A. (2022). IUCrJ, 9, 65-72.]) on another type of Nanoperm sample, and Weissmüller et al. (2001[Weissmüller, J., Michels, A., Barker, J. G., Wiedenmann, A., Erb, U. & Shull, R. D. (2001). Phys. Rev. B, 63, 214414.]) and Michels et al. (2003[Michels, A., Viswanath, R. N., Barker, J. G., Birringer, R. & Weissmüller, J. (2003). Phys. Rev. Lett. 91, 267204.]) on nanocrystalline cobalt and nickel. Fig. 4[link] displays the user interface of the MuMag2022 software, which is structured into five panels: (i) The top panel controls import and graphical representation of the experimental SANS data. (ii) For the selected scattering geometry (Mathematical equation or Mathematical equation), minimum applied field H0min and maximum scattering vector qmax, the `SimpleFit' tool determines the best-fit value Mathematical equation for the exchange-stiffness constant. (iii) The `SweepFit' tool allows one to analyze the convergence of the fitting routine depending on the qmax and H0min values. (iv) In case the demagnetizing field of the sample is unknown, the `DemagFit' tool allows for the estimation of this quantity by additionally varying Mathematical equation in the Mathematical equation function [equation (25[link])]. The obtained best-fit values for A and Mathematical equation have then to be used in the `SimpleFit' tool to generate the final fit results for Mathematical equation, Mathematical equation and Mathematical equation. (v) Finally, by specifying the scattering geometry, materials parameters, applied fields and q range, the MuMag2022 software allows for the generation of synthetic data. We refer to the MuMag2022–Toolbox: User Guide for further details (https://files.uni.lu/mumag/MuMag2022_UserGuide.pdf).

[Figure 4]
Figure 4
The user interface of the MuMag2022 software.

Figs. 5[link], 6[link], 7[link] have been exported from the MuMag2022 software and show, respectively, the experimental field-dependent input data, the results of the data analysis, and the comparison between the experimental data and the fit based on the micromagnetic theory. Note that in Figs. 5[link] and 7[link] the values of the applied magnetic fields H0 are displayed in the legends, while the internal magnetic fields Mathematical equation (using the values for H0 and Mathematical equation specified in the input data files) have been used for internal computations. The best-fit value for the exchange-stiffness constant of Nanoperm, Mathematical equation = 4.7 × 10−12 J m−1, is found from the minimum of the Mathematical equation function in Fig. 6[link](a), while the q dependence of Mathematical equation, Mathematical equation and Mathematical equation is featured in Figs. 6[link](b)–(d), respectively. The results for the average anisotropy (Mathematical equation) and magnetostatic (Mathematical equation) fields [Figs. 6[link](c) and 6[link](d), respectively] demonstrate that the strongest perturbations in the spin structure are related to the jumps in the saturation magnetization at internal particle–matrix interfaces, in agreement with the two-phase microstructure of the material.

[Figure 5]
Figure 5
Total unpolarized experimental SANS cross section Mathematical equation of the two-phase iron-based alloy Nanoperm at a series of applied magnetic fields (see legend) (log–log scale) (Mathematical equation). Lines are a guide for the eyes. Data taken from Honecker et al. (2013[Honecker, D., Dewhurst, C. D., Suzuki, K., Erokhin, S. & Michels, A. (2013). Phys. Rev. B, 88, 094428.]).
[Figure 6]
Figure 6
Summary of the fit results for Nanoperm. (a) Mathematical equation function [equation (25)[link]]. (b) Residual SANS cross section Mathematical equation (linear–log scale). (c) Anisotropy-field scattering function Mathematical equation (linear–log scale). (d) Magnetostatic scattering function Mathematical equation (linear–log scale). The best-fit value Mathematical equation for the exchange-stiffness constant and the estimates for the mean anisotropy field Mathematical equation and the mean magnetostatic field Mathematical equation based on equation (20)[link] are indicated. Settings from Fig. 4[link] in the user guide were used. Data taken from Honecker et al. (2013[Honecker, D., Dewhurst, C. D., Suzuki, K., Erokhin, S. & Michels, A. (2013). Phys. Rev. B, 88, 094428.]).
[Figure 7]
Figure 7
Comparison between experiment and theory. Data points: experimental data for the total unpolarized SANS cross section Mathematical equation of the two-phase iron-based alloy Nanoperm at a series of applied magnetic fields within the approach-to-saturation regime (see legend) (log–log scale) (Mathematical equation). Solid lines: fit using the micromagnetic SANS theory [equation (15)[link]] with the best-fit value of Mathematical equation = 4.7 × 10−12 J m−1. The analysis has been restricted to fields Mathematical equation and to momentum transfers Mathematical equation = 0.2 nm−1. Note that the fit does not represent a `continuous' fit of Mathematical equation in the conventional sense, but rather the point-by-point reconstruction of the theoretical cross sections based on the experimental data. Data taken from Honecker et al. (2013[Honecker, D., Dewhurst, C. D., Suzuki, K., Erokhin, S. & Michels, A. (2013). Phys. Rev. B, 88, 094428.]).

The MuMag2022 software also allows for treating the demagnetizing field Mathematical equation [in the expression for Mathematical equation, compare equation (11[link])] as an adjustable parameter, e.g. in situations where the sample shape is not well defined. This is achieved by varying Mathematical equation, in addition to A, within the limits Mathematical equation and Mathematical equation in the Mathematical equation function [equation 2[link]5[link])]. Fig. 8[link] shows the output of the `DemagFit' tool for the case of an Nd–Fe–B nanocomposite measured in the parallel scattering geometry (Mathematical equation).

[Figure 8]
Figure 8
Pseudocolor plot of Mathematical equation [equation (25)[link]] for an Nd–Fe–B nanocomposite (Mathematical equation). The best-fit values, Mathematical equation and Mathematical equation, are indicated. Data taken from Bick et al. (2013[Bick, J.-P., Suzuki, K., Gilbert, E. P., Forgan, E. M., Schweins, R., Lindner, P., Kübel, C. & Michels, A. (2013). Appl. Phys. Lett. 103, 122402.]).

The micromagnetic SANS theory on which MuMag2022 is based assumes a statistically isotropic ferromagnetic material with random nanoscale variations in the magnitude and orientation of the magnetic anisotropy field as well as nanoscale spatial variations in the saturation magnetization. Recently, an extended SANS theory which takes into account a global uniaxial anisotropy (magnetic texture) has been developed (Zaporozhets et al., 2022[Zaporozhets, V. D., Oba, Y., Michels, A. & Metlov, K. L. (2022). J. Appl. Cryst. 55, 592-600. ]). The corresponding equations for the SANS cross sections will be implemented in a future version of MuMag2022.

5. Conclusion

The MATLAB-based software tool MuMag2022 allows for the analysis of magnetic-field-dependent small-angle neutron scattering (SANS) data of bulk ferromagnets. Examples of such systems are elemental nanocrystalline ferromagnets, magnetic nanocomposites and magnetic steels. The software is based on the micromagnetic theory for the magnetic SANS cross section, and analyzes unpolarized total (nuclear and magnetic) SANS data within the approach-to-saturation regime of the macroscopic magnetization. The main features of MuMag2022 are the estimation of the exchange-stiffness constant, and of the strength and spatial structure of the magnetic anisotropy field and the magnetostatic field due to longitudinal magnetization fluctuations. MuMag2022 comes with a user-friendly interface and is available along with the example data as a standalone executable for Windows operating systems. It can be downloaded at https://mumag.uni.lu. Additionally, we provide a MuMag2022–Toolbox: User Guide that should enable the operation of the software.

Footnotes

1The acronym SANSPOL refers to a polarized SANS experiment without analysis of the polarization of the scattered neutrons.

Acknowledgements

We thank Sergey Erokhin, Dmitry Berkov (General Numerics Research Laboratory, Jena, Germany) and Luis F. Barquín (Universidad de Cantabria, Santander, Spain) for fruitful discussions.

Funding information

EMJ acknowledges the support of a Beca Concepción Arenal fellowship (BDNS: 406333, Gobierno de Cantabria, Spain). MPA and AM thank the National Research Fund of Luxembourg for financial support (AFR grant No. 15639149).

References

First citationAharoni, A. (1998). J. Appl. Phys. 83, 3432–3434.  Web of Science CrossRef CAS Google Scholar
First citationAharoni, A. (2000). Introduction to the Theory of Ferromagnetism, 2nd ed. Oxford University Press.  Google Scholar
First citationBersweiler, M., Adams, M. P., Peral, I., Kohlbrecher, J., Suzuki, K. & Michels, A. (2022). IUCrJ, 9, 65–72.  Web of Science CrossRef CAS PubMed IUCr Journals Google Scholar
First citationBersweiler, M., Pratami Sinaga, E., Peral, I., Adachi, N., Bender, P., Steinke, N.-J., Gilbert, E. P., Todaka, Y., Michels, A. & Oba, Y. (2021). Phys. Rev. Mater. 5, 044409.  Web of Science CrossRef Google Scholar
First citationBevington, P. R. & Robinson, D. K. (2003). Data Reduction and Error Analysis for the Physical Sciences, ch. 8, 3rd ed. Boston: McGraw-Hill.  Google Scholar
First citationBick, J.-P., Suzuki, K., Gilbert, E. P., Forgan, E. M., Schweins, R., Lindner, P., Kübel, C. & Michels, A. (2013). Appl. Phys. Lett. 103, 122402.  Web of Science CrossRef Google Scholar
First citationFornberg, B. (1988). Math. C, 51, 699–706.  CrossRef Google Scholar
First citationHeinemann, A., Hermann, H., Wiedenmann, A., Mattern, N. & Wetzig, K. (2000). J. Appl. Cryst. 33, 1386–1392.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationHonecker, D., Dewhurst, C. D., Suzuki, K., Erokhin, S. & Michels, A. (2013). Phys. Rev. B, 88, 094428.  Web of Science CrossRef Google Scholar
First citationHonecker, D., Ferdinand, A., Döbrich, F., Dewhurst, C. D., Wiedenmann, A., Gómez-Polo, C., Suzuki, K. & Michels, A. (2010). Eur. Phys. J. B, 76, 209–213.  Web of Science CrossRef CAS Google Scholar
First citationHonecker, D. & Michels, A. (2013). Phys. Rev. B, 87, 224426.  Web of Science CrossRef Google Scholar
First citationMcCord, J. & Hubert, A. (1999). Phys. Status Solidi A, 171, 555–562.  CrossRef CAS Google Scholar
First citationMichels, A. (2014). J. Phys. Condens. Matter, 26, 383201.  Web of Science CrossRef PubMed Google Scholar
First citationMichels, A. (2021). Magnetic Small-Angle Neutron Scattering. A Probe for Mesoscale Magnetism Analysis. Oxford University Press.  Google Scholar
First citationMichels, A., Viswanath, R. N., Barker, J. G., Birringer, R. & Weissmüller, J. (2003). Phys. Rev. Lett. 91, 267204.  Web of Science CrossRef PubMed Google Scholar
First citationOsborn, J. A. (1945). Phys. Rev. 67, 351–357.  CrossRef Web of Science Google Scholar
First citationSchmidt, P. W., Avnir, D., Levy, D., Höhr, A., Steiner, M. & Röll, A. (1991). J. Chem. Phys. 94, 1474–1479.  CrossRef CAS Web of Science Google Scholar
First citationWeissmüller, J., Michels, A., Barker, J. G., Wiedenmann, A., Erb, U. & Shull, R. D. (2001). Phys. Rev. B, 63, 214414.  Google Scholar
First citationZaporozhets, V. D., Oba, Y., Michels, A. & Metlov, K. L. (2022). J. Appl. Cryst. 55, 592–600.   CrossRef CAS IUCr Journals Google Scholar

This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767
Follow J. Appl. Cryst.
Sign up for e-alerts
Follow J. Appl. Cryst. on Twitter
Follow us on facebook
Sign up for RSS feeds