Extracting data from dvscf/w_pot files?

Post here questions linked with issue while running the EPW code

Moderator: stiwari

Post Reply
simba2828
Posts: 62
Joined: Tue Mar 07, 2023 4:19 pm
Affiliation: IIT Kharagpur

Extracting data from dvscf/w_pot files?

Post by simba2828 »

Dear experts, developers and users,

I want to extract data stored in the binary files named `prefix.dvscf_q*`, or w_pot files (dV_scf in real space), which can be used to calculate electron-phonon matrix elements. Is there any way I can read the data stored in those binary files, and/or know the structure of these binary files.

I would appreciate any help or recommendation.

Thank you,
Shubham
stiwari
Posts: 65
Joined: Mon Jun 26, 2023 9:48 pm
Affiliation: UT Austin

Re: Extracting data from dvscf/w_pot files?

Post by stiwari »

Hi Shubham,

Yes, you can read the dvscf files, they have a format dvscfin(dfftp%nnr, nspin_mag, npe), where nnr is the FFT grid, nspin is the spin, and npe is the number of perturbations for the particular dvscf.

These files can be read using EPW by adding some print/write statements in subroutines ep_coarse.f90 and io.f90.

Best regards,
Sabya.
Post Reply