18.11.2012 Views

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />

>>> from ase.structure import bulk<br />

>>> a1 = bulk(’Cu’, ’fcc’, a=3.6)<br />

>>> a2 = bulk(’Cu’, ’fcc’, a=3.6, orthorhombic=True)<br />

>>> a3 = bulk(’Cu’, ’fcc’, a=3.6, cubic=True)<br />

>>> a1.cell<br />

array([[ 0. , 1.8, 1.8],<br />

[ 1.8, 0. , 1.8],<br />

[ 1.8, 1.8, 0. ]])<br />

>>> a2.cell<br />

array([[ 2.54558441, 0. , 0. ],<br />

[ 0. , 2.54558441, 0. ],<br />

[ 0. , 0. , 3.6 ]])<br />

>>> a3.cell<br />

array([[ 3.6, 0. , 0. ],<br />

[ 0. , 3.6, 0. ],<br />

[ 0. , 0. , 3.6]])<br />

7.9.2 Nanotubes<br />

ase.structure.nanotube(n, m, length=1, bond=1.42, symbol=’C’, verbose=False)<br />

examples:<br />

>>> from ase.structure import nanotube<br />

>>> cnt1 = nanotube(6, 0, length=4)<br />

>>> cnt2 = nanotube(3, 3, length=6, bond=1.4, symbol=’Si’)<br />

7.9.3 Graphene nanoribbons<br />

ase.structure.graphene_nanoribbon(n, m, type=’zigzag’, saturated=False, C_H=1.09,<br />

C_C=1.42, vacuum=2.5, magnetic=None, initial_mag=1.12,<br />

sheet=False, main_element=’C’,<br />

saturate_element=’H’, vacc=None)<br />

Create a graphene nanoribbon.<br />

Creates a graphene nanoribbon in the x-z plane, with the nanoribbon running along the z axis.<br />

Parameters:<br />

n: int The width of the nanoribbon.<br />

84 Chapter 7. Documentation for modules in <strong>ASE</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!