diff options
Diffstat (limited to '635/CH8/EX8.12/Ch08Ex12.sci')
-rwxr-xr-x | 635/CH8/EX8.12/Ch08Ex12.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/635/CH8/EX8.12/Ch08Ex12.sci b/635/CH8/EX8.12/Ch08Ex12.sci new file mode 100755 index 000000000..783ae3008 --- /dev/null +++ b/635/CH8/EX8.12/Ch08Ex12.sci @@ -0,0 +1,14 @@ +// Scilab code Ex8.12: Reciprocal lattice parameters from 2-D direct lattice parameters Page 277 (2010)
+a = 3e-010; // First lattice parameter of direct lattice
+b = 5e-010; // Second lattice parameter of direct lattice
+theta = 60; // Angle between two lattice vectors of the direct lattice
+// if a_prime and b_prime are the lattice vectors for the reciprocal lattice, then
+// a_prime*a = 2*%pi and a_prime*b = 0
+// Similarly, b_prime*b = 2*%pi and b_prime*a = 0
+// Solving for a_prime and b_prime, we have
+a_prime = 2*%pi/(a*cosd(90-theta)); // Lattice vector for reciprocal lattice, per metre
+b_prime = 2*%pi/(b*cosd(90-theta)); // Lattice vector for reciprocal lattice, per metre
+printf("\nThe reciprocal lattice vectors are:\n a_prime = %5.2f per angstrom and b_prime = %5.2f per angstrom", a_prime*1e-010, b_prime*1e-010);
+// Result
+// The reciprocal lattice vectors are:
+// a_prime = 2.42 per angstrom and b_prime = 1.45 per angstrom
\ No newline at end of file |