summaryrefslogtreecommitdiff
path: root/1535/CH6/EX6.12
diff options
context:
space:
mode:
Diffstat (limited to '1535/CH6/EX6.12')
-rwxr-xr-x1535/CH6/EX6.12/Ch06Ex12.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/1535/CH6/EX6.12/Ch06Ex12.sci b/1535/CH6/EX6.12/Ch06Ex12.sci
new file mode 100755
index 000000000..f5fa95ee1
--- /dev/null
+++ b/1535/CH6/EX6.12/Ch06Ex12.sci
@@ -0,0 +1,17 @@
+// Scilab Code Ex6.12 : Bragg reflection angle for the second order diffraction: Page-138 (2010)
+// For (110) planes
+h = 1, k = 1, l = 0; // Miller indices for (110) planes
+d_110 = 0.195e-009; // Interplanar spacing between (110) planes, m
+// As d_110 = a/(h^2 + k^2 + l^2)^(1/2), solving for a
+a = d_110*(h^2 + k^2 + l^2)^(1/2); // Lattice parameter for bcc crystal, m
+// For (210) planes
+h = 2, k = 1, l = 0; // Miller indices for (110) planes
+d_210 = a/(h^2 + k^2 + l^2)^(1/2); // Interplanar spacing between (210) planes, m
+n = 2; // Seconds Order of diffraction
+lambda = 0.072e-009; // Wavelength of X-rays, m
+// From Bragg's Law, n*lambda = 2*d_210*sind(theta), solving for theta
+theta = asind(n*lambda/(2*d_210)); // Bragg reflection angle for the second order diffraction, degrees
+printf("\nBragg reflection angle for the second order diffraction = %5.2f degrees", theta);
+
+// Result
+// Bragg reflection angle for the second order diffraction = 35.72 degrees \ No newline at end of file