@@ -15,27 +15,22 @@ system = rattle!(bulk(:Al; cubic=true), 0.2u"Å")
1515Next we create a calculator employing the
1616[ density-functional toolkit] ( https://dftk.org/ )
1717to compute energies and forces at using the LDA density functional.
18+ As pseudopotentials we use the [ PseudoDojo] ( http://pseudo-dojo.org ) as available
19+ in the [ PseudoPotentialData] ( https://github.com/JuliaMolSim/PseudoPotentialData.jl/ )
20+ package.
1821``` @example dftk-aluminium
1922using DFTK
23+ using PseudoPotentialData
2024
21- model_kwargs = (; functionals=[:lda_x, :lda_c_pw], temperature=1e-3)
25+ pseudopotentials = PseudoFamily("dojo.nc.sr.lda.v0_4_1.oncvpsp3.standard.upf")
26+ model_kwargs = (; functionals=LDA(), temperature=1e-3, pseudopotentials)
2227basis_kwargs = (; kgrid=(3, 3, 3), Ecut=10.0)
2328scf_kwargs = (; mixing=KerkerMixing())
2429calc = DFTKCalculator(; model_kwargs, basis_kwargs, scf_kwargs)
25- nothing
26- ```
27-
28- We attach pseudopotentials to the aluminium system,
29- i.e. we tell DFTK, that each aluminium atom should be modelled using
30- a pseudopotential rather than the full Coulomb potential.
31-
32- ``` @example dftk-aluminium
33- system = attach_psp(system; Al="hgh/lda/al-q3")
34- nothing
3530```
3631
3732!!! info "Crude computational parameters"
38- Note, that these numerical parameters are chosen rather crudely in order
33+ Note, that the numerical parameters above are chosen rather crudely in order
3934 to give a fast runtime on CI systems. For production calculations one would
4035 require larger computational parameters.
4136
0 commit comments