relax

Full name: ase2sprkkr.asr.relax

Module class hierarchy

Inheritance diagram of ase2sprkkr.asr.relax.Result, ase2sprkkr.asr.relax.SpgAtoms, ase2sprkkr.asr.relax.myBFGS

Description

Relax atomic structures.

By defaults read from “unrelaxed.json” from disk and relaxes structures and saves the final relaxed structure in “structure.json”.

The relax recipe has a couple of note-worthy features:

  • It automatically handles structures of any dimensionality

  • It tries to enforce symmetries

  • It continously checks after each step that no symmetries are broken, and raises an error if this happens.

The recipe also supports relaxing structure with vdW forces using DFTD3. To install DFTD3 do

$ mkdir ~/DFTD3 && cd ~/DFTD3
$ wget chemie.uni-bonn.de/pctc/mulliken-center/software/dft-d3/dftd3.tgz
$ tar -zxf dftd3.tgz
$ make
$ echo 'export ASE_DFTD3_COMMAND=$HOME/DFTD3/dftd3' >> ~/.bashrc
$ source ~/.bashrc

Examples

Relax without using DFTD3

$ ase build -x diamond Si unrelaxed.json
$ asr run "relax --nod3"

Relax using the LDA exchange-correlation functional

$ ase build -x diamond Si unrelaxed.json
$ asr run "relax --calculator {'xc':'LDA',...}"

Functions

is_relax_done(atoms[, fmax, smax, smask])

relax(atoms, tmp_atoms_file[, emin, smask, ...])

set_initial_magnetic_moments(atoms)

Classes

Result(b, gamma, atoms, a, etot, images, ...)

Result class for asr.relax.main().

SpgAtoms([symbols, positions, numbers, ...])

myBFGS(atoms[, restart, logfile, ...])

Exceptions

BrokenSymmetryError