Reverse Monte Carlo: Difference between revisions

From SklogWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:
#Select and move one atom at random and calculate the new distribution function, structure factor and:
#Select and move one atom at random and calculate the new distribution function, structure factor and:
#:<math>\chi_n^2=\sum_i(S_n^C(Q_i)-S^E(Q_i))^2/\sigma(Q_i)^2</math>
#:<math>\chi_n^2=\sum_i(S_n^C(Q_i)-S^E(Q_i))^2/\sigma(Q_i)^2</math>
#If <math>\chi_n^2<\chi_o^2</math> accept the move and let the new configuration become the old. If <math>\chi_n^2>\chi_o^2</math> then the move is accepted with probability <math>\exp(-(\chi_n^2-\chi_0^2)/2)</math> otherwise rejected.
#If <math>\chi_n^2<\chi_o^2</math> accept the move and let the new configuration become the old. If <math>\chi_n^2>\chi_o^2</math> then the move is accepted with probability <math>\exp(-(\chi_n^2-\chi_0^2)/2)</math> otherwise it is rejected.
#repeat from step 5.
#repeat from step 5.
When <math>\chi^2</math> have reached an equilibrium the configuration is saved and can be analysed.
When <math>\chi^2</math> have reached an equilibrium the configuration is saved and can be analysed.

Revision as of 19:13, 19 February 2007

Reverse Monte Carlo (RMC) [1] is a variation of the standard Metropolis Monte Carlo (MMC) method. It is used to produce a 3 dimensional atomic model that fits a set of measurements (Neutron-, X-ray-diffraction, EXAFS etc.). In addition to measured data a number of constraints based on prior knowledge of the system (like chemical bonds etc.) can be applied. Some examples are:

  1. Closest approach between atoms (hard sphere potential)
  2. Coordination numbers.
  3. Angles in triplets of atoms.

The algorithm for RMC can be written:

  1. Start with a configuration of atoms with periodic boundary conditions. This can be a random or a crystalline configuration from a different simulation or model.
  2. Calculate the total radial distribution function Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle g_{o}^{C}(r)} for this old configuration.
  3. Transform to the total structure factor:
    where Q is the momentum transfer and the number density.
  4. Calculate the difference between the measured structure factor Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle S^{E}(Q)} and the one calculated from the configuration Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle S_{o}^{C}(Q)} :
    Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \chi _{o}^{2}=\sum _{i}(S_{o}^{C}(Q_{i})-S^{E}(Q_{i}))^{2}/\sigma (Q_{i})^{2}}
    this sum is taken over all experimental points is the experimental error.
  5. Select and move one atom at random and calculate the new distribution function, structure factor and:
    Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \chi _{n}^{2}=\sum _{i}(S_{n}^{C}(Q_{i})-S^{E}(Q_{i}))^{2}/\sigma (Q_{i})^{2}}
  6. If Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \chi _{n}^{2}<\chi _{o}^{2}} accept the move and let the new configuration become the old. If then the move is accepted with probability Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \exp(-(\chi_n^2-\chi_0^2)/2)} otherwise it is rejected.
  7. repeat from step 5.

When Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \chi^2} have reached an equilibrium the configuration is saved and can be analysed.


References

  1. R.L.McGreevy and L. Pusztai, "Reverse Monte Carlo Simulation: A New Technique for the Determination of Disordered Structures", Molecular Simulation, 1 pp. 359-367 (1988)