Electron-Phonon Matrix Elements EPW

General discussion around the EPW software

Moderator: stiwari

Post Reply
animeshd
Posts: 4
Joined: Wed Sep 20, 2023 7:24 pm
Affiliation: PhD student University at Buffalo

Electron-Phonon Matrix Elements EPW

Post by animeshd »

Hi, I am trying to calculate the shortrange electron-phonon matrix elements using EPW. Once the run is completed the ephmat files are generated. I understand that the files are in binary format. Is there any way to convert the files into text format so that I can open them to see the contents of the file?

It would be great if someone could provide some information on this.

Thanks
stiwari
Posts: 50
Joined: Mon Jun 26, 2023 9:48 pm
Affiliation: UT Austin

Re: Electron-Phonon Matrix Elements EPW

Post by stiwari »

Hi,

The ephmat file is written in binary because if it is written as a text file then it's size will be quite large.
A good idea would be to read the ephmat files directly as binary instead of trying to convert it into a text file.

You can use subroutine "read_ephmat()" in EPW/src/io_eliashberg.f90 for inspiration on reading the binary file.

Best,
Sabya.
animeshd
Posts: 4
Joined: Wed Sep 20, 2023 7:24 pm
Affiliation: PhD student University at Buffalo

Re: Electron-Phonon Matrix Elements EPW

Post by animeshd »

Hi,

Thank you for the clarification. But is there a way to change the output format? I will calculate on a coarse grid to check the format of the file and then while using a dense grid, I will use the binary format of the file so that memory is not a problem.

Thanks
Animesh
hmori
Posts: 27
Joined: Fri Mar 17, 2023 4:28 pm
Affiliation: Binghamton University

Re: Electron-Phonon Matrix Elements EPW

Post by hmori »

Hi Animesh,

We do not provide an option to change the file format, so you have to modify "write_ephmat()" in EPW/src/io_eliashberg.f90 to change the format yourself.

Best,
Hitoshi
johnnywow
Posts: 1
Joined: Wed Dec 14, 2022 4:47 am
Affiliation: PhD

Re: Electron-Phonon Matrix Elements EPW

Post by johnnywow »

Hi,

Should I change the "FORM = 'unformatted'" to "FORM = 'formatted'" in OPEN()?
I notice that there are !OPEN(FORM = 'formatted') before or after the OPEN(FORM = 'unformatted').
Since I have no experience in Fortran, Could you give me some advices?

Best,
John
hmori
Posts: 27
Joined: Fri Mar 17, 2023 4:28 pm
Affiliation: Binghamton University

Re: Electron-Phonon Matrix Elements EPW

Post by hmori »

Hi John,

Yes, you can change the format to human-readable one by changing "FORM = 'unformatted'" to "FORM = 'formatted'".
Note that the file size may become larger than that of the binary format.

Best,
Hitoshi
animeshd
Posts: 4
Joined: Wed Sep 20, 2023 7:24 pm
Affiliation: PhD student University at Buffalo

Re: Electron-Phonon Matrix Elements EPW

Post by animeshd »

Hi,

After using the ephwrite tag in EPW, it generates the ephmat files, egnv and the freq file. It would be great if someone could tell me what is the unit of phonon frequency used in the freq file?
Shashi
Posts: 10
Joined: Mon Feb 12, 2024 2:21 pm
Affiliation: SUNY Binghamton

Re: Electron-Phonon Matrix Elements EPW

Post by Shashi »

Hi Animesh,

The unit of phonon frequency used in the freq file in Ry. But while reading_ephmat we convert freq to eV unit.

regards,
Shashi
Post Reply