Angular dependence of non-linear response: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


== Remove symmetries ==
== Remove symmetries ==
We remove symmetries in all the plane where we want to study the angular dependence
We remove all symmetries
Using the command  <span style="color:blue">ypp_nl -y</span>
Using the command  <span style="color:blue">ypp_nl -y</span>
   
   
Line 14: Line 14:
  # [R] Remove symmetries not consistent with an external perturbation
  # [R] Remove symmetries not consistent with an external perturbation
  % Efield1
  % Efield1
  <span style="color:red"> 0.000000 | 1.000000 | 0.000000 |  </span>    # First external Electric Field
  0.000000 | 0.000000 | 0.000000 |  # First external Electric Field
  %
  %
  % Efield2
  % Efield2
  <span style="color:red"> 1.000000 | 0.000000 | 0.000000 |   </span>    # Additional external Electric Field
  1.000000 | 0.000000 | 0.000000 |     # Additional external Electric Field
  %
  %
  BField= 0.000000          T    # [MAG] Magnetic field modulus
  BField= 0.000000          T    # [MAG] Magnetic field modulus
  Bpsi= 0.000000            deg  # [MAG] Magnetic field psi angle [degree]
  Bpsi= 0.000000            deg  # [MAG] Magnetic field psi angle [degree]
  Btheta= 0.000000          deg  # [MAG] Magnetic field theta angle [degree]
  Btheta= 0.000000          deg  # [MAG] Magnetic field theta angle [degree]
  <span style="color:red">RmTimeRev    </span>                # Remove Time Reversal
  <span style="color:red">RmAllSymm </span>                # Remove Time Reversal
 
notice that in principle one could remove only the symmetries of the rotation plane plus the TimeReversal. <br>
then go in the <span style="color:blue">FixSymm </span>folder and run the setup again
Then go in the <span style="color:blue">FixSymm </span>folder and run the setup again


== Run simularions at different angles ==
== Run simularions at different angles ==

Revision as of 11:29, 23 January 2024

SHG, THG angular dependence

In this tutorial we show how to calculate angular dependence of non-linear response using Yambo. (This tutorial requires Yambo >= 5.3)
We consider as example a monolayer hBN, DFT input files can be downloaded here: hBN-2D-RT.tar.gz
In this tutorial we suppose you already know how to calculate non-linear reponse with Yambo,
if this is not the case please have a look to the tutorials: Non linear response

Run DFT calculation, import the wave-function and run the setup. Then

Remove symmetries

We remove all symmetries Using the command ypp_nl -y

fixsyms                          
# [R] Remove symmetries not consistent with an external perturbation
% Efield1
  0.000000 | 0.000000 | 0.000000 |   # First external Electric Field
%
% Efield2
 1.000000 | 0.000000 | 0.000000 |      # Additional external Electric Field
%
BField= 0.000000           T     # [MAG] Magnetic field modulus
Bpsi= 0.000000             deg   # [MAG] Magnetic field psi angle [degree]
Btheta= 0.000000           deg   # [MAG] Magnetic field theta angle [degree]
RmAllSymm                  # Remove Time Reversal

notice that in principle one could remove only the symmetries of the rotation plane plus the TimeReversal.
Then go in the FixSymm folder and run the setup again

Run simularions at different angles