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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />
Example 1<br />
Here is an example of how to calculate the total energy for bulk Silicon:<br />
from ase import *<br />
from ase.calculators.abinit import Abinit<br />
a0 = 5.43<br />
bulk = Atoms(’Si2’, [(0, 0, 0),<br />
(0.25, 0.25, 0.25)],<br />
pbc=True)<br />
b = a0 / 2<br />
bulk.set_cell([(0, b, b),<br />
(b, 0, b),<br />
(b, b, 0)], scale_atoms=True)<br />
calc = Abinit(label=’Si’,<br />
nbands=8,<br />
xc=’PBE’,<br />
ecut=50 * Ry,<br />
mix=0.01,<br />
kpts=[10, 10, 10])<br />
bulk.set_calculator(calc)<br />
e = bulk.get_potential_energy()<br />
SIESTA<br />
Introduction<br />
SIESTA is a density-functional theory code for very large systems based on atomic orbital (LCAO) basis sets.<br />
Environment variables<br />
You need to write a script called run_siesta.py containing something like this:<br />
import os<br />
siesta = ’siesta_2.0’<br />
exitcode = os.system(’%s < %s.fdf > %s.txt’ % (siesta, label, label))<br />
The environment variable SIESTA_SCRIPT must point to that file.<br />
A directory containing the pseudopotential files .vps is also needed, and it is to be put in the environment variable<br />
SIESTA_PP_PATH.<br />
Set both environment variables in your shell configuration file:<br />
$ export SIESTA_SCRIPT=$HOME/siesta/run_siesta.py<br />
$ export SIESTA_PP_PATH=$HOME/mypps<br />
SIESTA Calculator<br />
The default parameters are very close to those that the SIESTA Fortran code uses. These are the exceptions:<br />
class siesta.Siesta(label=’siesta’, xc=’LDA’, pulay=5, mix=0.1)<br />
Here is a detailed list of all the keywords for the calculator:<br />
114 Chapter 7. Documentation for modules in <strong>ASE</strong>