+ All Categories
Home > Documents > Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt...

Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt...

Date post: 12-Sep-2018
Category:
Upload: vuongtu
View: 222 times
Download: 1 times
Share this document with a friend
37
Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence, convergence Keith Refson STFC Rutherford Appleton Laboratory September 20, 2012
Transcript
Page 1: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21

Practical calculations using first-principles QMConvergence, convergence, convergence

Keith RefsonSTFC Rutherford Appleton Laboratory

September 20, 2012

Page 2: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Results of First-Principles Simulations

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 2 / 21

First-principles methods may be used forsubtle, elegant and accurate computer ex-periments and insight into the structureand behaviour of matter.

Page 3: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Synopsis

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 3 / 21

This aims of this lecture are

1. To use the examples to demonstrate how to obtain converged results, iecorrect predictions from the theory.

2. How to avoid some of the common pitfalls and to avoid computing nonsense.

Further reading: Designing meaningful density functional theory calculation in

materials science - a primer Anne E Mattson et al. Model. Sim. Mater. Sci Eng.

13 R1-R31 (2005).

Page 4: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Convergence

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 4 / 21

Page 5: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Approximations and Convergence

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 5 / 21

■ “Every ab-initio calculation is an approximate one”.■ Distinguish physical approximations

◆ Born-Oppenheimer◆ Level of Theory and approximate XC functional

and convergable, numerical approximations

◆ basis-set size.◆ Integral evaluation cutoffs◆ numerical approximations - FFT grid◆ Iterative schemes: number of iterations and exit criteria (tolerances)◆ system size

■ Scientific integrity and reproducibility: All methods should agree answer to(for example) “What is lattice constant of silicon in LDA approximation” ifsufficiently well-converged.

■ No ab-initio calculation is ever fully-converged!

Page 6: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Convergence with basis set

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 6 / 21

Basis set is fundamental approximation to shape of orbitals. How accurate need itbe?

■ The variational principle states that E0 ≤ <ψ|H|ψ><ψ|ψ>

so a more accurate

representation of the orbitals ψ arising from a more complete basis set willalways lower the computed ground-state energy.

■ corollary : Error in energy δE0 ∝ δ|ψ|2.■ Increase size and accuracy of plane-wave basis set by adding more plane

waves with higher G (increase Ecut).■ Increase size and accuracy of Gaussian basis set by adding additional orbitals,

sometimes called “diffuse” or “polarization” functions. Ad-hoc because nosingle parameter to tune.

■ Whatever the basis set it is prohibitively expensive to approach fullconvergence.

■ Fortunately well converged properties may frequently be computed using anincomplete basis.

■ Size of planewave basis set governed by single parameter cut off energy (inenergy units) or basis precision=COARSE/MEDIUM/FINE.

■ Though E is monotonic in Ec it is not necessarily regular.

Page 7: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Error Cancellation

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 7 / 21

■ Consider energetics of simple chemical reactionMgO(s) +H2O(g) → Mg(OH)2,(s)

■ Reaction energy computed as∆E = Eproduct −

Ereactants = EMg(OH)2 − (EMgO + EH2O )■ Energy change on increasing Ecut from 500→4000eV

MgO -0.021eV H2O -0.566eV Mg(OH)2 -0.562eVConvergence error in ∆E -0.030eV

■ Errors associated with Hatom convergence are similar on LHS and RHS andcancel in final result.

■ Energy differences converge much faster than ground-state energy.■ Always use same cutoff for all reactants and products.

Page 8: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Plane-wave cutoff convergence/testing

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 8 / 21

Properties of a plane-wave basis.

■ Cutoff determines highest representable spatial Fourier component of density.■ Energy differences converge faster than total energies. Electron density varies

most rapidly near nuclei, where it influences bonding very weakly.

n(r)

rAtom 1 Atom 2

■ Ecut (and Gmax) depend only on types of atoms, not numbers.■ Simulation cutoff is maximum of individual elements/pseudopotentials.■ Required cutoff is system-independent but not property-independent.

Page 9: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Pseudopotentials and cutoff behaviour

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 9 / 21

■ With efficient pseudopotentials rate of con-vergence with cutoff is not always smooth.

■ Can get plateaus or other non-asymptotic be-haviour

■ Sometimes cause is over-optimization of thepseudopotential too low a desired cutoff.

■ In cases with this behaviour can choose cri-terion for convergence energy to be plateauvalues.

■ Absolute energy convergence is rarely desir-able. Force and stress convergence is much

more useful criterion.

■ (Example is not a pseudpotential from theCASTEP database)

0 50 100 150 200E

cut (Ry)

0

0.05

0.1

Kin

etic

ene

rgy

erro

r pe

r el

ectr

on (

eV)

2s2p

KE convergence for O

Page 10: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

FFT Grid parameters

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 10 / 21

Some optimizations and tweaks of FFT grid dimensions ...

■ FFT grid should be large enough to accommodate all G-vectors of density,n(r), within cutoff: G ≤ 2GMAX.

■ Guaranteed to avoid ”aliasing” errors in case of LDA and pseudopotentialswithout additional core-charge density.

■ In practice can often get away with 1.5GMAX or 1.75GMAX with little errorpenalty for LDA without core or augmentation charge.

■ GGA XC functionals give density with higher Fourier components, and need1.75GMAX - 2GMAX

■ Finer grid may be needed to represent USP augmentation charges orcore-charge densities.

■ CASTEP incorporates a second, finer grid for charge density to accommodatecore/augmentation charges while using GMAX for orbitals.

■ Set by either parameter fine grid scale (multiplier of GMAX ) or fine gmax

(inverse length GFINE)■ fine gmax is property of pseudopotential and transferable to other cells but

fine grid scale is not.■ (Rarely) may need to increase fine grid scale for DFPT phonon

calculations using GGA functionals for acoustic sum rule to be accuratelysatisfied.

Page 11: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Force and Stress

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 11 / 21

Frequently need to find crystal structure at mechanical equilibrium.

■ Given guessed or exptl. initial structure, seek local minimum ofBorn-Oppenheimer energy surface generated by K-S functional.

■ Energy minimum implies forces are zero but not vice versa.

■ CASTEP provides for “geometry op-timization” using quasi-newton meth-ods.

■ Need to worry about accuracy offorces.

■ Forces usually converge at lower cut-off than total energy because densityin region of nucleus unimportant.

400 500 600 700 800 900E

cut (eV)

-0.1-0.08-0.06-0.04-0.02

00.020.040.060.08

0.1

Con

verg

ence

err

or

∆E (eV)∆F (eV/A)∆P/1000 (GPa)∆P/100 (inc FSBC)

Cut-off convergence testcubic ZrO

2

■ different physical quantities converge at different rates.■ Always test convergence specifically of quantities of importance to your

planned calculation

Page 12: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Iterative Tolerances

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 12 / 21

■ How to control the iterative solvers?■ Parameter elec energy tol specifies when

SCF energy converged.■ Optimizer also exits if max cycles reached –

always check that it really did converge.■ How accurate does SCF convergence need

to be?

■ Energetics: same accuracy of result.■ Geometry/MD: much smaller energy toler-

ance needed to converge forces.■ Cost of higher tolerance is only a few addi-

tional SCF iterations.■ Or use elec force tol to exit SCF only

when force convergence criterion satisfied.

■ Inaccurate forces are common cause of geometry optimization failure.

Page 13: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

K-point convergence

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 13 / 21

Brillouin Zone sampling is another important convergence issue. Usually set in<seed>.cell with keyword kpoint mp grid p q r with optional offsetkpoint mp offset.

■ Convergence is not variational and fre-quently oscillates.

■ Even simple metals like Alneed densemeshes for primitive cell.

■ Finite-temperature smearing can acceler-ate convergence, but must extrapolate theresult back to 0K.

■ In case of insulators some k-point errorcancellation occurs but only between iden-

tical simulation cells.Consequently comparative phase stabil-ity energetics and surface energetics fre-quently demand high degree of k-pointconvergence. 0 5 10 15 20 25 30

Monkhorst-Pack q

-56.42

-56.41

-56.4

-56.39

-56.38

-56.37

-56.36

Ene

rgy

(eV

)

-56.42

-56.41

-56.4

-56.39

-56.38

-56.37

-56.36

Ene

rgy

(eV

)

Al k-point convergence testSmear=0.08, a0=4.04975, PBE, Ec=160eV

Page 14: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Strategies for convergence testing

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 14 / 21

■ Convergence tests should be designed to be as quick and simple as possible.■ Make use of transferrability of cutoff and fine grid scale, and length scaling

for k-point convergence.■ Test cutoff convergence on small model systems with same elements. If target

system is zeolite, test plane wave convergence on related oxides.■ When testing plane-wave cutoff use a coarse k-point mesh.■ When testing k-point convergence use a low cutoff.■ Geometry optimizations unduly complicate convergence testing. Better to use

(cheaper) single-point calculations and plot forces and stress.■ Accuracy of forces also useful as proxy measure of convergence in phonon

calculations - but not completely reliable. Again consider testing a related butsimpler system.

■ Finish with small number of tests on full system and final property of interest

Page 15: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Golden rules of convergence testing

Results of First-PrinciplesSimulations

Synopsis

Convergence

Approximations andConvergence

Convergence with basis set

Error CancellationPlane-wave cutoffconvergence/testing

Pseudopotentials andcutoff behaviour

FFT Grid parameters

Force and Stress

Iterative Tolerances

K-point convergence

Strategies for convergencetesting

Golden rules ofconvergence testing

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 15 / 21

1. Wherever possible use single-point energy calculations.2. Test PW convergence on small model system(s) with same elements.3. Only change one parameter at a time.4. Use knowledge of transferability of PW cutoff and fine gmax.5. Don’t be fooled into choosing too high a plane-wave cutoff when you are

really just converging fine FFT grid. Check fine gmax for USPs.6. Use physical ∆k spacing to scale k-point sampling from small system to large.7. Use forces, stresses and other cheap properties as measure of convergence.8. Write your convergence criteria in the paper, not just “250eV cutoff and 10

k-points in IBZ”.9. Convergence is achieved when value stops changing with parameter under

test, NOT when the calculation exceeds your computer resources and NOTwhen it agrees with experiment.

Page 16: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Structural Calculations

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural CalculationsSolids, molecules andsurfacesVariable VolumeCalculationsVariable VolumeCalculations -II

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 16 / 21

Page 17: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Solids, molecules and surfaces

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural CalculationsSolids, molecules andsurfacesVariable VolumeCalculationsVariable VolumeCalculations -II

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 17 / 21

Sometimes we need to compute a non-periodic system with a PBC code.

■ Surround molecule by vacuum space to model using periodic code.■ Similar trick used to construct slab for surfaces.■ Must include enough vacuum space that periodic images do not interact.■ To model surface, slab should be thick enough that centre is “bulk-like”.■ Beware of dipolar surfaces. Surface energy does not converge with slab

thickness.■ When calculating surface energy, try to use same cell for bulk and slab to

maximise error cancellation of k-point set.■ Sometimes need to compare dissimilar cells – must use absolutely converged

k-point set as no error cancellation.

Page 18: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Variable Volume Calculations

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural CalculationsSolids, molecules andsurfacesVariable VolumeCalculationsVariable VolumeCalculations -II

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 18 / 21

■ Two ways to evaluate equilibrium lattice parameter - minimum of energy orzero of stress.

■ Stress converges less well than energy minimum with cutoff.

■ Incomplete basis error in stress approximated by Pulay stress correction.■ “Jagged” E vs V curve due to discreteness of NPW. Can be corrected using

Francis-Payne method (J. Phys. Conden. Matt 2, 4395 (1990))■ Finite-size basis corrections for energy and stress automatically computed by

CASTEP.

Page 19: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Variable Volume Calculations -II

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural CalculationsSolids, molecules andsurfacesVariable VolumeCalculationsVariable VolumeCalculations -II

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 19 / 21

■ Two possibilities for variable-cell MD or geometry optimization when usingplane-wave basis set.

■ In fixed basis size calculation, plane-wave basis NPW is constant as cellchanges.

■ Cell expansion lowers Gmax and K.E. of each plane wave, and thereforelowers effective Ec.

■ Easier to implement but easy to get erroneous results.■ Need very well-converged cutoff for success.■ fixed cutoff calculations reset basis for each volume, changing NPW but

keeping Gmax and Ec fixed.■ This is almost always the correct method to use.

Page 20: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Phase Equilibrium

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 20 / 21

Page 21: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Energy-Volume curves

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 21 / 21

■ Consider simple structure such asrocksalt (B1)

■ one of simplest calculations is tocompute E as function of V

■ B1 rocksalt every atom is ona crystallographic high-symmetrysite. No geometry optimisationneeded!

■ Equation of state (Really PVcurve, which is commonly mea-sured experimental quantity.)

CaO Equation of State

0 50 100 150P (GPa)

0

10

20

30

40

V(A

3 )

80 100 120 140 160V (A

3)

-1431

-1430.5

-1430

-1429.5

-1429

-1428.5

-1428

Ene

rgy

(eV

)

CaO E vs V

Page 22: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Model equations of State

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 22 / 21

■ Real EOS are PVT relations, but this lecture restricted to easy case, T=0.■ Model EOS for fluids, eg Van der Waals, Redlich-Kwong■ There are several common models of EOS for solids based on elasticity theory■ Birch Murnaghan (Phys. Rev 71 809 (1947)) is most commonly used EOS

E(V ) = E0 +9V0B0

16

{

[

(

V0

V

)2

3 − 1]3

B′0 +

[

(

V0

V

)2

3 − 1]2 [

6− 4(

V0

V

)2

3

]

}

■ Two definitions of bulk modulus B0; B0 = −V0d2PdV 2 and as a fit to B-M or

other EOS.■ These are not equivalent.■ Compression/EOS experiments use a B-M fit whereas ultrasound methods

measure 2nd derivative

Page 23: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Birch-Murnaghan Equation of State

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 23 / 21

■ range of data changes fit result.■ Only V <= V0 accessible to ex-

periment.■ V > V0 also accessible to calcu-

lation.■ B0 should be compared using fit

over same or similar range toexpt.

■ Need to understand how B0 wasmeasured to make valid compari-son.

■ B0 from ultrasonic expt. should

be compared to −V0d2PdV 2

80 100 120 140 160V (A

3)

-1431

-1430.5

-1430

-1429.5

-1429

-1428.5

-1428

Ene

rgy

(eV

)

Castep calculationV

0=110.2, B

0=28.4 GPa, B

0’=4.16

V0=110.3, B

0=27.9 GPa, B

0’=4.23

Birch-Murnaghan fits to CaO EOSEffect of fitting range

Page 24: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

First-order phase transitions

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 24 / 21

Phase equilibrium occurs when 2 criteria met simultaneously

■ Pressures of 2 phases are equal, ie P = − dE1

dV= − dE2

dv.

■ Enthalpies are equal E1 + PV1 = E2 + PV2 ⇒ E2 − E1 = P (V2 − V1).

Then Peq is gradient of common tangentCaO B1/B2 transition

15 20 25 30 35V (A3)

-1

0

1

2

3

4

Ene

rgy

(eV

)CaO Equation of State

0 50 100 150P (GPa)

0

10

20

30

40

V(A

3 )

Alternatively use enthalpy-pressure plot, where most stable phase is that of lowestenthalpy. Need accurate calculation of pressures for this approach to work, sohigher degree of PW convergence needed.

Page 25: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Zero-point energy

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 25 / 21

■ Zero-point energy contribution∑

iβ~ω

2can be significant and is in general

different for different phases

■ Can calculate if vibrational phonon spectrum or DOS known.■ Use lattice dynamics calculation or (less satisfactory) experimental data.■ Harmonic Free energy is

F = E + 1β

g(ω) log(

2 sinh(

β~ω

2

))

where g(ω) is the phonon density of states (DOS).■ To calculate DOS need phonon frequencies at all q in BZ.

0 200 400 600 800 1000 1200 1400

ω (cm-1

)

0

0.2

0.4

0.6

g(ω

MgH2 phonon DOS

Page 26: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Zero-point energy and the quasi-harmonic approximation

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 26 / 21

■ Quasi-harmonic approximation assumes thatphonon frequencies depend only on the cellparameters.

■ Ignores intrinsic anharmonic thermal effectson DOS.

■ Works for relatively harmonic systems■ Valid for T . 0.5Tm.■ QHA is cheapest way of extending ab-initio to

TT > 0■ In Zero Static Internal Stress Approximation

geometry optimise co-ordinates at each vol-ume (or strain)

■ Quasi-Harmonic Free energy geometry opti-mization possible with empirical force fieldsbut not yet ab-initio. -4 -2 0 2 4

Pressure (GPa)

-111.8

-111.6

-111.4

-111.2

-111

Ene

rgy

(eV

) E (athermal)E(0K)E(20K)E(300K)

Page 27: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Elastic constants

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 27 / 21

■ Elastic strain theory gives

E(ǫ) = E0 + V/26

ij

Cijǫiǫj +O(3)

■ “Programmed” strains ǫ may be used to extract individual elastic constants,e.g. if

ǫ =1

2

0 δ δδ 0 δδ δ 0

then

E = E0 +3

2V C44δ

2 +O(3)

for a cubic crystal.■ See book by Nye on elastic theory for symmetry-adapted strains.■ For low symmetry crystals more efficient to compute stress and use

σαβ = Cαβγδǫγǫδ. But need very well converged stress.■ No automated calculation built into CASTEP; available in Materials Studio

Page 28: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Elastic properties of CaO

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 28 / 21

Theory Expt(1) Expt (2)

a0 4.784± 0.001 4.8105 4.8105K0 111.9± 1.5 117 112.5± 0.6K′

0 4.3± 0.3 5.9± 2 4.8± 0.1Cs 83.1± 0.9 81.9± 3 82.0± 0.3C11 223.1± 1.9 226.2± 0.9 221.9± 0.6C12 56.9± 1.6 62.4± 0.9 57.8± 0.7C44 83.9± 0.4 80.6± 0.3 80.3± 0.1

1. Dragoo and Spain, J. Phys. Chem. Solids (1977) 38, 7052. Chang and Graham J. Phys. Chem. Solids (1977) 38, 1355

Page 29: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Surfaces

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 29 / 21

Page 30: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Surface modelling with slab geometry

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 30 / 21

Surfaces can be modelled as a slab cleaved frombulk crystal. Can calculate

■ Surface energy or free energy

■ Energies of steps■ Adsorption energies and structures of adsor-

bates■ Surface chemical reaction energies.

Page 31: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Slab models I

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 31 / 21

■ Choice of slab: usually need to make 2 sur-faces identical.

■ Surfaces related by symmetry operation aremore easily geometry optimised.

■ Simulation cell should not be optimised. (usefix all cell =T ).

■ In-plane cell parameters usually fixed at valuesfrom relaxed bulk crystal.

Page 32: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Surface Energy calculations

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 32 / 21

■ Surface free energy defined as

Esurf = (Eslab − Ebulk)/A

A is total area of both surfaces.■ Esurf is sensitive quantity requiring well-

converged total energies.■ Can sometimes gain some k-point error can-

cellation between slab and bulk calcs by usingnon-primitive bulk cell with same in-plane vec-tors as slab. (not CaCO3 101̄4 shown).

■ Sometimes need to compare dissimilar cells –must use absolutely converged k-point set asno error cancellation.

■ Need only 1 k-point in direction perpendicu-lar to slab. Any dispersion in bands is errordue to insufficient vacuum gap - no point incalculating accurately!

■ Need to test convergence with both slab thick-ness and vacuum gap

Page 33: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Polarization in slabs

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 33 / 21

■ Electric dipoles perpendicular to surface raise theoretical difficulties■ Energy does not converge with slab thickness.■ P.W. Tasker (Surf. Sci 87, 315 (1979) described 3 classes of surface.

■ In classical charge model, Type III unstable and must always reconstruct.■ In ab initio calculation, surfaces can instead become metallic.■ Polar molecules on surface also raise dipole-dipole problems.■ Can sometimes use double surface with inversion symmetry.

Page 34: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Defect calculations

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 34 / 21

Page 35: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Defect models

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 35 / 21

Point- and extended- defects may be modelled using supercell approach. Severaltricky convergence issues with supercells, to converge defect-defect interaction tozero. See M. I. J. Probert and M. C. Payne Phys. Rev. B67 075204 (2003).

■ Only need to converge energy to a few meV, but still need accuracy in forces

to correctly describe strain relaxation.■ Strain relaxation. Local strain around defect decreases as 1/R.

Can model long-range strain relaxation using classical models if suitablepotential exists.

■ Charged defects can be modelled using periodic interaction correction terms(M. Leslie and M. Gillan, J. Phys. Cond. Mat. 18, 973 (1985))

■ Corrections for higher multipoles also available G. Makov and M. C. PaynePhys. Rev. B51, 4104 (1995), L. N. Kantorovich Phys. Rev. B60, 15476(1999)).

Page 36: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Summary

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 36 / 21

Page 37: Practical calculations using first-principles QM ... · Convergence - CASTEP Workshop: Frankfurt 2012 1 / 21 Practical calculations using first-principles QM Convergence, convergence,

Summary

Results of First-PrinciplesSimulations

Synopsis

Convergence

Structural Calculations

Summary

Convergence - CASTEP Workshop: Frankfurt 2012 37 / 21

■ Used with care, first principles simulations can give highly accurate predictionsof materials properties.

■ Full plane-wave basis convergence is rarely if ever needed. Error cancellationensure that energy differences, forces and stress converge at lower cutoff.

■ Convergence as a function of adjustable parameters must be understood andmonitored for the property of interest to calculate accurate results.

■ Don’t forget to converge structural/finite size/statistical mechanics as well asthe electronic structure if the calculation demands it.

■ A poorly converged calculation is of little scientific value if the convergenceerror is unknown.

■ An over-converged calculation could be costly computer resources. Youshould match degree of convergence to scientific question you seek to answer.


Recommended