@@ -15,27 +15,22 @@ system = rattle!(bulk(:Al; cubic=true), 0.2u"Å")
15
15
Next we create a calculator employing the
16
16
[ density-functional toolkit] ( https://dftk.org/ )
17
17
to 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.
18
21
``` @example dftk-aluminium
19
22
using DFTK
23
+ using PseudoPotentialData
20
24
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)
22
27
basis_kwargs = (; kgrid=(3, 3, 3), Ecut=10.0)
23
28
scf_kwargs = (; mixing=KerkerMixing())
24
29
calc = 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
35
30
```
36
31
37
32
!!! 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
39
34
to give a fast runtime on CI systems. For production calculations one would
40
35
require larger computational parameters.
41
36
0 commit comments