[ase-users] Repeat cell

Iyemperumal, Satish Kumar siyemperumal at WPI.EDU
Sat Jan 9 06:52:40 CET 2016


Hello all ASE users

I want to repeat my hexagonal surface slab by 2(in x), 2 (in y) and no repeat in z axis. How can I repeat the unit cell from python commands such that I could measure the bond distances across the neighboring unit cells.

I tried
1) s = cut(struct,extend=1.1)      #struct is my atoms object. Used extend=1.1 so that I could include the missing bonds beyond my unit cell. But I get the following error

AttributeError: 'numpy.ndarray' object has no attribute 'step'

2) I tried the repeat method as given in the follwoing link
https://wiki.fysik.dtu.dk/ase/epydoc/ase.test.repeat_FixAtoms-pysrc.htmlhttps://wiki.fysik.dtu.dk/ase/epydoc/ase.test.repeat_FixAtoms-pysrc.html

I am able to repeat the structures but I don't know why there is extra vacuum in between the images in x and y direction (refer attachment).

Thank you for you time.



Best,
Satish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: struct.JPG
Type: image/jpeg
Size: 30900 bytes
Desc: struct.JPG
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20160109/2d9549d4/attachment-0001.jpe>


More information about the ase-users mailing list