diff options
Diffstat (limited to '2309/CH5/EX5.12')
-rwxr-xr-x | 2309/CH5/EX5.12/Ex5_12.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2309/CH5/EX5.12/Ex5_12.sce b/2309/CH5/EX5.12/Ex5_12.sce new file mode 100755 index 000000000..b10562ac6 --- /dev/null +++ b/2309/CH5/EX5.12/Ex5_12.sce @@ -0,0 +1,22 @@ +// Chapter 5 Example 12
+//==============================================================================
+clc;
+clear;
+
+// input data
+// BCC structured crystal
+
+p = 7860; // Density of iron in kg/m^3
+N = 6.023*10^26; // Avagadros number in atoms/kilomole
+A = 55.85; // Atomic weight
+n = 2; // No. of atoms per unit cell for BCC
+
+//Calculations
+
+a = ((n*A)/(N*p))^(1/3); //lattice constant
+
+//Output
+
+mprintf('Lattice Constant of Fe = %3.3f Å \n',a*10^10);
+mprintf(' Note: density of iron is taken as 7.86 instead of 7860 in calculation')
+//==============================================================================
|