| 1 |
%jose samuel perez huerta |
| 2 |
%mayo 2007 |
| 3 |
%paladium lattice in hydrogen |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
% Under the adsorption process, |
| 8 |
% the hydrogen molecules are retained in the surface of the |
| 9 |
% metal forming a gaseous layer. Nevertheless, the hydrogen molecule is |
| 10 |
% too great to get up in the structure of a solid. When the amount of |
| 11 |
% hydrogen is increased, the palladium dissociates molecules of the gas |
| 12 |
% so that now in its atomic form, they are diffused between the |
| 13 |
% interstitial sites of lattice formation of palladium hydrides In this |
| 14 |
% process, the lattice undergoes to isotropic expansion, lattice |
| 15 |
% constant is increased until a 3\% in each space direction, increasing |
| 16 |
% the total volume until in a 10\% |
| 17 |
|
| 18 |
beginfig(1); |
| 19 |
numeric sph, sphc, ind, indos, suma, intres, i, j, coos, size, num; |
| 20 |
color xdelta, ydelta, zdelta, W[], fro, pro; |
| 21 |
path p[], pp[], ppp, pppp; |
| 22 |
f := 1.5*(10,5,3); |
| 23 |
% ParallelProj := true; |
| 24 |
Spread := 50; |
| 25 |
sph := 0.15; |
| 26 |
sphc := 0.07; |
| 27 |
size = 6; |
| 28 |
num=200;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 29 |
xdelta := (sph,0,0); |
| 30 |
ydelta := (0,sph,0); |
| 31 |
zdelta := (0,0,sph); |
| 32 |
suma:=0; |
| 33 |
for ind=1 upto 3: |
| 34 |
for indos=1 upto 10: |
| 35 |
for intres=1 upto 10: |
| 36 |
suma:=suma+1; |
| 37 |
V[suma] :=0.5*(indos,intres,ind); |
| 38 |
W[suma] :=0.5*((indos-1,intres-1,ind-1)+0.5*(1,1,1)); |
| 39 |
endfor; |
| 40 |
endfor; |
| 41 |
endfor; |
| 42 |
|
| 43 |
for ind=1 upto suma: |
| 44 |
p[ind] := rigorousfearpath( V[ind], sph ); |
| 45 |
pp[ind] := rigorousfearpath( W[ind], sphc ); |
| 46 |
endfor; |
| 47 |
|
| 48 |
for ind=1 upto suma: |
| 49 |
fill pp[ind] withcolor red; |
| 50 |
draw pp[ind] withcolor black; |
| 51 |
fill p[ind] withcolor .75white; |
| 52 |
draw p[ind] withcolor blue; |
| 53 |
endfor; |
| 54 |
%%%%%%%%%%%%%%%%%%%%%% |
| 55 |
for i=1 upto num: |
| 56 |
for j=1 upto 2: |
| 57 |
coos[j] := 1.7*uniformdeviate(size*.5); |
| 58 |
endfor; |
| 59 |
fro := (coos1,coos2, 4*(.5)+(.3)*normaldeviate); |
| 60 |
pro := fro+(0,sph,0); |
| 61 |
ppp := rigorousfearpath( fro, sphc); |
| 62 |
pppp := rigorousfearpath( pro, sphc); |
| 63 |
fill ppp withcolor red; |
| 64 |
draw ppp withcolor (.5,.4,0); |
| 65 |
fill pppp withcolor red; |
| 66 |
draw pppp withcolor black; |
| 67 |
endfor; |
| 68 |
%%%%%%%%%%%%%%%%%%%%%%%% |
| 69 |
endfig; |
| 70 |
end; |