33TODO Write some text motivating this example
44
55Setup system:
6- ``` julia
7- # # TODO : Should run as @example once EmpiricalPotentials is compatible with AB 0.5
6+ ``` @example tial
87using AtomsIO
98using EmpiricalPotentials
109
@@ -13,18 +12,27 @@ nothing
1312```
1413
1514Setup calculator:
16- ``` julia
17- # # TODO : Should run as @example once EmpiricalPotentials is compatible with AB 0.5
15+ ``` @example tial
1816using Unitful
1917using UnitfulAtomic
2018
21- calc = LennardJones (- 1.0 u " meV" , 3.1 u " Å" , 13 , 13 , 6.0 u " Å" )
19+ # Note: These are completely made up parameters,
20+ # please do not use in production
21+ rcut = 5.0u"Å"
22+ zAl = atomic_number(ChemicalSpecies(:Al))
23+ zTi = atomic_number(ChemicalSpecies(:Ti))
24+ emins = Dict( (zAl, zAl) => -1.0u"eV",
25+ (zAl, zTi) => -1.234u"eV",
26+ (zTi, zTi) => -0.345u"eV" )
27+ rmins = Dict( (zAl, zAl) => 2.7u"Å",
28+ (zAl, zTi) => 3.2u"Å",
29+ (zTi, zTi) => 3.0u"Å" )
30+ calc = LennardJones(emins, rmins, rcut)
2231nothing
2332```
2433
2534Minimise energy:
26- ``` julia
27- # # TODO : Should run as @example once EmpiricalPotentials is compatible with AB 0.5
35+ ``` @example tial
2836using GeometryOptimization
2937GO = GeometryOptimization
3038
@@ -33,8 +41,6 @@ results.energy
3341```
3442
3543Final structure:
36- ``` julia
37- # # TODO : Should run as @example once EmpiricalPotentials is compatible with AB 0.5
38-
44+ ``` @example tial
3945results.system
4046```
0 commit comments