using DFTK a = 10.263141334305942 # Lattice constant in Bohr lattice = a / 2 .* [[0 1 1.]; [1 0 1.]; [1 1 0.]] Si = ElementPsp(:Si, psp=load_psp("hgh/lda/Si-q4")) atoms = [Si => [ones(3)/8, -ones(3)/8]]; pystruct = pymatgen_structure(lattice, atoms) pystruct.make_supercell([2, 2, 2]) lattice = load_lattice(pystruct) atoms = [Si => [s.frac_coords for s in pystruct.sites]]; model = model_LDA(lattice, atoms) basis = PlaneWaveBasis(model, 5, kgrid=(1, 1, 1)) scfres = direct_minimization(basis, tol=1e-5); scfres.energies