Replies: 1 comment 2 replies
-
Hi, The reason you have a different number of dyn files is that you ran a 5x5x5 ph.x calculation for the electron-phonon coupling and you ran a 2x2x2 calculation for SSCHA. If you want the same number of dyn files you have to use the same q-point grid in both cases. This is not important though. With EPW you are never using dyn files anyway. What you need actually is the force constant file generated by the q2r.x code that comes in the QE package. You ran it for SSCHA dyn files to generate SSCHA force constants and then use them for EPW interpolation. You have instructions on the EPW site on how to do this. A few notes though: Check convergence wrt to k-point grid for scf calculation for electron-phonon calculation. Once you generate supercells to run scf calculations for SSCHA minimization you don't need such a large k-point grid. In your case, you can definitely half it, so 5x5x5 for SSCHA calculations. Make sure your SSCHA calculations converge. That means running the SSCHA process iteratively until your free energy and force constants gradients are significantly below stochastic error. Make sure that your final structure from SSCHA minimization matches the structure for which you calculate electron-phonon coupling. So I would suggest first running SSCHA minimization (iteratively!) and then taking the last structure and running electron-phonon calculation for it. Also are you sure you need to solve anisotropic Migdal-Eliashberg equations? |
Beta Was this translation helpful? Give feedback.
-
Dear Developer,
Recently I have read many articles (https://doi.org/10.1038/s41467-023-44326-4; https://www.nature.com/articles/s42005-023-01413-8) where the authors used SSCHA to perform free energy minimization to obtain anharmonic_dyn and solve the anisotropic Migdal-Eliashberg equation using EPW under the anharmonic approximation. However, in the tutorials and examples provided by the SSCHA code, there is no case of using EPW under the anharmonic approximation to calculate superconducting properties.
So far, I have successfully completed the first few steps, which are as follows:
Step 1: Calculate the harmonic phonon spectrum using Quantum Espresso (QE) (execute pw.x < pw.scf.in > pw.scf.out; ph.x < ph.in > ph.out). In this process, the k-mesh of scf is 10×10×10 and the q-mesh of ph.in is 5×5×5. Based on these settings, I got 11 harmonic_dyn files.
Step 2: Use SSCHA to calculate the anharmonic phonon spectrum (execute pw.x < pw.scf.in > pw.scf.out; ph.x < ph.in > ph.out; python generate_ensemble.py; bash generate_input_files.sh; mpirun -np NPROC pw.x -i input_file.pwi > output_file.pwo; bash get_energy_forces.sh; python minimize.py). In this step, the k-mesh of scf is still 10×10×10, and the q-mesh of ph.in is 2×2×2. The energy and force are calculated in the 2×2×2 supercell, resulting in 4 anharmonic_dyn files.
However, I encountered a problem in the next step: how to combine the anharmonic_dyn file with EPW. First of all, the number of anharmonic_dyn and harmonic_dyn is not equal. In addition, the series of files such as dvscf required by EPW are not calculated under the anharmonic approximation, which confuses me. Please ask, how can I correctly combine anharmonic_dyn with EPW to solve the anisotropic Migdal-Eliashberg equation under the anharmonic approximation?
Hope to get your answer, thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions