SHG spectrum

Questions and doubts about features of non linear optic in Yambo (yamb_nl)

Moderators: Davide Sangalli, claudio, myrta gruning

Post Reply
sunxl
Posts: 45
Joined: Wed Aug 14, 2024 8:05 am
Location: China

SHG spectrum

Post by sunxl » Wed Oct 22, 2025 3:25 am

Dear all,
When I calculated the SHG at different frequencies after calculating the collision, for example, I calculated 30 frequency points in total, and calculated them in parallel in groups of five. During the calculation process, sometimes I encountered the following situation: at one point, the calculation just stopped, such as F14. This would then affect the subsequent calculations of F19, F24, and F29. However, the calculation would still show as completed in the end. But when I deleted these interrupted calculations and resubmitted them after the calculation was completed, the system seemed not to recognize the missing output files and defaulted to thinking that the calculations had been completed. Does this affect the calculation results? How can these missing files be completed?
o-shg-bse1-2-01D.external potential F11 936KB 2025/10/22,10:15
o-shg-bse1-2-01D.external potential F12 878KB 2025/10/22,10:15
o-shg-bse1-2-01D.external potential F13 911KB 2025/10/22,10:15
o-shg-bse1-2-01D.external potential F14 367KB 2025/10/22,8:12
o-shg-bse1-2-01D.external potential F15 910KB 2025/10/22,10:15
Dr. sunxl
Beijing Computing Science Research Center, China.

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

Re: SHG spectrum

Post by Daniele Varsano » Wed Oct 22, 2025 10:15 am

Dear sunxl,

I'm not sure I understood correctly your problem.
My suggestion is to recalculate the missing points redirecting the outputs (-J) using a different directory of the previous one.

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/

sunxl
Posts: 45
Joined: Wed Aug 14, 2024 8:05 am
Location: China

Re: SHG spectrum

Post by sunxl » Wed Oct 22, 2025 11:16 am

Dear Daniele,

Thank you for your patient response.
When using the -J option to create a new directory, how should I set it up so that it only calculates the missing points? Isn't this equivalent to starting the calculation all over again?

Best,
sunxl
Dr. sunxl
Beijing Computing Science Research Center, China.

User avatar
claudio
Posts: 536
Joined: Tue Mar 31, 2009 11:33 pm
Location: Marseille
Contact:

Re: SHG spectrum

Post by claudio » Thu Oct 23, 2025 3:39 pm

Dear sunxl

if you change directory using -J you have to copy all ndb.Nonlinear* files in that directory,
so Yambo will find them and not recalculate.

Anyway you can do also separate runs for different energy range, number of points and then joint
the file response functions

best
Claudio
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

Post Reply