summaryrefslogtreecommitdiff
path: root/3753/CH8/EX8.3/Ex8_3.sce
blob: 17e4743d9de86dd8815f7a4b98c239a172bfae93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Example number 8.3, Page number 8.17


clc;clear;close

// Variable declaration
a=(2*2.82*10^-10) // in m
delta_Hs=1.971*1.6*10^-19 // unitless
k=1.38*10^-23 // Constant
T=300 // in K

// Calculations
V=a^3                           // Volume of unit cell of NaCl
N=4/V                            // Total number of ion pairs
n=N*exp(-delta_Hs/(2*k*T))  //concentration in per m^3

// Result
printf("Volume of unit cell of NaCl = %.3e m^3",V)
printf("\nTotal number of ion pairs ''N'' = %.2e",N)
printf("\nThe concentration of Schottky defects per m^3 at 300K = %.2e",n)