Second-Harmonic Generation

by Dmitrii Nabok for exciting carbon

Purpose: In this tutorial you will learn how to initialize and perform calculations of the second order susceptibility tensor with exciting. As an example, we compute the second-harmonic generation (SHG) spectrum of GaAs.

Second harmonic generation

Copy and paste the following exciting input data into input.xml.

   <title>GaAs SHG</title>
   <structure speciespath="$EXCITINGROOT/species">
         <basevect>5.3435 5.3435 0.0000</basevect>
         <basevect>5.3435 0.0000 5.3435</basevect>
         <basevect>0.0000 5.3435 5.3435</basevect>
      <species speciesfile="Ga.xml" rmt="2.0">
         <atom coord="0.00 0.00 0.00"/>
      <species speciesfile="As.xml" rmt="2.0">
         <atom coord="0.25 0.25 0.25"/>
      ngridk="8 8 8"
         <chicomp>1 2 3</chicomp>

Make sure to set $EXCITINGROOT to the correct exciting root directory in the speciespath attribute using the command


Please get first familiar with the input parameters related to shg element. Note that all required components of the second-order susceptibility tensor $\chi_{abc}^{2}(-2\omega,\omega,\omega)$ can be specified by adding corresponding chicomp combinations (1=x, 2=y, 3=z).

Run exciting in the usual way.

As an example, we present results for $| \chi_{xyz}^{2}(-2\omega,\omega,\omega) |$ (wich can be fouond in the output file CHI_123.OUT). Note that this file contains information about the frequency dependence of the real and imaginary part, as well as the absolute value of the corresponding tensor component.
  • Converge the SHG spectrum with respect to ngridk.
  • Try different components of the SHG susceptibility tensor noting that many of them are actually zero due to crystal symmetry.


  • J. L. P. Hughes and J. E. Sipe, Phys. Rev. B 53, 10751 (2003)
  • S. Bergfeld and W. Daum, Phys. Rev. Lett. 90, 036801 (2003)
  • S. Sharma and C. Ambrosch-Draxl, Physica Scripta T109, 128 (2004)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License