Reverse Monte Carlo (RMC) is a computational modelling method that adapts the standard Metropolis–Hastings algorithm to solve inverse problems in which a model is iteratively adjusted until its parameters achieve maximum consistency with experimental data. The method is most widely known for its applications in condensed matter physics and solid-state chemistry, particularly for deriving atomic-level structural models of disordered materials.
Basic method
The RMC approach typically begins with an initial configuration of N atoms placed within a periodic boundary cell. One or more measurable quantities are then computed from this configuration, with commonly used data including the pair distribution function and its Fourier transform (derived from neutron or X-ray scattering data), Bragg diffraction data for crystalline materials, and extended X-ray absorption fine structure (EXAFS) data. The agreement between calculated and experimentally observed values is quantified using a chi-squared function of the form:
χ² = Σ (y_obs − y_calc)² / σ²
where y_obs and y_calc are the observed and calculated quantities, respectively, and σ represents the measurement accuracy. The sum runs over all independent measurements and all data points.
An iterative procedure is then executed in which a randomly chosen atom is displaced by a random amount, and the measurable quantities are recomputed. This produces a change in χ² denoted as Δχ². The move is accepted with probability min(1, exp(−Δχ²/2)) following the Metropolis–Hastings criterion, so that moves improving agreement with experiment are always accepted, while moves worsening agreement may be accepted with a probability that decreases as the agreement worsens. Moves may also be rejected if they violate imposed constraints—for example, if a proposed move brings two atoms closer than a preset minimum distance. As iterations proceed, the calculated quantities converge toward experimental values until an equilibrium state is reached, after which the algorithm produces small oscillations in χ² around a minimum. The resulting configuration is a structure consistent with the experimental data within its stated errors.
Historical development
The RMC method for condensed matter problems was initially developed by R. L. McGreevy and L. Pusztai in 1988, with an early application to liquid argon. Earlier independent applications of a conceptually similar approach exist, including those by Kaplow, Rowe, and Averbach (1968) for vitreous selenium and by Gerold and Kern (1987) for solid solutions. However, the McGreevy–Pusztai implementation became the best-known formulation of the method. For several years, RMC's primary application was to liquids and amorphous materials, for which it provided one of the few routes to structural models from scattering data. More recently, the method has also been applied to disordered crystalline materials.
Applications
RMC has been used across a broad range of condensed-matter problems, including:
- Structural modelling of liquids and amorphous solids from neutron and X-ray total scattering data
- Analysis of crystalline disorder using Bragg diffraction and total scattering data
- Modelling of magnetic materials through the magnetic component of total scattering
- Studies of solid solutions where atoms may exchange positions
- Extraction of local structural and thermal disorder from EXAFS spectra in crystalline and nanocrystalline materials
Limitations and constraints
The RMC method faces several recognized limitations. The most notable is that multiple qualitatively different structural models can yield similar agreement with experimental data (the problem of non-uniqueness). For example, for amorphous silicon, the first-peak integral of the pair distribution function may imply an average coordination number of four, but this is consistent both with all atoms having coordination four and with a mixture of three- and five-coordinated atoms. Without explicit coordination constraints, RMC will typically produce a distribution of coordination numbers. Because RMC follows standard statistical-mechanics rules, its solution tends toward the maximum-disorder (maximum-entropy) configuration consistent with the data. Additionally, because the method often has more variables than observables, the final configuration may contain artifacts arising from attempts to fit statistical noise in the data. Most contemporary applications address these issues through the use of implicit or explicit constraints.
Software implementations
Several publicly available implementations of the RMC method exist:
- RMCProfile: A significantly developed Fortran-based version of the original McGreevy–Pusztai code, supporting liquids, amorphous materials, and crystalline materials (including magnetic systems and atomic-swapping systems).
- RMC++: A rewritten C++ implementation designed for liquids and amorphous materials.
- fullrmc: A Python-interfaced, object-oriented RMC modelling package with optimized C/Cython computational cores, supporting rigid-body and molecular systems and incorporating machine learning and reinforcement learning techniques.
- HRMC (Hybrid Reverse Monte Carlo): A code that fits pair correlation functions and structure factors alongside bond-angle and coordination distributions, incorporating empirical interatomic potentials for carbon, silicon, and germanium.
- EvAX: A code for RMC simulations of EXAFS spectra in crystalline and nanocrystalline materials, using an evolutionary algorithm for optimization.
- AtomisticReverseMonteCarlo: A Python-based code for generating bulk crystal structures with target short-range order parameters, usable as an Ovito modifier.