Can I output the Dipole/momentum matrix elements

Run-time issues concerning Yambo that are not covered in the above forums.

Moderators: myrta gruning, andrea marini, Daniele Varsano, Conor Hogan

Post Reply
lyzhao
Posts: 41
Joined: Tue May 31, 2016 8:02 am

Can I output the Dipole/momentum matrix elements

Post by lyzhao » Thu May 14, 2020 10:22 am

Dear all,
Can I output the Dipole/momentum matrix elements?
or Could you tell me which source.code.file calculate the dipole/momentum matrix elements?

Best regards.
Youzhao Lan
Youzhao Lan
College of Chemistry and Materials Science,
Zhejiang Normal University,
Jinhua, Zhejiang, China.
HomePage: http://blog.sciencenet.cn/u/lyzhao

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: Can I output the Dipole/momentum matrix elements

Post by Daniele Varsano » Thu May 14, 2020 10:43 am

Dear Youzhao,
please sign your posts with your affiliation, this is a rule of the forum and you can fill your signature once for all in your user profile.

Please have a look to this thread:
there you can find some info on how to write them on disk inserting few lines in the code or read them from the database (ndb.dipoles) with a python script.
Actually the thread is quite old and maybe something can have changed since them, find here in attachment a script that should work, of course, you would need to modify to point to your databases and select the elements you need.

Inside there is an example, anyway, the vectors are organized as follow:
float DIP_iR_k_0001_spin_0001(valence_index, conduction_index, spatial direction, real/imag part)

Best,
Daniele
You do not have the required permissions to view the files attached to this post.
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

Post Reply