summaryrefslogtreecommitdiff
path: root/1736/CH1/EX1.6/Ch01Ex6.sce
blob: 884407ee18c7befbb59e35b2a8d0db53b8c0afad (plain)
1
2
3
4
5
6
7
8
9
10
11
// Scilab Code Ex 1.6 : Page-18 (2006)
clc; clear;
r = 1.33;       // Ionic radii of K+ ion, angstrom
R = 1.81;     // Ionic radii of Cl- ion, angstrom
n = 4;    // No. of atoms per unit cell for an fcc lattice of NaCl crystal
APF = (n*(4*%pi*r^3/3)+n*(4*%pi*R^3/3))/(2*r+2*R)^3;    // Atomic packing factor of fcc KCl
printf("\nThe ionic packing factor of fcc KCl = %4.2f", APF);

// Result 
// The ionic packing factor of fcc KCl = 0.56