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 />
keyword type default value description<br />
xc str ’LDA’ XC-functional. Must be one of ‘LDA’, ‘PBE’, ‘RPBE’<br />
kpts seq Gamma-point k-point sampling<br />
convergence dict {’energy’: 0.0001} Convergence criteria (meV)<br />
width float Width of Fermi smearing (eV)<br />
kmax float Plane-wave cut-off (a.u.)<br />
mixer dict Mixing parameters ‘imix’, ‘alpha’, and ‘spinf’<br />
maxiter int 40 Maximum number of SCF steps<br />
maxrelax int 20 Maximum number of relaxation steps<br />
workdir str Current dir Working directory for the calculation<br />
seq: A sequence of three int‘s. dict: A dictionary<br />
Spin-polarized calculation<br />
If the atoms object has non-zero magnetic moments, a spin-polarized calculation will be performed by default.<br />
Utility functions<br />
As only a subset of FLEUR parameters can currently be specified through <strong>ASE</strong> interface, the interface defines<br />
some utility functions for cases where manual editing of the FLEUR input file inp is necessary.<br />
FLEUR.write_inp(atoms)<br />
Write the inp input file of FLEUR.<br />
First, the information from Atoms is written to the simple input file and the actual input file inp is then<br />
generated with the FLEUR input generator. The location of input generator is specified in the environment<br />
variable FLEUR_INPGEN.<br />
Finally, the inp file is modified according to the arguments of the FLEUR calculator object.<br />
FLEUR.initialize_density(atoms)<br />
Creates a new starting density.<br />
FLEUR.calculate(atoms)<br />
Converge a FLEUR calculation to self-consistency.<br />
Input files should be generated before calling this function FLEUR performs always fixed number of SCF<br />
steps. This function reduces the number of iterations gradually, however, a minimum of five SCF steps is<br />
always performed.<br />
FLEUR.relax(atoms)<br />
Currently, user has to manually define relaxation parameters (atoms to relax, relaxation directions, etc.) in<br />
inp file before calling this function.<br />
Examples<br />
Lattice constant of fcc Ni<br />
from numpy import linspace<br />
from ase.calculators.fleur import FLEUR<br />
from ase.lattice import bulk<br />
from ase.io.trajectory import PickleTrajectory<br />
atoms = bulk(’Ni’, a=3.52)<br />
calc = FLEUR(xc=’PBE’, kmax=3.6, kpts=(10, 10, 10), workdir=’lat_const’)<br />
atoms.set_calculator(calc)<br />
traj = PickleTrajectory(’Ni.traj’,’w’, atoms)<br />
cell0 = atoms.get_cell()<br />
130 Chapter 7. Documentation for modules in <strong>ASE</strong>