plot excite state transition density

Anything regarding the post-processing utility (e.g. excitonic wavefunction analysis) is dealt with in this forum.

Moderators: Davide Sangalli, andrea marini, Daniele Varsano

Post Reply
michele guerrini
Posts: 11
Joined: Thu Mar 28, 2019 10:53 am

plot excite state transition density

Post by michele guerrini » Tue Sep 17, 2019 4:59 pm

Dear developers, I am asking you if it is possible to plot, by using ypp, the transition density (TD) for a certain excited state of an extended system, in the same way as it is possible to plot the exciton WF by fixing the position of the hole. Now, I tried to plot TD by using the keyword 'freehole' in the input but it plots just the modulus^2 of the TD, while I need instead the TD with sign. How can I do this ?
Many thanks
Dr. Michele Guerrini
Humboldt-Universität zu Berlin
Institut für Physik und IRIS Adlershof
Zum Grossen Windkanal 6, 12489 Berlin, Germany
e-mail: guerrini@physik.hu-berlin.de
Skype: merlin__88

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

Re: plot excite state transition density

Post by Daniele Varsano » Wed Sep 18, 2019 8:46 am

Ciao Michele,

The "freehole" option is the way to go. By default ypp plot the square modulus. If you want the real and imaginary part you need to modify few lines in
ypp/excitons/excitons_WFs.F

Code: Select all

 do i_l=BS_E_degs(j_lambda),BS_E_degs(j_lambda)+n_lambda_deg-1
       !
       wf_ = V_dot_V(BS_H_dim,BS_mat(1,i_l),wf_vc)
       !
       v2plot(ir) = v2plot(ir)+abs(wf_)**2.
       !
enddo
in

Code: Select all

 do i_l=BS_E_degs(j_lambda),BS_E_degs(j_lambda)+n_lambda_deg-1
       !
       wf_ = V_dot_V(BS_H_dim,BS_mat(1,i_l),wf_vc)
       !
       v2plot(ir) = v2plot(ir)+real(wf_)
       !
enddo
and the same for the imaginary part. If you want to have both of them, you need to redefine v2plot as a complex or a two components vector in
/modules/mod_YPP.F and then modify accordingly the subroutines that operate the outputs that are in ypp/plotting

Best,
Daniele
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