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

dump_dynamical_matrices from TDEP to QE #61

Open
Guodonglin-cqust opened this issue Apr 23, 2024 · 5 comments
Open

dump_dynamical_matrices from TDEP to QE #61

Guodonglin-cqust opened this issue Apr 23, 2024 · 5 comments
Labels

Comments

@Guodonglin-cqust
Copy link

Dear tdep developers,

    At website (https://github.com/tdep-developers/tdep/tree/main/src/dump_dynamical_matrices), you give us a tool to  extract the dynamical matrices fromTDEP to ABINIT. It is not known whether a tool can be provided to realize the dynamical matrices from TDEP to QE.

Best wishes

Donglin Guo

@mjv500
Copy link
Contributor

mjv500 commented Apr 23, 2024 via email

@Guodonglin-cqust
Copy link
Author

Dear Professor,
When I type "dump_dynamical_matrices -qg 3 3 3", i can not produce the file of outfile.many_dynamical_matrices_DDB. I find the main.f90 file has a lot of comment sections using !, so the outfile.many_dynamical_matrices_DDB can not be generated by dump_dynamical_matrices command.

best

Donglin Guo

@mjv500
Copy link
Contributor

mjv500 commented Apr 28, 2024 via email

@Guodonglin-cqust
Copy link
Author

Dear Professor,
In test suite, "dump_dynamical_matrices -qg 3 3 3" works well, it could output the outfile.many_dynamical_matrices_DDB.
i want to export the dynamical_matrices of qe, and i try to modify the main.f90 file,
the attach file is the main.f90 file, the line 211-223 line is following:

do a2=1,uc%na
do y=1,3
  jj=(a2-1)*3+y
  do a1=1,uc%na

! do x=1,3
ii=(a1-1)*3
dynmat(ii,jj)=dynmat(ii,jj)*sqrt(uc%mass(a1)*uc%mass(a2))
write (u,'(1x,i5,1x,i5,1x,i5,1x)') a2, a1
write (u,'(1x,f12.8,1x,f12.8,1x,f12.8,1x,f12.8,1x,f12.8,1x,f12.8,1x)') dynmat(jj,ii+1),dynmat(jj,ii+2),dynmat(jj,ii+3)
! enddo
enddo
enddo
enddo

main.zip

The code can be successfully compiled, but it can not output the matrix of QE, could you help me,
thank you vey much.

best

Donglin Guo

@mjv500
Copy link
Contributor

mjv500 commented May 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants