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 />

In Berendsen NPT simulations the velocities are scaled to achieve the desired temperature. The speed of the<br />

scaling is determined by the parameter taut.<br />

The atom positions and the simulation cell are scaled in order to achieve the desired pressure.<br />

This method does not result proper NPT sampling but it usually is sufficiently good in practise (with large taut and<br />

taup). For discussion see the gromacs manual at www.gromacs.org. or amber at ambermd.org<br />

atoms: The list of atoms.<br />

timestep: The time step.<br />

temperature: The desired temperature, in Kelvin.<br />

taut: Time constant for Berendsen temperature coupling.<br />

fixcm: If True, the position and momentum of the center of mass is kept unperturbed. Default: True.<br />

pressure: The desired pressure, in bar (1 bar = 1e5 Pa).<br />

taup: Time constant for Berendsen pressure coupling.<br />

compressibility: The compressibility of the material, water 4.57E-5 bar-1, in bar-1<br />

# Room temperature simulation (300K, 0.1 fs time step, atmospheric pressure)<br />

dyn = NPTBerendsen(atoms, timestep=0.1*units.fs, temperature=300,<br />

taut=0.1*1000*units.fs, pressure = 1.01325,<br />

taup=1.0*1000*units.fs, compressibility=4.57e-5)<br />

7.22 Density Functional Theory<br />

7.22.1 Brillouin zone sampling<br />

The k-points are always given relative to the basis vectors of the reciprocal unit cell.<br />

Monkhorst-Pack<br />

ase.dft.kpoints.monkhorst_pack(size)<br />

Construct a uniform sampling of k-space of given size.<br />

The k-points are given as [MonkhorstPack]:<br />

�<br />

i=1,2,3<br />

2ni − Ni − 1<br />

bi,<br />

2Ni<br />

where ni = 1, 2, ..., Ni, size = (N1, N2, N3) and the bi‘s are reciprocal lattice vectors.<br />

ase.dft.kpoints.get_monkhorst_pack_size_and_offset(kpts)<br />

Find Monkhorst-Pack size and offset.<br />

Example:<br />

Returns (size, offset), where:<br />

kpts = monkhorst_pack(size) + offset.<br />

The set of k-points must not have been symmetry reduced.<br />

>>> from ase.dft.kpoints import *<br />

>>> monkhorst_pack((4, 1, 1))<br />

array([[-0.375, 0. , 0. ],<br />

[-0.125, 0. , 0. ],<br />

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

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

156 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!