Strange behavior in Second Harmonic vs Strain

Phonons, DFPT, electron-phonon, electric-field response, mechanical response…

Moderators: mverstra, joaocarloscabreu

Locked
beachk2
Posts: 4
Joined: Thu Apr 27, 2017 6:36 pm

Strange behavior in Second Harmonic vs Strain

Post by beachk2 » Thu Apr 27, 2017 9:47 pm

Hello. I have been performing second harmonic calculations as a function of strain for monolayer materials and have been getting some strange results that do not agree with other codes that do not use the Berry phase to calculate Chi^(2).

My procedure has been as follows: I start with a basic self consistent calculation with ngkpt=12 12 1. I then perform an iscf=-2 calculation with ngkpt=48 48 1. Next I perform three iscf=-3 perturbation calculations (one for each rfdir axis). Finally I perform a Nonlinear Optics calculation to find the second order susceptibility.

The results I have been getting are strange. The magnitude of Chi^(2) drops off discontinuously for most of the nonzero tensor components I have calculated at seemingly random intervals. The points that do not drop off seem to follow a logical looking trend, which leads me to believe this is due to a calculation error. This effect has occurred for both PBE and LDA calculations. I suspect this is a numerical artifact that might have something to do with the way you calculate the Berry Phase. Any ideas? Thank you.

Best regards,
Kory Beach
Kory Beach
Rensselaer Polytechnic Institute

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by mverstra » Tue May 09, 2017 11:45 pm

You are running the optic executable? This runs RPA sums over states, not Berry phase, I think. Your iscf -3 is a ddk calculation, which is an analytical perturbation wrt k.

Your post is not explicit enough: need details on input output versions etc... See the netiquette.

Some possibilities:
* are you sure you are converged with bands and ecut (event k)?
* the discontinuity is with respect to what? If it's strain, you may be changing the sphere of G vectors discontinuously. Increase ecut a bit and add ecutsm 0.5 or 1.0 Ha to smooth things.
Matthieu Verstraete
University of Liege, Belgium

beachk2
Posts: 4
Joined: Thu Apr 27, 2017 6:36 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by beachk2 » Mon May 22, 2017 5:00 am

Sorry about not being explicit enough. I am running the Optic executable in ABINIT 8.0.8 to do the Second Harmonic Generation calculations, and the problem I am experiencing is when I calculate the second harmonic as a function of strain, the intensity of the second harmonic has discontinuous drops for certain strains. My method for changing the strain has simply been to change the lattice constants by some percentage in whatever Cartesian direction I am varying. In this image I show the second harmonic intensity at 1.5 eV and 3.0 eV for various strains to demonstrate what I mean by the intensity dropping:
Image

I have tested the convergence of my cutoff energy and it looks fine for my PBE norm conserving pseudopotential (this also happens for LDA), but just to be sure I tried changing the cutoff energy to higher values with ecutsm set to both 0.5 and 1 like you said. This doesn't change the discontinuous behavior in the second harmonic.

I have attached the input files I used for one strain calculation. The order of my calculations is scf > wfc > ddk > optics.

Thank you for your help.
Attachments
scf.in
(581 Bytes) Downloaded 272 times
wfc.in
(594 Bytes) Downloaded 257 times
ddk.in
(679 Bytes) Downloaded 263 times
optic.in
(355 Bytes) Downloaded 259 times
Kory Beach
Rensselaer Polytechnic Institute

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by mverstra » Mon May 22, 2017 10:46 am

Hi again,

strange - it does look like a "quantum of polarization" effect in Berry phases, but again I don't think Berry is used, and anyway you are not looking at P.

Could you check your outputs to see if the ngfft jumps at the corresponding chi2 jumps? Or the total energy or something else (strain forces...)? I.e. is there something in the ground state which follows these discontinuities? Could it be going metallic, or perhaps not converging the scf cycle (or not as well)?
Matthieu Verstraete
University of Liege, Belgium

beachk2
Posts: 4
Joined: Thu Apr 27, 2017 6:36 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by beachk2 » Tue May 23, 2017 12:53 am

So I have tried quite a few things to test this, but nothing seems to change the optical behavior so far:

    I don't see any difference between the ngfft recommended for the strains where the intensity drops compared to the normal cases, at least none that corresponds to the dropping in intensity.

    I have also looked at the band structures and there is hardly any change shown there-- definitely doesn't look like a semiconductor to metal transition.

    The total energy as a function of strain gives a nice quadratic-looking curve with 0% strain at the minimum, as we would expect. Pressure as a function of strain decreases roughly linearly as strain goes from negative to positive.

    I tried turning off symmetry in my initial scf calculation by doing kptopt 3, but that didn't change anything. I also tried circumventing the DDK process by using berryopt to output my WF files, but that seemed to be incompatible with the optic executable so it just crashed.

    In terms of the scf convergence the number of steps it takes for each strain to converge does not seem to be at all correlated with whether or not the optics are affected.

Do you have any other suggestions for parameters to try? Thanks again for all your help.
Kory Beach
Rensselaer Polytechnic Institute

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by mverstra » Tue May 23, 2017 5:41 pm

Is the parallelization strategy changing? Grep for npfft npkpt etc... How many processors?

Can you tell if the last unoccupied bands are well converged in the non scf calculation?

In passing, your positions in xred are not very symmetric (not 1/3 2/3) - could be due to strain but needs to be checked carefully. This might impact things for certain strains if the atom positions hit a grid point or not. Your space group is probably not correctly recognized.

Why impose chkprim 0?

Have you checked convergence wrt nband?
Matthieu Verstraete
University of Liege, Belgium

beachk2
Posts: 4
Joined: Thu Apr 27, 2017 6:36 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by beachk2 » Tue Jun 06, 2017 10:37 pm

Sorry for the delayed reply. I have used a variety of parallelization strategies to see if it had something to do with that, but the dropping behavior is consistent across all parallelization methods, as well as on a different computer.

The structure in my input file was with some applied strain, so the xred coordinates are relaxed with the strained lattice constants, which means we wouldn't expect the symmetry to be preserved. That being said, my space group has not been properly identified by the code.

I have tried the calculations with and without chkprim with no difference in the result.

I have tried a higher nband as well, but this didn't change anything either.

I also tried increasing the kpoint grid density to 64 64 1 since I thought that perhaps the sampling was too sparse for a changing unit cell, but this also had no effect either. The WFC band convergence looks good enough for the unoccupied bands (max resid ~ 10^-19).

I am about ready to move to a different method of calculating the second harmonic. I would appreciate any other suggestions. Thank you very much for your help.
Kory Beach
Rensselaer Polytechnic Institute

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Strange behavior in Second Harmonic vs Strain

Post by mverstra » Wed Jun 07, 2017 11:27 am

You might write Valerie Veniard (Polytechnique Palaiseau) and Nicolas Dejean (now Max Planck Hamburg): in his phd they used "2light" for the SHG (also starting from abinit), and they will certainly have insight.

etsf.polytechnique.fr/system/files/Thesis_Nicolas_Tancogne-Dejean_0.pdf

If there are delicate effects due to k-points hitting specific bands/contributions/frequency differences with varying strain, you might need even more k. I have no empirical feeling for this.

Have you looked at the internal smearing parameters in optic (broadening and domega)? Or cutting down tolerance: perhaps there are few non zero terms in the SHG sum, and specific terms are getting counted or not as a function of strain, because of the cutoff.

cheers
Matthieu Verstraete
University of Liege, Belgium

Locked