research papers
accessMagStREXS, a crystallographic computer program to determine magnetic structures through resonant elastic X-ray scattering data. I. Fundamental equations
aDeutsches Elektronen-Synchrotron DESY, Hamburg, Germany, and bInstitut Laue–Langevin (ILL), Grenoble, France
*Correspondence e-mail: [email protected]
Resonant elastic X-ray scattering (REXS) is an experimental technique that can be highly valuable for studying magnetic structures in certain scenarios. In this paper, we introduce MagStREXS, a crystallographic program designed to determine magnetic structures from REXS data. This software makes use of the key concepts and computational tools already established in the field of magnetic crystallography. Here, we present the fundamental equations implemented in MagStREXS, derived for the two methods used to describe magnetic models: the representation analysis and the symmetry-based approach. We illustrate the capabilities of MagStREXS with a case study. The software is under active development, with the aim of benefiting both specialists and non-specialists in the field.
1. Introduction
The determination of magnetic structures is crucial not only for identifying functional materials with new technological applications but also for understanding underlying phenomena in complex compounds. While some magnetic structures, such as are relatively simple, others can be highly intricate (e.g. incommensurate phases, multi-k structures or magnetic structures involving propagation vectors from different k-stars), making the study of magnetic structures a challenging area of research in solid-state physics (Rodríguez-Carvajal & Villain, 2019
).
In many cases, magnetic structures are described using the widely adopted representation analysis approach. However, the complete characterization of a magnetic phase requires the identification of its symmetry (Perez-Mato et al., 2015
). Symmetry governs many properties of magnetic compounds, such as phase transitions, domain formation, various phenomena in multiferroics (Perez-Mato & Ribeiro, 2011
) and specific topologies of electronic wavefunctions (Bernevig et al., 2022
). Furthermore, symmetry is instrumental in determining magnetic structures: the list of magnetic models compatible with a given atomic structure can be established from symmetry considerations and the calculation of magnetic structure factors can be simplified using symmetry operations, enhancing the efficiency of the refinement of magnetic structures (Petříček et al., 2010
).
Due to the complexity of many magnetic structures, their accurate description and analysis in terms of either irreducible representations (irreps) or magnetic space/superspace groups (MSGs/MSSGs) are only possible thanks to dedicated crystallographic databases and computational tools [see the lists provided by Perez-Mato et al. (2015
) or Rodríguez-Carvajal & Villain (2019
)]. Over the past fifty years, advances in the systematic description of magnetic structures have progressed alongside improvements in neutron diffraction, making this technique the predominant method for studying magnetism (Damay, 2015
; Dronskowski et al., 2024
). Crystallographic tools for studying magnetic phases have thus been developed in tandem with programs for analysing neutron diffraction data, integrating them to facilitate magnetic structure determination. Today, neutron powder diffraction (NPD) is the most common approach for magnetic structure studies, although it has limitations and complementary techniques such as single-crystal diffraction or polarized neutron experiments are often required to characterize a magnetic structure fully.
Resonant elastic X-ray scattering (REXS) is a powerful synchrotron-specific technique employed to probe charge, spin and orbital long-range orderings (Matteo, 2012
). It is widely used as a complementary technique to NPD for magnetic structure determination in situations where single-crystal neutron diffraction is not feasible, i.e. in the following scenarios: (i) when the magnetic ions in the material have a high neutron absorption (e.g. Gd, Eu, Ir etc.), (ii) when sufficiently large single crystals cannot be grown, (iii) when two or more magnetic structures cannot be distinguished using available neutron diffraction data, which is a particular challenge in NPD (Shirane, 1959
; Rodríguez-Carvajal & Bourée, 2012
), (iv) when the highest resolution of X-rays is required, and/or (v) when multiple magnetic ions are present. Indeed, REXS offers the unique advantage of being element- and shell-specific, whereas non-resonant elastic X-ray scattering and neutron diffraction measure the total magnetization.
However, REXS is significantly hindered by the lack of dedicated magnetic crystallographic software for analysing this type of data, which prevents the technique from reaching its full potential. Researchers conducting REXS experiments are often forced to perform calculations manually or using simple computer scripts, despite the inherent complexity of both magnetic structures and the REXS scattering cross sections. This can lead to inaccuracies and considerable delays in data analysis.
In this paper, we present the foundational principles behind MagStREXS, a crystallographic program currently under active development to address this gap and provide a dedicated tool for analysing magnetic structures using REXS diffraction data. The program is built upon the theoretical concepts established in crystallography for the description and analysis of magnetic structures. As such, the current version of MagStREXS can accommodate any model constructed within the representation analysis approach, commensurate or incommensurate, as well as any model based on an MSG. The use of MSSGs for describing incommensurate magnetic phases, while planned, is not yet fully implemented, so we will not elaborate on this specific case here.
The functionalities currently implemented in MagStREXS focus on two types of data: the integrated intensities of a set of magnetic reflections, and the Poincaré–Stokes parameters as measured in a full linear polarization analysis (FLPA). The analysis of azimuthal dependence data, which is also important, is in the process of being implemented and will be discussed in the near future. MagStREXS is currently available as a beta version on the computing platform of DESY, and users can employ it at present to analyse data collected on beamline P09 at PETRA III.
In this paper, we focus on discussing the fundamental equations incorporated into MagStREXS and present a case study of a magnetic as a proof of concept. A comprehensive description of MagStREXS and its application to the characterization of magnetic structures will be provided in a separate paper once a distributable version of the program has been finalized.
2. Magnetic crystallography
Magnetic crystallography provides a systematic framework for describing and studying magnetic structures, which is highly beneficial for the type of analysis conducted within MagStREXS. In this section, some essential concepts regarding the crystallographic description of such structures are briefly introduced, while more comprehensive discussions of this topic can be found elsewhere (Rodríguez-Carvajal & Bourée, 2012
; Rodríguez-Carvajal & Villain, 2019
; Perez-Mato et al., 2015
; Perez-Mato et al., 2012
; Petříček et al., 2010
).
Historically, two distinct approaches for describing magnetic structures have been developed within the crystallographic context. One of these, known as representation analysis, is based on the application of group theory to crystallographic space groups, while the other is founded on the symmetry associated with the ordering of magnetic moments in a crystal. Each approach offers its own systematic method for identifying and describing all magnetic structures compatible with a given crystal structure in which some atoms possess magnetic moments.
Developed in parallel, these two methodologies were initially considered alternatives or even mutually exclusive. However, this debate has finally been resolved, and it has been demonstrated that combining the two approaches provides the most complete and effective means of describing and understanding magnetic structures (Rodriguez-Carvajal & Perez-Mato, 2024
). This complementary relationship is the reason why any software dedicated to the study of magnetic structures should incorporate the capability to analyse magnetic models based on either of these two descriptions.
Among the various computational tools mentioned in the references given in the Introduction
, one has been particularly crucial for the development of MagStREXS: the Crystallographic Fortran Modules Library (CrysFML). This library is a collection of Fortran modules designed to simplify the development of crystallographic software (Rodríguez-Carvajal & González-Platas, 2002
; Rodríguez-Carvajal & González-Platas, 2023
). While there are other crystallographic libraries, such as the Cambridge Crystallographic Subroutine Library (Matthewman et al., 1982
) and the Computational Crystallography Toolbox (Grosse-Kunstleve et al., 2002
), CrysFML was the only suitable option for creating MagStREXS. Firstly, this library benefits from the efficiency and simplicity of modern Fortran. Secondly, CrysFML defines numerous derived types (data structures) that are well suited to describing the various elements required for the analysis performed with MagStREXS, such as atomic and magnetic structures, the symmetry of these models, and the data collected in diffraction experiments. Finally, the library includes a wide range of functionalities, from general-purpose procedures, such as mathematical functions and subroutines for string manipulation, to more specific crystallographic computing procedures, such as those for handling symmetry, sets of reflections, and atomic and magnetic structures. The combination of these features has greatly facilitated the development of MagStREXS.
While the original version of CrysFML was written in Fortran 90/95, it has now been superseded by CrysFML2008, a new version based on the latest Fortran standard (Fortran 2023 at the time of writing) (Rodríguez-Carvajal & González-Platas, 2025
). This updated version exploits new language features, such as submodules and object-oriented capabilities, enabling the implementation of a symmetry-based description of magnetic structures in MagStREXS.
2.1. Description based on representation analysis
According to Landau theory, representation analysis assumes that magnetic orderings arising from a can be described using the basis functions corresponding to a single irrep of the magnetic representation associated with the parent structure (Bertaut, 1968
; Bertaut, 1981
; Izyumov & Naish, 1979
; Izyumov et al., 1979b
; Izyumov et al., 1979a
). In this framework, any possible magnetic ordering is represented by a Fourier series,
where mo,w is the of atom w in the associated with the lattice vector Ro (the position vector of the origin of cell o), with the atom located at Ro,w = Ro + rw. The use of a minus sign in the exponential factor is discussed in Appendix A
. The set of {q} vectors represents the propagation vectors involved in the description of the magnetic structure. These vectors are determined experimentally and define the relationship between magnetic moments located in different unit cells of the atomic structure. The Fourier coefficients Sq,w are, in general, complex vectors and must satisfy =
to ensure that the mq,w is a real vector. These Fourier coefficients Sq,w can be expressed as a linear combination of the basis functions of the irrep used to construct the magnetic model,
where ν is the label of the active irrep, d is an index related to the dimension of this irrep and p indicates the number of times the irrep ν appears in the decomposition of the magnetic representation. The basis functions are represented by the vectors . The parameters
are the mixing coefficients used when a magnetic model involves a combination of multiple basis functions. If the description of the magnetic structure includes more than one irrep, a sum over ν should also be included in equation (2)
.
One advantage of the representation analysis approach is its ability to describe both commensurate and incommensurate phases, as equation (1)
is applicable in both cases, and the components of the propagation vector(s) can be either rational or irrational. However, a limitation of this approach is that it does not incorporate information about the invariance symmetry of the magnetic structure.
2.2. Description based on symmetry
In the symmetry-based approach for describing magnetic ordering, the set of magnetic models compatible with a given atomic structure is identified and classified according to their symmetry. This description requires distinguishing between commensurate and incommensurate structures, as the symmetry of the former is described by an MSG, also known as a Shubnikov group, while the symmetry of the latter can only be characterized using an MSSG. To describe a magnetic structure within this framework, it is necessary to define its magnetic the smallest building block whose periodic repetition reproduces the magnetic structure. This magnetic is defined by the vectors {amag, bmag, cmag} and is generally different from the unit cell used to describe the atomic structure, which is defined by the vectors {a, b, c}. Other essential components of this description include the list of atomic positions {rw} and the symmetrically independent magnetic moments. In the context of the REXS technique, the magnetic moments are replaced by unit vectors {zw} representing the orientation of these moments.
The symmetry group that leaves a magnetic ordering invariant is characterized by the coset representatives with respect to the translation group. This set of symmetry operations allows the enumeration of atoms and magnetic moments that are symmetrically equivalent within a magnetic unit cell. It is useful to describe the action of a symmetry operation on atomic positions and magnetic moments, as this is employed in the calculation of the structure factor detailed in Section 3
. Using the Seitz notation, a generic symmetry operation within an MSG can be written as
= {g, δ|t}, where g, δ and t represent the rotational part, the signature and the translational part of the symmetry operator, respectively. The signature δ is related to time reversal (denoted by the symbol 1′), an operation that acts exclusively on magnetic moments according to 1′m = −m. If time reversal is part of the symmetry operation
, the value of δ is −1; otherwise, it is 1. With this notation, the action of a on the position and of an atom can be expressed, respectively, as
A more detailed discussion of symmetry operators within an MSG and their action on various atomic features can be found in other references (Rodríguez-Carvajal & Villain, 2019
; Petříček et al., 2010
).
3. REXS structure factor for electric dipole transitions
According to the kinematical approximation, the intensity of a diffracted X-ray beam is proportional to |F|2, where F is the of the whole crystal. This can be expressed as
where the summations over o and w include all unit cells of the crystal and all atoms within the respectively. Note that, to facilitate comparison with similar calculations found in other references (Rodríguez-Carvajal & Villain, 2019
; Petříček et al., 2010
), we use the crystallographic convention, where 2π is explicitly written in the exponential factor, the scattering vector Q = kf − ki = 2πs is expressed in terms of the vector s, and H represents a vector of the reciprocal lattice.
The can be expressed as
where the last two terms become significant near an absorption edge. The term corresponds to the Thomson scattering factor, given by
where εi and εf are the polarization vectors of the incident and diffracted beams, respectively. The term represents the non-resonant magnetic scattering factor (Blume & Gibbs, 1988
), which is currently not computed in MagStREXS. An enumeration of the different multipole terms that can appear in is provided by Matteo (2012
) and Matsumura (2017
), along with references therein. In MagStREXS at present, we only retain the electric dipole term (Hill & McMorrow, 1996
; Altarelli, 2006
), expressed as
where zm is the unit vector in the direction of the of the mth ion of the atom type λ. The factors f1,m(Eλ) and f2,m(Eλ) are two scalars related to the strength of the resonant process at the energy Eλ at which the experiment is performed.
In the following subsections, the expression of the is calculated within the two different approaches used to describe magnetic structures (see Section 2
). Obviously, a magnetic structure is independent of the approach used to describe it, and accordingly, REXS structure factors calculated using different approaches must be consistent, as shown in the case study presented in Section 6
.
3.1. REXS structure factor for electric dipole transitions within the representation analysis approach
In the representation analysis approach, the vectors zo,m can be calculated as a Fourier series similar to the one given in equation (1)
.
By introducing equations (5)
, (6)
, (7)
and (1)
into equation (4
), and considering the assumptions outlined above, the structure factor can be expressed as
where the summation index m runs only over the magnetic atoms of type λ in the and the factors f1,m(Eλ) and f2,m(Eλ) may vary between symmetrically independent sites. The Fourier coefficients Sq,m are analogous to those in equation (1)
. The double summation over q and q′ in the third term accounts for all combinations that can arise in a magnetic structure with more than one propagation vector. The summations over H include all vectors of the The Dirac delta functions in equation (8)
represent the diffraction conditions, determining the contribution of each term at different positions in The first term contributes to charge Bragg reflections (with no dependence on the magnetic structure), while the second and third terms give rise to first- and second-order magnetic reflections, respectively.
The expression in equation (8)
is valid for all kinds of magnetic structures, commensurate and incommensurate, including those with multiple propagation vectors. It is useful to rearrange the terms to highlight the contributions associated with different magnetic models. For example, in a magnetic structure with more than one propagation vector, the vectors q and q′ can be equal to or different from 0, meaning the third term in equation (8)
can be reorganized as
Here, terms with q = 0 or q′ = 0 are explicitly indicated (note the Fourier coefficients S0,m). This rearrangement shows that the Dirac delta functions δ(s − H), δ(s − q − H) and δ(s − q − q′ − H) produce diffracted intensities at different positions in reciprocal space, with two exceptions. The first occurs in magnetic structures involving a propagation vector that is half of a reciprocal-lattice vector (), with the combination q = q′ = qi. The second arises in incommensurate phases with the combination q = qi and q′ = −qi, as the mathematical description of these structures always involves the pair (qi, −qi) for propagation vectors with one (or more) irrational components. In both cases, the contribution of the third term in equation (9)
overlaps in with contributions associated with the Dirac delta function δ(s − H).
To clarify equations (8)
and (9)
, it is helpful to write the REXS structure factor explicitly at different positions in reciprocal space. For a particular reflection at position s0 = H0, where H0 is a vector of the associated with the atomic the is
Here, the summation over w is relevant only when the reflection H0 satisfies the of the of the atomic structure. The first and second terms in the summation over m are included only if q = 0 is one of the propagation vectors describing the magnetic structure. The summation of the third term runs over propagation vectors of the form , and the summation of the last term runs over propagation vectors that comply the conditions q ≠ 0 and
.
For a first-order magnetic reflection at position s1 = H0 + q1, the structure factor is
The second term in equation (11)
is relevant only for magnetic structures with more than one propagation vector, when the vector q = 0 is one of them (e.g. an antiferromagnetic structure with a ferromagnetic component).
Finally, for a second-order magnetic reflection at position s2 = H0 + q1 + q2, the structure factor is
Here, it is assumed that q1 and q2 are different from 0, q2 ≠ −q1 and q1 + q2 ≠ H.
3.2. REXS structure factor for electric dipole transitions within the symmetry-based approach for the commensurate case
In the symmetry-based approach for describing magnetic ordering, it is necessary to distinguish between commensurate and incommensurate structures. Since the description of incommensurate magnetic phases using MSSGs is not yet fully implemented in MagStREXS, we focus here on the REXS structure factor for commensurate magnetic phases.
By considering equations (4)
, (5)
, (6)
and (7)
, along with the assumptions discussed in Section 3
, the REXS structure factor for a commensurate magnetic phase can be expressed as
Here, the summations over o, w and m run over all magnetic unit cells (mag) of the structure, all atoms in one magnetic and all magnetic atoms of type λ in one magnetic respectively. This can be further decomposed into
In this expression, the summations over o and m have been rearranged to run only over the symmetrically independent atoms and magnetic atoms of type λ, respectively. The summation over spans the symmetry operations associated with each The action of these symmetry operators on the positions and magnetic moments of the atoms has been explicitly indicated (see Section 2
for further details). Note that a factor [δdet(g)]2 = 1 has been omitted in the third term. The Dirac delta functions δ(s − H) give rise to diffracted intensities at positions corresponding to reciprocal lattice vectors associated with the magnetic unit cell.
The final expression for the structure factor corresponding to a particular reflection at position H0, where H0 is a vector of the associated with the magnetic is
In the symmetry-based description of a commensurate magnetic structure, no propagation vector is used to characterize the distribution of diffracted intensities, as all reflections are associated with a reciprocal lattice vector of the magnetic unit cell. The contributions of each term in equation (15)
to different positions in depend not only on the orientation of the magnetic moments but also on the MSG. Similarly to non-magnetic diffraction, certain symmetry operations in the MSG of the magnetic structure give rise to as discussed for magnetic non-polarized neutron diffraction by Li (1956
) and Gallego et al. (2012
). A complete discussion of the possible contributions and reflection conditions (or extinction rules) associated with the different terms in this equation is beyond the scope of this article.
4. Density matrix formalism
REXS experiments can be conducted in various diffraction geometries, with different polarizations of the incident X-ray beam and in different polarization channels. For example, in an FLPA, the Poincaré–Stokes (P-S) parameters of the diffracted beam are typically measured in a fixed diffraction geometry, while the direction of the electric field vector of the linearly polarized incident beam is rotated around ki, the wavevector associated with the incoming photons. To account for all these possibilities, the density matrix formalism must be employed. For instance, within this formalism, the intensity (I) and the P-S parameters (P1, P2, P3) of a given X-ray beam can be calculated as
Here, ρ is a matrix representing the state of the X-ray beam, which can be completely or partially polarized, and the matrices
are the Pauli matrices. A more detailed discussion of this formalism can be found in the articles by Blume & Gibbs (1988
) and Detlefs et al. (2012
), and references therein.
Within this formalism, the effect of the different elements interacting with the X-ray beam (such as the sample, a phase retarder or an analyser) is calculated by combining the density matrix describing the state of the X-ray beam with the corresponding Jones matrix using the expression
where ρ and ρ′ are the density matrices associated with the incident and scattered beam, respectively, M is the Jones matrix of the element interacting with the X-ray beam, and M† is the conjugate transpose of M. Thus, the combined effect of the multiple scatterers on the X-ray beam can be determined by successively applying equation (17)
with the Jones matrix associated with each element in the beam path.
The polarization state of the incident beam is characterized by the P-S parameters P1, P2 and P3. These parameters can be combined to calculate the density matrix of the incident beam, given by
where the matrices σ1, σ2 and σ3 are the Pauli matrices mentioned above.
The Jones matrix for the sample is written as a 2 × 2 matrix, using εσ and επ as basis vectors to describe the different polarization states involved in the scattering process:
Here, each element of the matrix corresponds to one of the REXS structure factors calculated in Section 3
, and the initial and final polarization states have been replaced by the basis vectors εσ and επ. Note that the Jones matrix depends on the position in reciprocal space for which the scattering contributions are being calculated, as specified by the vector s. Finally, the intensities and P-S parameters are calculated by combining equation (19)
with equations (17)
and (16)
.
5. Agreement factors
The type of analysis conducted with MagStREXS involves evaluating different magnetic models to account for the experimental data. In addition to the graphical representations typically used in such analyses to compare calculated and measured values, several agreement factors have been computed to assess the quality of the fit for each examined model.
For datasets consisting of a set of integrated intensities, the Bragg factor RB is used as an agreement factor. This factor is a standard criterion in crystallography for analysing single-crystal diffraction data. RB is calculated using the expression
where and
represent the experimental and calculated values, respectively, of the integrated intensity associated with reflection h, and the summation includes all reflections in the dataset.
To estimate the agreement between the observed and calculated values for FLPA data, an R factor adapted to the P-S parameters P1 and P2 has been employed. This factor, denoted by RPS, is given by the expression
where the summation over n includes the different points associated with the set of values of the polarization angle η selected during FLPA data collection, and the index i = 1, 2 corresponds to the P-S parameters P1 and P2, respectively.
6. Case study: antiferromagnetic phase of compound EuNi2Ge2
To demonstrate the capabilities of MagStREXS, we selected a material with a well known commensurate magnetic structure. The compound EuNi2Ge2 was reported to undergo an antiferromagnetic at TN = 30.8 K, featuring magnetic reflections associated with the propagation vector q = (0, 0, 1). Due to the large neutron absorption cross section of Eu, the magnetic phase of this compound was previously investigated using REXS. It was concluded that the magnetic moments lie in the ab plane of the tetragonal structure, on the basis of the dependence of the integrated intensities of the measured reflections on |Q| (Islam et al., 1999
). Given the limited data available for this compound and the fact that FLPA in REXS was only proposed several years after that initial study (Mazzoli et al., 2007
; Johnson et al., 2008
; Scagnoli et al., 2009
), a new REXS experiment was conducted on the P09 beamline at PETRA III (DESY). Data were collected at 5 K, with the energy of the incident beam tuned to the Eu LII (7614 eV). Exploiting the experimental capabilities available on the P09 beamline (Strempfer et al., 2013
; Francoual et al., 2013
), two types of data were collected: the integrated intensities of a set of ten magnetic reflections measured in the σπ′ channel, and FLPA datasets for the magnetic reflections 005, 009 and 016.
6.1. Analysis based on representation analysis
In this approach, the list of models that can describe the magnetic structure of the compound EuNi2Ge2 is generated through representation analysis performed using the software BasIreps [a program within the FullProf suite (Rodríguez-Carvajal, 1993
)]. The information required for this analysis includes the space group of the atomic structure (I4/mmm, No. 139), the position of the Eu atom [located at r = (0, 0, 0), Wyckoff site 2a] and the propagation vector [q = (0, 0, 1)]. In this case, the decomposition of the magnetic representation involves two irreps,
where mM3+ and mM5+ are one- and two-dimensional irreps, respectively. The basis vectors associated with each irrep are given in Table 1
. The magnetic model based on mM3+ involves only one basis function, which determines that the magnetic moments are oriented along the c axis, while the most general model based on irrep mM5+ is a linear combination of basis functions ψ2 and ψ3, with the magnetic moments lying in the ab plane.
| ||||||||||||||||||||||||||||||||||||||||||||||
Four different models were examined with MagStREXS: models 1, 2 and 3 correspond to the magnetic orderings associated with basis functions ψ1, ψ2 and ψ3, respectively, while model 4 is constructed as a combination of basis vectors ψ2 and ψ3. In this last model, two mixing coefficients (C2 and C3) are included to combine the two basis functions involved [see equation (2)
for more details]. These coefficients are the free parameters of the model that determine the specific orientation of the magnetic moments within the ab plane, and MagStREXS can be used to find the values corresponding to the best fit, since a procedure is implemented in the current version of the software.
The two types of data collected in the REXS diffraction experiment were used simultaneously in the fits performed with MagStREXS for each of the magnetic models. The calculated intensities corresponding to each of the four magnetic models are compared with the experimental values in Fig. 1
, while a comparison between the measured and calculated P-S parameters is shown in Fig. 2
. Additional figures displaying the P-S parameters corresponding to reflections 009 and 016 are provided in Appendix B
. The agreement factors obtained for each magnetic model and experimental dataset are given in Table 2
(see Section 5
for more details). The results from MagStREXS for each of the examined models show that the best fit to the experimental data corresponds to model 4. The magnetic structure is ordered according to irrep mM5+, with magnetic moments lying in the ab plane. The values of the mixing coefficients corresponding to the best fit obtained in the procedure carried out with model 4 are
where C2 and C3 are the mixing coefficients associated with basis functions ψ2 and ψ3, respectively. Considering the basis functions used to construct the magnetic model (Table 1
) and how they are combined with the mixing coefficients to calculate the magnetic moments [equations (1)
and (2)
], the obtained values indicate that the magnetic moments are almost parallel to the direction [10]. In this compound, this direction is special because the space group of the atomic structure contains a twofold axis along this direction, which is part of the site symmetry of the position occupied by the Eu atom. This can have implications for the symmetry of the magnetic structure, and therefore it is convenient to consider a new model with the magnetic moments restricted to the direction [1
0]. Model 5 introduces such a constraint by using the same combination of basis functions ψ2 and ψ3 as in model 4 but fixing the mixing coefficients to the values
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Figure 1 Comparison of observed and calculated integrated intensities for the magnetic models considered within the representation analysis approach. The blue lines represent the ideal case where the observed and calculated intensities are equal. The values calculated for models 4 and 5 provide the best fit to the distribution of intensities measured experimentally. The figures obtained for these two models are essentially the same. |
| Figure 2 Observed and calculated P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 005 for the different magnetic models. The figures represent the variation in P-S parameters with respect to the angle of polarization of the incident X-ray beam (denoted η). The coloured circles and continuous lines represent the observed and calculated values, respectively. Only the values calculated for models 4 and 5 reproduce the P-S parameters measured experimentally. The figures obtained for these two models are essentially the same. |
As with the previously examined models, the intensities and P-S parameters corresponding to model 5 were calculated with MagStREXS and compared with the experimental values. The figures obtained with both types of data are nearly identical to those obtained for model 4. The agreement factors calculated for the two models are also similar (see Table 2
), with the agreement factors of model 5 slightly higher but not enough to discard this model in favour of model 4. The magnetic structure corresponding to model 5 is shown in Fig. 3
.
| Figure 3 Magnetic structure of EuNi2Ge2 shown in four adjacent unit cells. In this case, the atomic and magnetic structures can be described with the same The distribution is ferromagnetic within ab planes and antiferromagnetic along the c axis. |
Although the results obtained with models 4 and 5 are close, the two models are conceptually different. In model 4, the magnetic moments can be oriented along any direction in the ab plane, while model 5 is more restrictive, forcing the magnetic moments to align along [10]. Since these restrictions are usually related to the symmetry of the magnetic structure, it is clear that model 5 corresponds to a magnetic structure with higher symmetry. To clarify this point, it is convenient to perform the analysis of the magnetic structure within the symmetry-based approach, which is the focus of the next subsection.
6.2. Analysis based on symmetry
In the symmetry-based approach, the list of models to be considered for describing the magnetic structure of the compound EuNi2Ge2 is generated using the tool MAXMAGN from the Bilbao Crystallographic Server (Perez-Mato et al., 2015
). This program identifies all possible maximal magnetic symmetries compatible with the symmetry of the atomic structure (I4/mmm, No. 139) and the experimentally determined propagation vector [q = (0, 0, 1)]. It then derives the models compatible with each of these symmetries. If the position of the magnetic atom [Eu atom, located at r = (0, 0, 0)] is also provided, MAXMAGN can determine the possible orientations for each model on the basis of symmetry constraints associated with each atomic position. The list of magnetic models obtained from this tool is given in Table 3
, including the MSG associated with each model. Note that the symbol and number of each MSG provided in this table and throughout this paper are given in the Belov–Neronova–Smirnova (BNS) system (Belov et al., 1957
). The table also includes the transformation from the basis of the atomic structure to the standard setting of each MSG for each model, indicated using the shorthand notation employed in International Tables for Crystallography (Aroyo, 2016
). Note that models 7 and 8 (and, analogously, models 9 and 10) are associated with the same MSG but with different transformations, indicating that the two models contain the same set of symmetry elements but with different orientations relative to the basis of the atomic structure. As a result, the symmetry constraints differ and the magnetic moments are restricted to different directions in each model. Finally, note that almost all models in Table 3
have a one-to-one correspondence with models in Section 6.1
; models 6, 7, 9 and 10 are equivalent to models 1, 5, 3 and 2, respectively.
| ||||||||||||||||||||||||||||||
The observed and calculated intensities and P-S parameters for the different models are shown in Figs. 4
and 5
, respectively. Additional figures presenting the P-S parameters corresponding to reflections 009 and 016 are provided in Appendix B
. The agreement factors obtained for each magnetic model are given in Table 4
. Model 7 leads to the best results, confirming that it represents the magnetic structure of the studied compound, as concluded in Section 6.1
. Since model 5 and model 7 are the same, the symmetry of model 5 is given by MSG CAmca (No. 64.480).
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Figure 4 Observed and calculated integrated intensities for the magnetic models listed in Table 3 |
| Figure 5 Comparison of observed (circles) and calculated (lines) P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 005 for magnetic models given in Table 3 |
7. Conclusions
The purpose of MagStREXS is to facilitate the analysis of magnetic structures using resonant elastic X-ray scattering diffraction data, drawing on the concepts and computational tools developed within magnetic crystallography. Symmetry considerations have only recently been incorporated in the analysis of REXS data, primarily limited to the representation analysis approach (Nandi et al., 2011
; Williams et al., 2016
; Donnerer et al., 2016
). Due to the inherent complexity of magnetic structures, their accurate description and analysis require the use of either representation analysis or magnetic space groups/magnetic superspace groups, or ideally, both. In this paper, we have presented the fundamental equations for the REXS structure factor associated with electric dipolar transitions (E1–E1) as currently implemented in the MagStREXS software for these two crystallographic approaches. We have illustrated the results of the analysis obtained with MagStREXS for both types of description using real experimental data collected for the commensurate magnetic structure of the compound EuNi2Ge2.
The use of MagStREXS should enable researchers to achieve scientific outcomes promptly, preventing them from being overwhelmed by the intricate details of the calculations. Users might employ MagStREXS for a full analysis of their data or to double-check their calculations. In an ideal scenario, users will have determined the magnetic structure of the studied compound by the time their experiment on the beamline is completed. In the case study of the compound EuNi2Ge2 presented in this paper, the determination of the magnetic structure was relatively straightforward. While preparing the experimental setup and collecting data took three days, the data analysis work took less than five hours, with most of the effort dedicated to data reduction and preparing the files to introduce the different models into MagStREXS. Computation times are of the order of tens of seconds, making it possible to explore different magnetic structures in a short time. In other cases, the data analysis is more demanding because the studied phase requires more complex magnetic models than initially considered, and care must be taken in constructing these alternative models. Occasionally, results obtained with MagStREXS during a beamtime session might indicate that additional data are required, which is still valuable information for refining the experimental strategy.
MagStREXS has been available as a beta version since 2022, with users of beamline P09 having the opportunity to run the software on the scientific computing platform of DESY, enabling them to obtain scientific results rapidly (Littlehales et al., 2024
). At the same time, this approach has allowed for debugging the software, testing its robustness and identifying further functionalities that need to be implemented in MagStREXS. In parallel to its development, MagStREXS has already contributed to several scientific cases (Simeth et al., 2023
; Rahn et al., 2024
; Moody et al., 2025
). The software is under continuous improvement to offer more functionalities, with the latest being the description of commensurate structures based on MSGs.
APPENDIX A
Convention used in the expression of the magnetic moments
The negative sign in the Fourier series of equation (1)
is consistent with the expression used in crystallography for the electron scattering density in terms of structure factors, written as
As a consequence, the REXS structure factors have a positive sign in the exponential factor. Adopting the standard solid-state physics convention would imply a negative sign in the exponential function, and the contributions associated with propagation vector q1 or with the combination q1 + q2 would appear at positions H0 − q1 and H0 − q1 − q2, respectively. The convention which we use is also consistent with the common formulation employed in the superspace formalism description as presented in a recent article on JANA by Henriques et al. (2024
).
APPENDIX B
Antiferromagnetic phase of compound EuNi2Ge2: additional figures
Comparisons of observed and calculated P-S parameters corresponding to the reflections 009 and 016 are shown in Figs. 6
–9![]()
![]()
. The figures include comparisons of the different models considered in Section 6
. All the figures represent the variation in P-S parameters (P1 in blue and P2 in red) with respect to the polarization of the incident X-ray beam (angle η). The coloured circles and continuous lines represent the observed and calculated values, respectively.
| Figure 6 Observed and calculated P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 009 for the magnetic models introduced in Section 6.1 |
| Figure 7 Observed and calculated P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 016 for the magnetic models introduced in Section 6.1 |
| Figure 8 Observed and calculated P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 009 for the magnetic models given in Table 3 |
| Figure 9 Observed and calculated P-S parameters P1 (blue) and P2 (red) corresponding to the reflection 016 for the magnetic models given in Table 3 |
Acknowledgements
We thank Dr Frédéric-Emmanuel Picca at the synchrotron radiation source SOLEIL, Paris (France), and Dr Teresa Núñez Pardo de Vera at FS-EC, DESY, Hamburg (Germany), for helpful discussions on the hkl library, Dr Andre Rothkirch at FS-EC, DESY, for assistance with the Maxwell cluster, and Dr Akihiro Mitsuda, Department of Physics at Kyushu University (Japan), for providing the EuNi2Ge2 single crystals. We greatly appreciate Dr Juan Manuel Perez-Mato for thorough discussions on magnetic crystallography. P. J. Bereciartua thanks Dr Nebil A. Katcho for discussions on crystallographic software development. We also thank the users of beamline P09 at PETRA III, DESY, who contributed crucial datasets that were used to develop, test and/or debug the software. Additionally, we thank the beta users of MagStREXS for their invaluable feedback on the software. We acknowledge DESY, a member of the Helmholtz Association HGF, for the provision of experimental facilities. Parts of this research were carried out on beamline P09 at PETRA III, DESY, and other parts were supported through the Maxwell computational resources operated at DESY. Open access funding enabled and organized by Projekt DEAL.
Conflict of interest
The authors declare that there are no conflicts of interest.
Data availability
All data supporting the plots within this paper and other results of this study are available upon reasonable request from the corresponding author.
Funding information
The following funding is acknowledged: Stephenson Distinguished Visitor Programme at DESY in Hamburg (Germany) for supporting the stay of Juan Rodríguez-Carvajal at DESY in 2018.
References
Altarelli, M. (2006). Magnetism: a synchrotron radiation approach, edited by E. Beaurepaire, H. Bulou, F. Scheurer & J.-P. Kappler, pp. 201–242. Berlin, Heidelberg: Springer. Google Scholar
Aroyo, M. I. (2016). Editor. International tables for crystallography Vol. A, Space-group symmetry, 6th ed., ch. 1.5, pp. 75–106. Wiley. Google Scholar
Belov, N. V., Neronova, N. N. & Smirnova, T. S. (1957). Sov. Phys. Crystallogr. 2, 311–322. Google Scholar
Bernevig, B. A., Felser, C. & Beidenkopf, H. (2022). Nature 603, 41–51. Web of Science CrossRef CAS PubMed Google Scholar
Bertaut, E. F. (1968). Acta Cryst. A24, 217–231. CrossRef IUCr Journals Web of Science Google Scholar
Bertaut, E. F. (1981). J. Magn. Magn. Mater. 24, 267–278. CrossRef CAS Web of Science Google Scholar
Blume, M. & Gibbs, D. (1988). Phys. Rev. B 37, 1779–1789. CrossRef CAS Web of Science Google Scholar
Damay, F. (2015). J. Phys. D Appl. Phys. 48, 504005. Web of Science CrossRef Google Scholar
Detlefs, C., Sanchez del Rio, M. & Mazzoli, C. (2012). Eur. Phys. J. Spec. Top. 208, 359–371. Web of Science CrossRef CAS Google Scholar
Donnerer, C., Rahn, M., Sala, M. M., Vale, J., Pincini, D., Strempfer, J., Krisch, M., Prabhakaran, D., Boothroyd, A. & McMorrow, D. (2016). Phys. Rev. Lett. 117, 037201. Web of Science CrossRef PubMed Google Scholar
Dronskowski, R., Brückel, T., Kohlmann, H., Avdeev, M., Houben, A., Meven, M., Hofmann, M., Kamiyama, T., Zobel, M., Schweika, W., Hermann, R. P. & Sano-Furukawa, A. (2024). Z. Kristallogr. Cryst. Mater. 239, 139–166. Web of Science CrossRef CAS Google Scholar
Francoual, S., Strempfer, J., Reuther, D., Shukla, D. & Skaugen, A. (2013). J. Phys. Conf. Ser. 425, 132010. CrossRef Google Scholar
Gallego, S. V., Tasci, E. S., de la Flor, G., Perez-Mato, J. M. & Aroyo, M. I. (2012). J. Appl. Cryst. 45, 1236–1247. Web of Science CrossRef CAS IUCr Journals Google Scholar
Grosse-Kunstleve, R. W., Sauter, N. K., Moriarty, N. W. & Adams, P. D. (2002). J. Appl. Cryst. 35, 126–136. Web of Science CrossRef CAS IUCr Journals Google Scholar
Henriques, M. S., Petříček, V., Goswami, S. & Dušek, M. (2024). Acta Cryst. B80, 409–423. Web of Science CrossRef IUCr Journals Google Scholar
Hill, J. P. & McMorrow, D. F. (1996). Acta Cryst. A52, 236–244. CrossRef CAS Web of Science IUCr Journals Google Scholar
Islam, Z., Detlefs, C., Song, C., Goldman, A., Antropov, V., Harmon, B., Bud'ko, S., Wiener, T., Canfield, P., Wermeille, D. & Finkelstein, K. D. (1999). Phys. Rev. Lett. 83, 2817–2820. Web of Science CrossRef CAS Google Scholar
Izyumov, Y. A. & Naish, V. E. (1979). J. Magn. Magn. Mater. 12, 239–248. CrossRef CAS Web of Science Google Scholar
Izyumov, Y. A., Naish, V. E. & Petrov, S. B. (1979a). J. Magn. Magn. Mater. 13, 267–274. CrossRef CAS Web of Science Google Scholar
Izyumov, Y. A., Naish, V. E. & Syromiatnikov, V. N. (1979b). J. Magn. Magn. Mater. 12, 249–261. CrossRef CAS Web of Science Google Scholar
Johnson, R. D., Bland, S. R., Mazzoli, C., Beale, T. A. W., Du, C.-H., Detlefs, C., Wilkins, S. B. & Hatton, P. D. (2008). Phys. Rev. B 78, 104407. Web of Science CrossRef Google Scholar
Li, Y.-Y. (1956). Acta Cryst. 9, 738–740. CrossRef CAS IUCr Journals Web of Science Google Scholar
Littlehales, M. T., Moody, S. H., Bereciartua, P. J., Mayoh, D. A., Parkin, Z. B., Blundell, T. J., Unsworth, E., Francoual, S., Balakrishnan, G., Venero, D. A. & Hatton, P. D. (2024). Phys. Rev. Res. 6, L032015. Web of Science CrossRef Google Scholar
Matsumura, T. (2017). Resonant X-ray Scattering in Correlated Systems, edited by Y. Murakami & S. Ishihara, pp. 85–117. Berlin, Heidelberg: Springer. Google Scholar
Matteo, S. D. (2012). J. Phys. D Appl. Phys. 45, 163001. Web of Science CrossRef Google Scholar
Matthewman, J. C., Thompson, P. & Brown, P. J. (1982). J. Appl. Cryst. 15, 167–173. CrossRef CAS Web of Science IUCr Journals Google Scholar
Mazzoli, C., Wilkins, S. B., Di Matteo, S., Detlefs, B., Detlefs, C., Scagnoli, V., Paolasini, L. & Ghigna, P. (2007). Phys. Rev. B 76, 195118. Web of Science CrossRef Google Scholar
Moody, S. H., Bereciartua, P. J., Littlehales, M. T., Wilson, M. N., Gomilšek, M., Birch, M. T., Mayoh, D. A., Balakrishnan, G., Francoual, S. & Hatton, P. D. (2025). Phys. Rev. Lett. 135, 076706. Web of Science CrossRef PubMed Google Scholar
Nandi, S., Su, Y., Xiao, Y., Price, S., Wang, X. F., Chen, X. H., Herrero-Martín, J., Mazzoli, C., Walker, H. C., Paolasini, L., Francoual, S., Shukla, D. K., Strempfer, J., Chatterji, T., Kumar, C. M. N., Mittal, R., Rønnow, H. M., Rüegg, C., McMorrow, D. F. & Brückel, T. (2011). Phys. Rev. B 84, 054419. Web of Science CrossRef Google Scholar
Perez-Mato, J. M., Gallego, S. V., Tasci, E. S., Elcoro, L., de la Flor, G. & Aroyo, M. I. (2015). Annu. Rev. Mater. Res. 45, 217–248. CAS Google Scholar
Perez-Mato, J. M. & Ribeiro, J. L. (2011). Acta Cryst. A67, 264–268. Web of Science CrossRef IUCr Journals Google Scholar
Perez-Mato, J. M., Ribeiro, J. L., Petříček, V. & Aroyo, M. I. (2012). J. Phys. Condens. Matter 24, 163201. Web of Science PubMed Google Scholar
Petříček, V., Fuksa, J. & Dušek, M. (2010). Acta Cryst. A66, 649–655. Web of Science CrossRef IUCr Journals Google Scholar
Rahn, M. C., Wilson, M. N., Hicken, T. J., Pratt, F. L., Wang, C., Orlandi, F., Khalyavin, D. D., Manuel, P., Veiga, L. S. I., Bombardi, A., Francoual, S., Bereciartua, P., Sukhanov, A. S., Thompson, J. D., Thomas, S. M., Rosa, P. F. S., Lancaster, T., Ronning, F. & Janoschek, M. (2024). Phys. Rev. B 109, 174404. Web of Science CrossRef Google Scholar
Rodríguez-Carvajal, J. (1993). Physica B 192, 55–69. Google Scholar
Rodríguez-Carvajal, J. & Bourée, F. (2012). EPJ Web Conf. 22, 00010. Google Scholar
Rodríguez-Carvajal, J. & González-Platas, J. (2002). Acta Cryst. A58, C87. Google Scholar
Rodríguez-Carvajal, J. & González-Platas, J. (2023). CrysFML, https://code.ill.fr/scientific-software/crysfml. Google Scholar
Rodríguez-Carvajal, J. & González-Platas, J. (2025). CrysFML2008, https://code.ill.fr/scientific-software/CrysFML2008. Google Scholar
Rodriguez-Carvajal, J. & Perez-Mato, J. M. (2024). Acta Cryst. B80, 370–376. Web of Science CrossRef IUCr Journals Google Scholar
Rodríguez-Carvajal, J. & Villain, J. (2019). C. R. Phys. 20, 770–802. Google Scholar
Scagnoli, V., Mazzoli, C., Detlefs, C., Bernard, P., Fondacaro, A., Paolasini, L., Fabrizi, F. & de Bergevin, F. (2009). J. Synchrotron Rad. 16, 778–787. Web of Science CrossRef CAS IUCr Journals Google Scholar
Shirane, G. (1959). Acta Cryst. 12, 282–285. CrossRef IUCr Journals Web of Science Google Scholar
Simeth, W., Bauer, A., Franz, C., Aqeel, A., Bereciartua, P. J., Sears, J. A., Francoual, S., Back, C. H. & Pfleiderer, C. (2023). Phys. Rev. Lett. 130, 266701. Web of Science CrossRef PubMed Google Scholar
Strempfer, J., Francoual, S., Reuther, D., Shukla, D. K., Skaugen, A., Schulte-Schrepping, H., Kracht, T. & Franz, H. (2013). J. Synchrotron Rad. 20, 541–549. Web of Science CrossRef CAS IUCr Journals Google Scholar
Williams, S., Johnson, R., Freund, F., Choi, S., Jesche, A., Kimchi, I., Manni, S., Bombardi, A., Manuel, P., Gegenwart, P. & Coldea, R. (2016). Phys. Rev. B 93, 195158. Web of Science CrossRef 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.
access
journal menu



