summaryrefslogtreecommitdiff
path: root/2309/CH5/EX5.a.3
diff options
context:
space:
mode:
Diffstat (limited to '2309/CH5/EX5.a.3')
-rwxr-xr-x2309/CH5/EX5.a.3/A_Ex5_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2309/CH5/EX5.a.3/A_Ex5_3.sce b/2309/CH5/EX5.a.3/A_Ex5_3.sce
new file mode 100755
index 000000000..a3aebbff0
--- /dev/null
+++ b/2309/CH5/EX5.a.3/A_Ex5_3.sce
@@ -0,0 +1,23 @@
+// Chapter 5 additional Example 3
+//==============================================================================
+clc;
+clear;
+
+// input data
+// NaCl has FCC structure
+
+ANa = 23; // atomic wt of sodiim
+ACl = 35.45 // atomic wt of chlorine
+N = 6.023*10^26; // Avagadros number in atoms/kilomole
+n = 4 // No. of atoms per unit cell for FCC
+p = 2180; // density in kg/m^-3
+
+// Calculations
+
+// p = (n*A)/(N*a^3); density
+A = ANa+ACl; // atomic wt of NaCl
+a = ((n*A)/(N*p))^(1/3); // lattice constant
+r = a/2 // Distance b/w two adjacent atoms
+//Output
+mprintf('Distance between two adjacent atoms is r = %3.2e m',r);
+//==============================================================================