-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use ypp or yambopy to plot BSE spectra? #263
Comments
Ciao Miki, a comment on this point. I totally agree that for plotting the absorption spectrum (or other derived quantities) yambopy is the best tool, at lest when the yambo solver provides eigenvalues and eigenvectors (not in the Haydock case for example). We discussed this also with @palful in the past. Note, he recently fixed an issue with the peak intensities, not sure if it is the same you are mentioning here. |
Ciao Miki, Yeah unfortunately we were always plagued by prefactor inconsistencies with the yambo output. If you instead find something different, can you post the related test? Now the IP and BSE spectra plots are handled internally by However, I am planning to remove this and rely instead on a more general spectra / DOS plotting function valid for anything, from DOS to BSE absorption to phonon Eliashberg functions, etc. This is already coded here: https://github.com/yambo-code/yambopy/blob/master/yambopy/plot/spectra.py EDIT for @sangallidavide : it would be nice to have clear, practical notes on how alpha_2D is computed in yambo for 2D systems, and its relation with eps_2D so that it can be added as a yambopy (default) option. Also, this is a really frequently asked question by confused users. Now in yambopy we are computing eps_2D. |
Ciao @sangallidavide and @palful, thanks a lot for the comments. The situation I am studying is very simple, just absorption in bulk Silicon. # directly yambo:
eps = np.loadtxt(main_dir+'/o-aiida.out.eps_q1_diago_bse')
# with yambopy:
lattice = YamboLatticeDB.from_db_file(filename=main_dir+'/SAVE/ns.db1')
bse = YamboExcitonDB.from_db_file(
lattice,
filename='ndb.BS_diago_Q1',
folder=main_dir+'/aiida.out',
)
# compute the chi - the imag should be Abs
E, chi = bse.get_chi(broad=0.1) and the resulting plot is (after having multiplied the yambopy result x10): It can be that I am doing some dummy error in the yambopy part. I am looking into this. However, I see that the information on the eigenvectors is never used. I mean, we use the |
Ok this is quite strange. The residuals are already the dipoles rotated in the excitonic basis, so the eigenvector information is already inside. |
Can you write:
|
Thanks a lot both for looking into this. |
should be yambopy, as then we can play with parameters without submitting any other job (that's the main point of using yambopy).
the issue is that in yambopy I get peak intensities which are not in agreement with what I obtain in o-eps... seems we miss the dipole strengths
The text was updated successfully, but these errors were encountered: