# Computing static electro-optic coefficients by GGA+NC

**URL:** <https://discourse.abinit.org/t/computing-static-electro-optic-coefficients-by-gga-nc/3006>\
**Category:** Response calculations\
**Created:** [October 5, 2021, 6:37pm UTC](https://discourse.abinit.org/t/computing-static-electro-optic-coefficients-by-gga-nc/3006 "2021-10-05T18:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gswylq](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/g/a6a055/32.png) [@gswylq](https://discourse.abinit.org/u/gswylq)\
**Post date:** [October 5, 2021, 6:37pm UTC](https://discourse.abinit.org/t/computing-static-electro-optic-coefficients-by-gga-nc/3006/1 "2021-10-05T18:37:27Z")

</div>

Hello everyone,  
The flexoelectricity is now available within the GGA+NC in Abinit v9.6, however, GGA+NC psp does work for static electro-optic coefficients (for example: tnlo\_2.abi and tnlo\_6.abi) and gives some unreasonable energy values.

Please give me some suggestions. Thank you.

Qiang Li

---

<div class="post-metadata">

**Author:** ![mverstra](https://discourse.abinit.org/user_avatar/discourse.abinit.org/mverstra/32/92_2.png) [@mverstra](https://discourse.abinit.org/u/mverstra)\
**Post date:** [October 5, 2021, 10:04pm UTC](https://discourse.abinit.org/t/computing-static-electro-optic-coefficients-by-gga-nc/3006/2 "2021-10-05T22:04:18Z")

</div>

Hi Qiang,

The implementations are quite independent. The terms needed for the flexoelectricity are somehow also 3rd derivatives but the q derivative is different from the R and E field ones needed for Raman and NLO. I thought Raman had been generalized to GGA as well (no SOC, right?) - perhaps only with PAW? The strange thing is that it should complain and stop, not give random results, if the things is not implemented.

You are simply copying tnlo but changing the psp8 files?

---

<div class="post-metadata">

**Author:** ![gswylq](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/g/a6a055/32.png) [@gswylq](https://discourse.abinit.org/u/gswylq)\
**Post date:** [October 5, 2021, 11:49pm UTC](https://discourse.abinit.org/t/computing-static-electro-optic-coefficients-by-gga-nc/3006/3 "2021-10-05T23:49:50Z")

</div>

Dear mverstra,  
I run the example (tnlo\_2.abi and tnlo\_6.abi) with GGA+NC, and the abinit shows the message: Third-order xc kernel can only be computed for ixc = 0, 3, 7 or 8.  
As you said, there are differences in calculation methods of flexoelectricity and NLO .  
Using LDA+NC is good for computing static electro-optic coefficients.  
Alternative, frequency-dependent electro-optical susceptibility can be calculated using LDA+NC and GGA+NC.

Thank you.  
Q Li
