Open Higomon opened 1 year ago
Could you share a reference for the expression in the exponential? I'm not an expert in XRD but can help out if I have a resource to look at.
Thank you for your reply.
I only have the text written in Japanese by Fujio Izumi.
Instead, I asked ChatGPT4, and the answer is below. I'm no expert in crystallography, but the following seems to be a reasonable answer.
In X-ray diffraction, the Debye-Waller factor (also known as the temperature factor) accounts for the reduction in diffracted intensity due to atomic vibrations. It's typically denoted as B, and it's related to the mean square displacement of atoms, <u²>, via the equation:
B = 8π²<u²>
This factor is applied to the scattering intensity of X-rays using the formula:
I = I0 exp(-2Bsin²θ/λ²)
where:
Here, B assumes isotropic vibrations, i.e., atoms vibrate equally in all directions, which may not be the case in many real-world applications.
The Debye-Waller factor (B) assumes isotropic vibrations, i.e., that atoms vibrate equally in all directions. However, in many real-world cases, atomic vibrations can be anisotropic, meaning they vary depending on the direction.
In cases of anisotropic vibrations, the Debye-Waller factor is replaced by an anisotropic displacement parameter (ADP), also known as anisotropic temperature factor. This anisotropic factor is usually expressed as a symmetric 3x3 tensor (matrix):
U =
| U11 U12 U13 |
| U12 U22 U23 |
| U13 U23 U33 |
Each element of this matrix represents mean-square displacement along specific crystallographic directions.
When this anisotropic displacement parameter is incorporated, the intensity equation becomes:
I = I0 exp[-2π²(h²a²U11 + k²b²U22 + l²c²U33 + 2hkabU12 + 2hlccU13 + 2klbc*U23)]
where:
This allows for more accurate modeling of atomic vibrations in X-ray diffraction studies, particularly in real-world cases where these vibrations are likely to be anisotropic.
Please note that the above form is a general form and may take different forms depending on the specific crystal structure or experimental conditions.
Describe the bug
I am not an expert in XRD.
An XRD expert on Twitter(https://bit.ly/3jhhoDi) pointed out that rough X-ray diffraction intensity calculations ignoring Debye-Waller factors are not valid.
Therefore, I tried simulating by changing the Debye-Waller factors as shown in the attached figure. Even when I raised the Debye-Waller factor of iron, the intensity seems too high on the high-angle side compared to the VESTA results.
Is the target formula (line 243) of xrd.py correct?
By referring to the expert's book on XRD, I modified it as follows and got reasonable results.
I would like the expert to verify this.
pymatgen.analysis.diffraction.xrd module
xrd.py
Environment
CIF file
gamma-Fe2O3_fiz15840.zip
Code