Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phonon example #1040

Open
mfherbst opened this issue Dec 21, 2024 · 0 comments
Open

Phonon example #1040

mfherbst opened this issue Dec 21, 2024 · 0 comments

Comments

@mfherbst
Copy link
Member

mfherbst commented Dec 21, 2024

Following up on #1039 I just wanted to test phonons on silicon. q = 0 I manage but I don't manage to do other q points (e.g. [0.25, 0.25, 0.25]). Here is what I did:

using DFTK

a = 10.26  # Silicon lattice constant in Bohr
lattice = a / 2 * [[0 1 1.];
                   [1 0 1.];
                   [1 1 0.]]
Si = ElementPsp(:Si, load_psp("hgh/lda/Si-q4"))
atoms     = [Si, Si]
positions = [ones(3)/8, -ones(3)/8]

model = model_DFT(lattice, atoms, positions; functionals=LDA())
basis = PlaneWaveBasis(model; Ecut=15, kgrid=[4, 4, 4])
scfres = self_consistent_field(basis, tol=1e-8)

phret_q0 = DFTK.phonon_modes(scfres; q=[0.25, 0.25, 0.25])
@show phret_q0.frequencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant