Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Powder X-ray diffraction is a technique used to characterize the structure of crystals. The idea is illustrated in the figure below. The crystalline grains
Python
Powder X-ray diffraction is a technique used to characterize the structure of crystals. The idea is illustrated in the figure below. The crystalline grains in the powder have all possible orientations. For the incident beam of a particular direction, diffraction can occur only for a discrete set of angles 20. So, in the plot of the intensity vs. 20 (see the figure), we see a set of peaks corresponding to the 20 values where diffraction occurs. For simple cubic crystals, the angle 20 for which diffraction occurs should satisfy the following condition: sin ha + k + 12, 2a where is the wavelength of the x-ray, a is the lattice parameter, and h, k and I are integers representing the crystallographic indices. The wavelength of x-ray typically used in experiments is 1.54 angstrom. Assume that the lattice parameter is a = 4.0 angstrom. Write a python code to calculate the 20 values corresponding to the first 10 peaks in the plot of intensity vs. 20. (You can check your answer with the experimental measurement for BaTiO3). ? Diffracted beam Incident beam 04 120.720, [287201 Intensity 20 Hint: You may loop the values of h, k amd l from - N to N, calculate 20 according to the formula, and store the 20 values to a list. Since some (h, k,l) values result in the same value of 20, we need to delete the repeated items in the list. A possible way to delete the repeated items in a list is converting the list to set (recall that no repeated item is allowed in a set) and then converting the set back to list. Finally, sort the list and print out the first 10 items of the list. Powder X-ray diffraction is a technique used to characterize the structure of crystals. The idea is illustrated in the figure below. The crystalline grains in the powder have all possible orientations. For the incident beam of a particular direction, diffraction can occur only for a discrete set of angles 20. So, in the plot of the intensity vs. 20 (see the figure), we see a set of peaks corresponding to the 20 values where diffraction occurs. For simple cubic crystals, the angle 20 for which diffraction occurs should satisfy the following condition: sin ha + k + 12, 2a where is the wavelength of the x-ray, a is the lattice parameter, and h, k and I are integers representing the crystallographic indices. The wavelength of x-ray typically used in experiments is 1.54 angstrom. Assume that the lattice parameter is a = 4.0 angstrom. Write a python code to calculate the 20 values corresponding to the first 10 peaks in the plot of intensity vs. 20. (You can check your answer with the experimental measurement for BaTiO3). ? Diffracted beam Incident beam 04 120.720, [287201 Intensity 20 Hint: You may loop the values of h, k amd l from - N to N, calculate 20 according to the formula, and store the 20 values to a list. Since some (h, k,l) values result in the same value of 20, we need to delete the repeated items in the list. A possible way to delete the repeated items in a list is converting the list to set (recall that no repeated item is allowed in a set) and then converting the set back to list. Finally, sort the list and print out the first 10 items of the listStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started