"All parts CGA2.1 29 Nov89  last mod 16.3.90  + Authors K.M.Crennell L.S.Dent Glasser " program subject to copyright ( t`O *X(2,7),q%(8),c%(131) +: ,1:INTRO:INIT 4'I$;"Do you want to start at the beginning(B)or jump to the revision examples (R) for this module? Press B or R ";N$;:g("BbRr"): A$="R" A$="r" d\@ <S1: A$<>" " T|@ FS5: A$<>" " DF@ PS7: A$<>" " DF@ ZS14: A$<>" " DP@ dS17: A$<>" " DZ@ nS22: A$<>" " Dd@ xS25: A$<>" " Dn@ S32: A$<>" " Dx@ S34: A$<>" " tB@ S36: A$<>" " tL@ S39: A$<>" " tV@ S43: A$<>" " t`@ S50: A$<>" " tj@ S52: A$<>" " tt@ S53: A$<>" " t~@ S54: A$<>" " dH@ Intror S59: A$<>" " df@ txt::''I$"Cubic closest pack-ing"+N$+" is also looked at in the other three programs on this disc "'I$;"Atomic Packing and Crystal Structures"N$'''" THE END" Sb "MENU" : ,INTRO:D%=3 0"PROCintro 4*FX11,0 8 turn off AUTO REPEAT 9TY$=" Type your answer" <*FX212,200 @*FX214,3 D"REDUCE BELL aFI$=17+131+17+0:N$=17+128+17+3:No$=I$+7+"No"+N$:131::1:10,2)" PC (CGA) Version " &H10,6)I$;"ATOMIC PACKING & " $L8,8)"CRYSTAL STRUCTURES 2.1 " FP10,12)"Interstitial Sites "5,14)"in Closest-packed Structures " T1:12,18)"Copyright 1990" 1X2,20)"L.S.Dent Glasser & K.M.Crennell" \Sb:128::3 `''"Program 1 considered the close-packing of equal spheres. Only the structures of single element solids such as the noble gases or metals can be described in this way." id''"Most crystals are built from more than one kind of atom, and these atoms are ofdifferent sizes." h''" This program looks at some structures derived from closest-packing by filling the ";:2:"interstitial sites ";:3:"in an array of closest packed atoms, and explores" ql"further the differences between hexagonal and cubic closest packing. ( HCP and CCP )":128 pSb: q: INIT "H%=0:P%=1: flagS for PROCD,&R A%=48:"RADIUS OF SPHERE "SX%=4*(A%/(48)+0.5):SY%=A%+4 .U%=248:V%=440:"LOCATION OF CENTRAL SPHERE " I%= 0 15:X%:c%(I%)=4*X%: A I%=16 70 2:X%,Y%:c%(I%)=X%*SX%+U%:c%(I%+1)=Y%*SY%+V%:  I%= 0 8:q%(I%)=I%: ("Define characters for superscripts 23,255,8,8,62,8,8,0,0,0 23,254,24,36,8,16,60,0,0,0 23,253,0,0,0,24,36,8,16,60 23,252,24,36,8,36,24,0,0,0 E%=0:F%=0 S%=72  I%=18 26  dpA G J%=1 3:X,Y:c%(S%)=4*(X*I%)+U%:c%(S%+1)=4*(Y*I%)+V%:S%=S%+2:  I% P dpA: J%=1 3:X,Y:c%(S%)=4*(-X*26)+U%:c%(S%+1)=4*(-Y*26)+V%:S%=S%+2:  : 5 LOOKUP TABLE FOR FOLLOWING TRANSLATIONS OF DATA  index to c%  470 0  472 6  474 10  478 16  480 22  482 28  484 40  488 52  490 54  492 66  496 72 "8 RANDOM SPHERES SC1 30,40, 110,100, 130,160  80,180, 40,110  20,160, 60,80, 140,40 " 1ST LAYER  2,0, -1,-1, -1,1  -4,0, 2,2, 2,-2 ) -4,2, -4,-2, 5,-1, 5,1, -1,-3, -1,3 ' 5,-3, 2,-4, -7,-1, -7,1, 2,4, 5,3 " 2ND LAYER  0,0 & 3,-1, 0,-2, -3,-1, -3,1, 0,2,3,1  6,0, -3,-3, -3,3 "Scene 14 LOCATIONS 72-131 " -1,0, 0.5,0.866, 0.5,-0.866 : XS1 >btxt::0,5)"Atoms and ions"'"vary greatly in"'"size.":5 JlA%=80:drn(0,0,2,4,3):A%=36:drn(6,0,2,4,2):A%=16:drn(10,0,2,4,3):Sb yv4:'"The relatively"'"large ones, such ascaesium or chlorideions, have radii ofalmost 2 Angstrom units. (0.2nm)":5 -A%=96:drn(0,0,1,4,3):Sb:drn(0,0,2,4,3) g'"Some, such as oxideor fluoride ions, are intermediate insize at just over an Angstrom (0.1nm)" -A%=48:drn(6,0,1,4,2):Sb:drn(6,0,2,4,2) a'"And some, such as Mg";254;255;" or Al";252;255;" are"'"tiny, less than an Angstrom."' :A%=24:drn(10,0,1,4,3):Sb:drn(10,0,2,4,3):20:Spr: : S5 x26,12:txt:''"Many crystal"'"structures can be described as a closest-packed array of one type of atom," tdrn(16,0,0,3,18):Sb:A%=16:drn(52,0,1,4,-10):'"with smaller ones tucked into the spaces between them":Sb }A%=48:drn(16,0,2,4,-12):A%=16:drn(16,0,1,4,6):'"The layers of big atoms are shaded differently for clarity.":Sb <'"Let us look more closely at these spaces.":Spr: :  S7 J*26::txt:''"Here is a close-"'"packed layer.":drn(16,0,2,4,18):Sb 4'"The next layer fitson top like this."':drn(52,0,0,7,-10):Sb:"Only half the"'"hollows have"'"spheres on top; theothers have not.":Sb >'"Thus there are two"''"sorts of holes, or"''I$;"interstitial sites,";N$'"between the layers.":Sb:A%=12:drn(16,3,1,8,-12) eH"One sort- these - are above the gaps in the bottom layerand below the gaps in the top one":Sb R'"The other sort are above the atoms of the lower layer -":drn(16,3,1,8,-12):drn(16,3,3,8,18):Sb:"or below those of the upper layer."':drn(16,3,3,8,18):drn(52,3,1,8,-10) 1\Spr:A%=12:drn(52,3,1,8,-10)::A$="R" T~C f20:'"Suppose the larger spheres are oxide ions. Smaller ions - say Mg";254;255;" - fit into the first typeof interstitial site.":A%=20:drn(16,0,1,4,-1):A%=48:Sb p'"How many oxide ionstouch the Mg? ";: rt=6 '"Yes";:DxC No$", count again ";: rt=6 '"Yes";:DxC 'No$", there are 6" xSpr: y: S14 26::txt:''"The 6 oxide ions are arranged aroundthe central Mg likethis."''"Repeated pressing of SPACEBAR moves the ions apart so that you can see the structure more clearly."  S%=72 120 6 *FX19 A%=48:drn(52,0,0,8,1):A%=52:drn(S%,0,0,8,-3):A%=48:drn(S%,0,2,8,-2):drn(S%+4,0,2,4,-1):A%=24:drn(52,0,1,4,1):A%=52:drn(S%,0,0,8,3):A%=48:drn(S%,0,2,4,3):Sb: E'"The ions lie at theapices of a regularpolyhedron.":5:OCT:Sb *FX202,40 e'"What is it?"'"__________";:8,8,8,8,8,8,8,8,8,8:I%=rt:A$,3)="OCT" A$,3)="oct" '"Yes" g'"It is an "'I$"octahedron"N$'"we say the Mg is"'I$" octahedrally "'" coordinated "N$':Spr: : S17 p26::txt:'"The Mg occupies"''"OCTAHEDRAL SITES"''"between two close-"'"packed layers of"'"oxide ions.":5 Ldrn(16,0,2,4,18):A%=16:drn(16,0,1,4,-12):A%=48:drn(52,0,0,3,-10):Sb &'"Now add a third"'"oxide layer." E%=72:drn(16,0,3,7,6):Sb *FX202,40 '"Are the oxide ions HEXAGONAL or CUBIC close-packed?"'I$"(HCP or CCP)"N$;:I%=rt: A$="CCP",(A$)) A$="ccp",(A$)) A$<>""'"Yes"; 'No$; $'"the oxide ions are CUBIC close-packed.":Sb:"More Mg ions can"'"be fitted between"'"these top layers."'"Where do you think they go?"'"1"; .E%=0:A%=16:5:L%=15:drn(16,0,3,8,3):P(2):drn(16,0,0,-207,3):P(2)::Sb:;" or 2";:5: L%=1 5:drn(16,0,3,8,-3):P(2):drn(16,0,0,-206,-3):P(2)::Sb /;" or 3":5 }8 L%=1 5:drn(52,0,3,8,7):P(2):drn(52,0,0,-205,7):P(2)::4:"Which? ";: rt=1 '"Yes "; 'No$" they are at 1. "; :Sb RB"Thus...":drn(52,0,0,8,7):drn(16,0,0,8,-3):A%=16:drn(16,0,1,4,6):A%=48:Sb L4:'" How many Mg ions touch each oxide"'"ion? ";:rt=6"Yes"' No$", count again "': rt<>6 No$", 6 Mg ions toucheach oxide ion."' '"Yes"' `Spr: a: S22 P26::txt:''"Look at these smallions surrounding a large oxide ion.":S%=72 eA%=120:drn(52,0,0,8,1):A%=24:drn(S%,0,1,4,-3):A%=64:drn(52,0,2,4,1):A%=24:drn(S%,0,1,4,3):Sb g'"Which polyhedron dothey form? ";:I%=rt:W$=A$,3):W$="oct" W$="OCT" W$="Oct"'"Yes" 'No$ 1'"It is an "I$"octahedron";:OCT:Sb:128:3 26,12:txt:''"In the extended"'"array, 6 Mg ions touch 6 oxides, and6 oxides touch eachMg."''"What is the formulaof the compound? "; MA%=48:drn(16,0,2,4,18):A%=16:drn(16,0,1,4,-12):A%=48:drn(52,0,0,3,-10) aI%=rt: A$="MGO" A$="mgo" A$="MgO" A$="mGO" A$="mGo" '"Yes" 'No$", it is MgO":Sb Xdrn(16,0,2,4,18):A%=16:drn(16,0,1,4,-3):drn(22,0,3,4,-9):A%=48:drn(52,0,0,3,-10) '"In the extended"'"array, there are equal numbers of each kind of ion."'"Each is surrounded by an octahedron formed by the otherkind.":Sb:"For example, 6 Mg ions surround each oxide."' !A%=16:drn(16,0,1,4,3):Spr: : S25 e26,12:txt:'"MgO is based on cubic close packing -like this":F%=160:A:P(6):B:P(6):C:Sb X(0,20);"HEXAGONAL close packing is"'"different":F%=-240:A:P(2):B:P(2):A:Sb 226,24,0;400;1279;799;16,26:txt:''"When we fit atoms into the octahedralsite in CCP, the layers build up"'"like this." :<E%=120:F%=160:A:Sb:c:P(9):B:P(6):a:P(9):C:Sb F26,24,0;400;1279;799;16,26:txt:'"The layers of"'"interstitial atoms are staggered."''"Call them a,b,c tocorrespond with theA,B,C of the large ones."''"Now press the"'"SPACEBAR to build up the layers again" P5:A:0,460:65:Sb:5:c:0,508:"c over":Sb:B:5:0,556:"B over":Sb:5:a:0,604:"a over":Sb:5:C:0,652:"C over":Spr:E%=120:F%=160:A$="R" A$="r" DFE vd0,10);"The arrangement is still CUBIC. Watch what happens with the HCP array " 7n26,24,0;0;1279;400;::txt:0,18)" ":F%=-240:Sb x4:'"Here the small"'"atoms lie one abovethe other."':A:P(6):c:P(9):B:P(6):c:P(9):A:4:"Press the SPACEBAR to rebuild the HCP.":Sb 26,24,0;0;600;400;::txt:5:A:0,90:65:Sb:5:c:0,138:"c over":Sb:5:B:0,186:"B over":Sb:5:c:0,234:"c over":Sb:5:A: 0,282:"A over" 0Spr:E%=80:F%=-240: A$="R" A$="r" tBE ͖26,4,28,21,24,39,10,12:'''"In HCP the small atoms are not staggered."''"They form straight lines through the structure."''"Because of this, they are closer together than in CCP."':Sb R"In HCP how many small atoms touch each large one? ";:rt=6"Yes"':t~E 'No$", watch while we count them.";:24,0;0;600;400;16:Sb:A:P(2):c:4:'"3 little atoms":Sb:B:"touch the middle"'"large atom":Sb:c *"which touches"'"3 more little atoms" Spr: : S32:W%=3 r26::txt:''"There are three small atoms just below each large atom, and three just above.":5:Sb )F%=160:A:c:P(3):B:P(3):c:Sb:4 '"It is easier to seethe shape of the group if we view itfrom different"'"angles."'':IN(64):F%=-240:D(20,60):I$+" Use the cursor keys to rotate it." (''N$+"Press RETURN to continue"; *FX4,1 U:G%=:G%=136R(15,2) G%=137R(-15,2) G%=138R(-15,1) G%=139R(15,1) 6G%>135 G%<140 A%=120:drn(52,0,0,8,1):D(20,60) " G%=13:*FX4,0 ,A%=120:drn(52,0,0,8,1):E%=-160:IN(64):R(15,3):R(70,1):D(20,60):E%=160:TRG:D(20,0):0,23)"Do the small"'"atoms form an"'"octahedron? Y/N" =6g("YyNn"):;A$: A$="N" A$="n" "Yes, "; No$", "; C@;"it is not an"'"octahedron. It is a"+I$+"trigonal prism."+N$' JSpr: K: ^S34:W%=3 h26::txt:'''"So in HCP the smallatoms touch an"'I$+"octahedron"+N$+" of six large ones.":F%=156:drn(126,0,1,4,2):drn(130,0,1,4,1):A%=24:drn(52,0,2,4,1):A%=52:drn(126,0,0,4,-3) yrA%=48:drn(126,0,1,4,-3):OCT:Sb:4:0,18)"But the large atomstouch a"'I$+"trigonal prism"'N$+"of six small ones." :|F%=-240:IN(108):R(15,3):R(70,1):D(24,60):TRG:Spr  : S36:W%=3 26::txt:'"This arrangement isless symmetrical than the cubic one."':Sb:"Now we look roughlyalong the close- packed planes to see another"'"difference." F%=160:E%=-160:P%=1:IN(84):R(60,6):R(75,3):R(70,1):D(20,60):5:80,740:"CCP HCP":E%=160:IN(84):R(15,3):R(70,1):D(20,60):Sb ''"Because the ions in the trigonal prism (of CCP) lie above one another, they are closer."''"Press the SPACEBAR to turn one into the other." ?5:F%=-240:E%=216:IN(128):R(127,3):R(70,1):D(20,0):TRG QE%=-96:M%=600-10:24,0;60;300;500;:IN(128):R(M%,6):R(127-M%,3):R(70,1) :D(20,0) @D(20,0):E%=192TRG:OG:E%=-160:24,0;100;320;500;:D(20,0) TRG: M%>30OG Sb: c4:0,25);I$;"To repeat press R or SPACE continues";N$:A$=:A$="R":28,21,31,39,25:: dLF  PROCSpr    : S39:W%=3 26::txt:'"Structures based onHCP occur if the interstitial atoms attract one anotherfavouring the"'I$+"trigonal prism."+N$'"Atoms which repel one another favour CCP because then they are further apart." F%=192:E%=-120:IN(108):R(60,6):R(-15,3):R(80,1):TRG:OG:E%=160:IN(108):R(45,3):R(80,1):TRG:Sb:5:150,764:"O P":4 '"Try this experiment"'"Choose either an"'I$+"O"+N$+"ctahedron or a"'"Trigonal "I$+"P"+N$+"rism,"'"Press O or P ";:g("OPop"):;A$:C$=A$ tA%=32: F%=0 -120 -120: E%=-120+F%/40 200-F%/40320-F%/20:drn(52,0,2,4,1)::U%-88,V%+F%:U%+168,V%+F%: U5:40,V%+12:"A";:0,1:" > > < <":0,3:40,V%-108:"R";:0,1:" < < > >":4 *FX202,40 l'"A atoms "I$"A"N$"ttract"'"R atoms "I$"R"N$"epel"'"Which is likely to favour your"'"polyhedron? A/R "; g("ARar"):;A$: (C$="O" C$="o") (A$="R" A$="r") "Yes. R atoms repel,increase distance." (C$="P" C$="p") (A$="A" A$="a") "Yes A atoms attractdecrease distance." * (C$="P" C$="p") (A$="R" A$="r") No$". R atoms repel.." (C$="O" C$="o") (A$="A" A$="a") No$" A atoms attract." k4I$+"Press R to repeat the question, or SPACEBAR continues"+N$:g("R "):': A$="R" A$="r" dnG >''"In ionic solids, the small ions havethe same sign, and repel one another."''"What sort of"'"packing should thisfavour- CCP or HCP? ":I%=rt:"CCP",(A$))=A$ "ccp",(A$))=A$ A$<>"""Yes"; No$; H" it is CCP":Sb:'"HCP structures withatoms in octahedralsites are rare. An example is NiAs"'"where the Ni atoms are thought to"'"attract through"'"Ni-Ni "I$"covalent"N$ +R"or "I$;"semi-metallic";N$'"bonding."' \20:Spr: ]: S43:F%=144:E%=-80 {26::txt:'"At the beginning ofthis module, we sawthat there are"+I$+" two "+N$+"types of inter- stitial sites."'' drn(16,0,1,4,12):drn(52,0,3,7,-7):Sb:'"The "+I$+"octahedral"+N$'"sites are above thegaps in the lower layer, and below the gaps in the"'"upper layer.":A%=12:drn(16,3,2,8,-6):Sb adrn(16,3,2,8,-6):drn(16,3,3,4,6):'"Some other sites lie above atoms of the lower layer." '"How many large"'"atoms surround thistype of site? ";:rt=4'"Yes" 'No$", count again ";:rt=4'"Yes" 'No$", there are 4" drn(16,3,3,8,6):drn(52,0,2,8,-7):E%=0:'"The remaining siteslie below atoms of the upper layer. How many large"'"atoms surround"'"these? "; Q rt=4 '"Yes" 'No$", count again ";: rt=4 '"Yes" 'No$", there are 4" O'"Atoms in these"'"sites touch a "'I$"tetrahedron"N$" of fourlarge atoms." kE%=48:F%=-180:W%=4:IN(112):R(-35,1):R(45,2):TT(0,3):Sb:'"A tetrahedron is related to a cube."'' eCU(7,1):D(20,0):Sb:"Try rotating this using the cursor keys."''"To continue, press RETURN" *FX4,1 MG%=:G%=136R(9,2) G%=137R(-9,2) G%=138 R(-9,1) G%=139R(9,1) J A%=176:drn(52,0,0,8,1):G%=13TPI CU(7,1):TT(0,3)::D(20,0):d|H  *FX4,0 y :4:'"Suppose the large spheres are oxide ions. Small ions, such as Li, can"'"fit into the"'"tetrahedral sites." O$ A%=48:E%=40:drn(16,0,1,4,-12):drn(52,0,3,7,7):A%=12:drn(16,0,2,8,-6):Sb W. '"To see how these are arranged, buildup a cubic array using the SPACEBAR":Sb 8 E%=520:A%=48:A:26,5:1100,128:"A":A%=20:Sb:5:drn(52,0,2,4,1):1100,160:"b over":0,80:"Tetrahedral site 1":Sb:5:drn(16,0,2,4,3):1036,160:"a,":576,80:"-2-3-4" pB Sb:5:A%=48:B:1100,192:"B over":Sb:5:A%=20:drn(16,0,2,4,-3):1100,224:"c over":768,80:"-5-6-7":Sb ^L 5:drn(52,0,2,4,1):1036,224:"b,":960,80:"-8":Sb:5:A%=48:C:1100,256:"C over":Sb -V Spr: A$="R" 24,640;0;1279;620;::TxI t u : S50 26::txt:'"Here is the cubic array of oxide ionswith small Li ions in the tetrahedral sites.":F%=160:drn(16,0,0,3,6):drn(52,0,0,3,7):a:A%=20:drn(52,0,2,4,1):A%=48:drn(16,0,0,3,-6):Sb *FX202,48 '"If there is a Li ion in every"'"tetrahedral site, each oxide ion"'"touches 8 Li, and each Li touches 4 oxides."''"What is the formulaof this compound? ":I%=rt B A$="Li2O" A$="LI2O" A$="li2o" A$="lI2O"'"Yes" 'No$ *FX202,40 "It is Li";:253:"O"''"The 8 Li form a cube around the oxide.":Sb:F%=-240:E%=-80:drn(16,0,0,3,6):0,3:5:450,128:"A" s A%=20:drn(52,0,2,4,1):450,160:"b over":Sb:5:a:386,160:"a,":Sb:W%=4:IN(64):R(135,3):R(55,2):CU(1,1)  "Here is the"'"bottom corner of the cube...":Sb:A%=48:drn(52,0,0,3,7):"(now obscured by the next layer)":5:0,3:450,192:"B over":Sb:5:c:450,224:"c over":Sb:CU(2,1)  "the next six"'"corners...":Sb:A%=20:drn(52,0,2,4,1):5:386,224:"b,":4:"and the last"'"corner.":CU(4,1):Sb:A%=48:5:drn(16,0,0,3,-6) T( 0,3:450,256:"C over":Sb:"Now we redraw it without the large oxides.":Sb 2 E%=-120:F%=-180:24,0;0;639;360;::A%=20:drn(52,0,2,4,1):P(3):drn(16,0,2,4,3):P(3):CU(1,1):drn(52,0,2,4,1):drn(16,0,2,4,3):P(3):drn(16,0,2,4,-3):CU(3,1):D(20,0):P(3):CU(7,1) '< D(20,0):Sb:E%=120:F%=-248:T(1,0) F Spr: G : S52 26::txt:''"If instead of Li";255;", we put Be";254;255;" into these sites, only half of them are filled, making BeO."''"(The charges would not balance if all sites were filled.)"'"First redraw the LiO structure." Sb:26:E%=160:F%=140:drn(16,0,0,3,12):5:0,468:0,3:"A":Sb:b:26,5:64,500:"b":Sb:A%=20:drn(16,0,2,4,12):26,5:0,500:"a,":Sb:A%=48:drn(52,0,1,4,7)  26,5:0,532:0,3:"B" Sb:c:b:5:0,564:"b,c":Sb:drn(16,0,0,3,-3):5:0,596:0,3:"C":Sb:A%=20:drn(16,0,2,4,-3):drn(16,0,2,4,3):5:0,628:"c,a":Sb  txt 0,16)"Now the BeO"'"structure below":F%=-184:E%=-32:A%=48:drn(16,0,0,3,12):26,5:0,3:0,108:"A":Sb:A%=20:drn(16,0,2,4,12):26,5:0,140:"a":Sb:A%=48:drn(52,0,1,4,7)  26,5:0,172:0,3:"B" Sb:b:26,5:0,204:"b":Sb:drn(16,0,0,3,-3):26,5:0,236:0,3:"C":Sb:A%=20:drn(16,0,2,4,-3):26,5:0,268:"c":Sb:26:txt R 0,19)"Make sure you can see the differencesbetween these two structures."' Spr:  :  S53:W%=4 26::txt:''"Each oxide is"'"surrounded by a"'"tetrahedron of Be."''"Now rebuild the"'"structure to see"'"this more clearly.":Sb  F%=160:drn(16,0,0,3,6):A%=20:drn(52,0,2,4,1):Sb:drn(16,0,1,7,3):'"Outline circles mark vacant sites.":IN(64):R(135,3):R(55,2):CU(1,1):Sb  A%=48:drn(52,0,0,3,7):Sb:CU(2,1):c:Sb:A%=20:drn(52,3,1,0,1):CU(4,1):Sb:0,10)"Here is the Be arrangement again, with vacant sites shown in different shades."'  E%=0:F%=-200:H%=1:T(3,1):H%=0:'"The filled sites form a tetrahedron"':A%=144:drn(52,0,0,8,1):D(20,-4):CU(7,3):TT(0,3):E%=E%+280:TT(0,3) " Spr: # : T S54 ^ 26::txt:''''"In "+I$+" Hexagonal ClosePacking"+N$+" tetrahedralsites, like octa- hedral ones, are closer together."''"Use the SPACEBAR tobuild up the layers"' h 5:F%=120:E%=144:A:64,400:"A":A%=20:Sb:drn(52,0,2,4,1):26,5:64,432:"b over":0,760:"Tetrahedral site 1":Sb:a:26,5:0,432:"a,":576,760:"-2-3-4":Sb r A%=48:B:26,5:64,464:"B over":Sb:A%=20:drn(16,0,2,4,1):26,5:64,496:"a over":768,760:"-5":Sb:a:26,5:832,760:"-6-7":Sb j| A%=20:drn(52,0,2,4,1):26,5:0,496:"b,":960,760:"-8":Sb:A%=48:26,5:64,528:"A over":A:Sb:txt 0,15)"Now this is redrawnwithout the big"'"spheres."''"Rotate it until yousee it as 2 inter- locking tetrahedra.":F%=-240:E%=0:H%=1:T(-1,1):''''''"Filling all these sites is difficult,there are no known examples."'' D A%=160:"Filling half the"'"sites in an orderedway is possible." drn(52,0,0,8,1):TT(0,2):D(20,-4):Sb:'"Press R to re-draw the other"'"tetrahedron or"'"SPACE to continue"':A$=:A$="R"A$="r"A%=160:drn(52,0,0,8,1):CU(3,-1):D(20,4):Sb:H%=0 R 24,0;320;1279;799;16:0,7)"ZnO is an example."''"Use SPACEBAR to"'"draw it." 5:F%=120:E%=120:A%=48:drn(16,0,1,3,12):A%=20:drn(16,0,2,4,12):0,500:"A":0,532:"a over":Sb:A%=48:B:26,5:0,564:"B over":Sb:b:26,5:0,596:"b over":Sb 4 drn(16,0,1,3,12):26,5:0,628:"A over":Spr:  :  Intror:26,12 !& 8,4)" STRUCTURE REVISION " 0 ''7)"Now try making some of"'7)"your own structures."''''"You choose either ";:129:" hexagonal or cubic ";:128:''"closest packing for the large atoms, and":130:0: "octahedral or "; >2 "tetrahedral";:3:128:" sites for"''"the small ones."'' S: "Pressing the 'R' key at the at the end of a question gets another one":Sb: ; : S59 26::F$=" ":txt:''"Do you want the bigatoms, call them X,arranged HCP or CCP? ";:I%=rt:P$=A$,1): P$<>"H" P$<>"h" P$<>"C" P$<>"c" tJL Ք '"If the small atoms are called M, whichtype of site do youwant them to fill?"'"(O for octahedral T for tetrahedral)";:I%=rt:S$=A$,1):S$<>"O" S$<>"o" S$<>"T" S$<>"t" tTL S$="O" S$="o" thL T '"Do you want half orall of the sites filled? H or A ";:g("AHah"):F$=A$:A$; ! Sb:txt::5:L%=V%+F%-512:A < (P$="C" P$="c") (S$="O" S$="o") c:B:a:C:P%=1 < (P$="H" P$="h") (S$="O" S$="o") c:B:c:A:P%=4 V (P$="C" P$="c") (S$="T" S$="t") (F$="A" F$="a") b:a:B:c:b:C:P%=2 P (P$="C" P$="c") (S$="T" S$="t") (F$="H" F$="h") a:B:b:C:P%=3 V (P$="H" P$="h") (S$="T" S$="t") (F$="A" F$="a") b:a:B:a:b:A:P%=5 P (P$="H" P$="h") (S$="T" S$="t") (F$="H" F$="h") b:B:a:A:P%=6 ! N%=0:4: I%=1 6:q%(I%)=1: 4 :Q%=(6): q%(Q%)=1:q%(Q%)=0:N%=N%+1:(3320+Q%) * '"Is the formula MX or M2X? ": DHM * '"How many X round each M? ": DHM * '"How many M round each X? ": DHM ] '"What sort of"'"polyhedron do the large X atoms form around the small M ones? ": T~M ] '"What sort of"'"polyhedron do the small M atoms form around the large X ones? ": T~M e '"Give an example of a compound (quoted in this module) with this type of structure.": DHM > I$;"C";N$;"ube,"'I$;"O";N$;"ctahedron,"'I$;"T";N$"etrahedron,"'"trigonal";I$"P";N$"rism, "'I$"N"N$"one of these?"'" C/O/T/P/N" H Q%<>6 DfM R *FX202,48 \ DpM f *FX202,40 p I%=rt z *FX202,40  Q%=6 drM d@M ( Q%>1 I%=2 Q%: J%=1 6:S$:,  I%=1 P%:S$: 7 A$,(S$))=S$ '"Yes" 'No$'"The answer is ";S$ D~N  MX,M2X,MX,MX,M2X,MX  6,4,4,6,4,4  6,8,4,6,8,4  O,T,T,O,T,T  O,C,T,P,N,T  "ANSWERS TO QUESTION 6  P%>1 TZN @ A$="MGO" A$="LIF" A$="NACL" A$="CAO" '"Yes" 'No$ 5'"MgO, LiF, NaCl, CaOhave this structure": D~N : P%>2 TnN A$="LI2O" A$="NA2O"'"Yes" 'No$ 5$'"Li2O, Na2O both have this structure": D~N D. P%>3 DBN A$="BEO" A$="ZNS" A$="SIC" '"Yes" 'No$ B8'"BeO and one form ofZnS and SiC have this structure":D~N LB P%>4 DVN A$="NIAS" '"Yes" 'No$", NiAs has this structure." L D~N ;V P%>5 DjN A$="NONE" A$="none" '"Yes" 'No$ >`"There are no known examples of this structure.": D~N 4j A$="ZNO" A$="ZNS" A$="SIC" '"Yes" 'No$ ;t"ZnO and one form of ZnS and SiC havethis structure" ~ N%<3 dxL ASb:5: MOVE0,100:PRINTI$"More?"N$"Press R"':PROCSpr:ENDPROC Spr: : % =17 "MENU" :" AT LINE ";  :  NA:drn(16,0,1,3,6): !N: &*Na:A%=20:drn(16,0,2,4,3):A%=48: +N: 4NB:drn(52,0,1,3,7): 5N: &>Nb:A%=20:drn(52,0,2,4,7):A%=48: ?N: HNC:drn(16,0,1,3,-6): IN: 'RNc:A%=20:drn(16,0,2,4,-3):A%=48: SN: NCU(X%,K%) NK%<0 TT(0,2):TT(1,1): N0,K%:29,U%+E%;V%+F%; UNX% 1 X(0,1),X(1,1):X(0,0),X(1,0):X(0,5),X(1,5):X(0,0),X(1,0):X(0,3),X(1,3) qNX%2X(0,3),X(1,3):X(0,4),X(1,4):X(0,5),X(1,5):X(0,6),X(1,6):X(0,1),X(1,1):X(0,2),X(1,2):X(0,3),X(1,3) SNX%4X(0,6),X(1,6):X(0,7),X(1,7):X(0,2),X(1,2):X(0,7),X(1,7):X(0,4),X(1,4) N29,0;0;: N: ND(a%,c%):"PLOT spheres radius a% at corners of cell in X(2,N%) in colour AND SIZE given by c% =0 all yellow =1 only odd in red <0 only even >1 is a radii !NN%=2*W%-1:st%=1: c%=-4 st%=2 nNA%=a%:g%=0:t%=4:I%=0N%st%:X(2,I%)<0 X%=U%+E%+I4(X(0,I%)):Y%=V%+F%+I4(X(1,I%)):k%=2-(H%I%):0,k%:d2 O 0Oc%=60 0,1:k%=1:A%=c%:X%=U%+E%:Y%=V%+F%:d2 eOA%=a%:I%=0N%st%:X(2,I%)>=0 X%=U%+E%+I4(X(0,I%)):Y%=V%+F%+I4(X(1,I%)):k%=2-(H%I%):0,k%:d2 $O: %O: !LOdrn(r%,g%,k%,t%,n%):t%<05 VOg%,k%:Z%=r%:J%=1(n%) C`On%>0 X%=c%(Z%):Y%=c%(Z%+1) X%=2*U%-c%(Z%):Y%=2*V%-c%(Z%+1) jOX%=X%+E%:Y%=Y%+F% *tO t%<0 X%-12,Y%+16:(256+t%) d2 ~OZ%=Z%+2::t%<04 O O: :Od2: t%=3 outlines sphere, 4=sphere, 7=circle 8=disk OX%,Y%:o%=153: t%=7 o%=145 Oo%,A%-2,0:t%>6 (OX%-A%2,Y%+A%2:0,3:153,.175*A%,0 Ot%<>4 X%,Y%:0,3:145,A%,0 Og%,k%: O: Og(a$):*FX15,1 Oi%=:i%>96i%=i%-32 OA$=i%:a$,A$): O: sPHEX(R%,N%):0,3:M%=c%(R%)+E%:K%=c%(R%+1)+F%:M%,K%:Q%=R%:L%=2N%:c%(Q%+2)+E%,c%(Q%+3)+F%:Q%=Q%+2::M%,K%: P: 3(PIN(s%): read co-ords and scale by s%(pixels) 2PW%=3@PP @ZP +3N%=W%-1: P%<0 st%=2:7:N%=2*W%-1 [P I%=0 N% st%:U=X(Y%,I%)*C+X(Z%,I%)*S:X(Z%,I%)=X(Z%,I%)*C-X(Y%,I%)*S:X(Y%,I%)=U:: P: Pݤrt:5,24,0;0;576;40;:0,128+D%:D%=5-D%:0,0::0,32:TY$;:4:A$=""::CHIN: (G$)=13:0,128::24,0;0;1278;799;:0,3:=(A$) P: PCHIN PG=() #P G>64 G$=(G 95) G$=(G) P G$;: (G$)<>13 A$=A$+G$ P: nPSb:5,24,0;0;512;40;:0,128+D%::0,32:0,0:D%=5-D%:" Press SPACEBAR";:g("Qq "): A$="Q" A$="q" Q &P0,128::24,0;0;1278;799;4:0,3: P: fQSpr:5,24,0;0;1278;40;:0,128+D%::0,32:0,0:D%=5-D%:" Press SPACEBAR R repeats Q quits"; &Qg(" RrQq"): A$="Q" A$="q" Q ,"Q0,128:0,3::26:txt:A%=48:E%=0:F%=0: #Q: b@QT(P%,Q%):"ROTATES CUBE WITH CURSORS P% IS COLOUR OF STIX, Q% IS COLOUR OF OTHER BALLS (0,1) YJQ'"Rotate it with the cursor keys"''"RETURN to continue"':IN(92):R(225,3):R(305,2) TQCU(7,P%):D(20,Q%):*FX4,1 P^QG%=:G%=136R(10,2) G%=137R(-10,2) G%=138R(-10,1) G%=139R(10,1) NhQG%=13@|Q G%>135 G%<140 A%=160:drn(52,0,0,8,1):CU(7,P%):D(20,Q%) rQ@^Q |Q*FX4,0 Q Q: .QTRG:0,3:29,U%+E%;V%+F%;:X(0,0),X(1,0) QX(0,1),X(1,1):X(0,2),X(1,2):X(0,0),X(1,0):X(0,3),X(1,3):X(0,1),X(1,1):X(0,4),X(1,4):X(0,5),X(1,5):X(0,3),X(1,3):X(0,4),X(1,4):X(0,2),X(1,2):X(0,5),X(1,5):29,0;0;: Q: LQTT(G%,K%):0,K%:29,U%+E%;V%+F%;:X(0,4+G%),X(1,4+G%):X(0,G%),X(1,G%) QX(0,6+G%),X(1,6+G%):X(0,2+G%),X(1,2+G%):X(0,4+G%),X(1,4+G%):X(0,G%),X(1,G%):X(0,2+G%),X(1,2+G%):X(0,4+G%),X(1,4+G%):X(0,6+G%),X(1,6+G%):29,0;0;: Q: Qtxt:4,28,21,24,39,0: Q: RQ R" PUT back REPEAT keys etc R*FX11,32 &R*FX255,1 0R*FX18 :R*FX212,144 DR*FX214,7 1NR26::4:129:8,14)"Crystals Rule OK?":128 XR"MENU"