-
Notifications
You must be signed in to change notification settings - Fork 54
Johannes Voss edited this page May 17, 2015
·
16 revisions
-
How do I initialize a self-consistent calculation with the Kohn-Sham potential from a previous calculation?
Store the charge density with calc.save_chg(filename) and reload it for the new calculator with othercalc.load_chg(filename). Use startingpot='file' in the new calculator definition to initialize the Kohn-Sham potential from the loaded charge density. -
How do I initialize a non-self-consistent calculation with the Kohn-Sham potential from a previous calculation?
Preferably use save_flev_chg/load_flev_chg so that the Fermi level EF is stored in addition to the charge density, and band structure or density of states can be plotted with respect to EF. See the Band structure calculation example.
- Density cut-offs are defined differently in Dacapo and Espresso; when using ultrasofts the rule of thumb for Espresso is dw=10pw (when only norm-conserving pseudopotentials are used dw must be 4pw.)
- Dacapo will turn on k-point parallelization automatically, use parflags='-npool number_of_nodes' to turn on k-point-/spin-parallelization in Espresso (make sure you have enough k-points to distribute (evenly)).
- With equivalent parameters and when using the same ultrasofts, total energies from Dacapo and Espresso can be compared. Note, however, that the default MP k-point grids of the form n1xn2xn3 with any ni even are different because Espresso centers at Γ (unless a non-zero kptshift is specified), while Dacapo does not perform centering.
- Espresso's default charge-density mixing parameter is large (70%). Espresso's mixer is actually able to handle this and it generally works well for bulk systems, but for slab calculations 30% is a safer choice (convergence={'mixing':0.3}; adding a preconditioner via 'mixing_mode':'local-TF' can further improve convergence for slab calculations).
- Default pseudopotentials are not all identical to Dacapo ones; make sure to check the minimum recommended cutoffs and run convergence tests accordingly.