mod_YPP_post_bse.F Source File


Source Code

!
! License-Identifier: GPL
!
! Copyright (C) 2016 The Yambo Team
!
! Authors (see AUTHORS file for details): DS
!
! headers
!
#include<y_memory.h>
!
module YPP_post_bse
 !
 use units,    ONLY:HA2EV
 use pars,     ONLY:schlen,SP,DP,rZERO
 use y_memory_alloc
 !
 ! exc-exc transition
 integer           :: Exc_Range(2)=0
 real(SP)          :: Def_DIP_dir(3)=0._SP
 real(SP)          :: Single_Exc_pol(3)=0._SP
 real(SP)          :: Ini_Exc_cut=1.E-1_SP/HA2EV
 real(SP)          :: Fin_Exc_cut=3.E-1_SP/HA2EV
 real(SP)          :: Zeroing_Disconnected_cut=1.E-3_SP/HA2EV
 real(SP)          :: Eeh_threshold=1.E-2_SP/HA2EV
 character(schlen) :: DIP_plane="none" 
 logical           :: l_post_bse
 logical           :: l_exc_rad_life
 logical           :: l_exc_exc_trans
 logical           :: l_shift_current
 logical           :: l_exc_neq_arpes
 logical           :: logi_EPS(3,3)=.FALSE.
 real(SP),    allocatable :: exc_exc_E(:)
 complex(SP), allocatable :: RES_left(:,:,:)  ! I_trans, DIP_dir, 1 ( RES_0 ) - 2 ( dRES)
 complex(SP), allocatable :: RES_right(:,:,:)
 complex(SP), allocatable :: RES_V_right(:,:,:)
 complex(SP), allocatable :: RES_R_right(:,:,:)
 complex(SP), allocatable :: sc_ijk(:,:)
 complex(SP), allocatable :: eq_res(:,:) ! <0|v/iR|lambda>  (lambda,direction)
 complex(SP), allocatable :: eq_res_gra(:,:) ! <0|v/iR|lambda> gra (lambda,direction)
 complex(SP), allocatable :: BS_mat_q(:,:)
 complex(SP), allocatable :: Epsilon_ij(:,:,:)
 complex(SP), allocatable :: Q_r(:,:,:,:),Q_l(:,:,:,:)
 !
 type PB_ctl
   real(SP) :: delta_W             =0._SP   ! delta W
   real(SP) :: X_W_range(2)        =0._SP   ! Response energy range
   real(SP) :: Carriers_W_range(2) =0._SP   ! Carriers energy range
   integer  :: W_n_steps           =0       ! number of steps in energy mesh
   real(SP) :: delta_T             =0._SP   ! delta T
   real(SP) :: T_range(2)          =0._SP   ! time windows for the transform
   integer  :: T_n_range(2)        =0       ! lower and upper value of time range
   integer  :: T_n_steps           =0       ! number of steps in Time mesh
   real(SP) :: damp_factor         =0._SP   ! factor used in damping
   real(SP) :: Field_damp_factor   =0._SP   ! factor used deduced from the Field
   character(schlen) :: damping    ="NONE"  ! Damp type (none, lorentian or gaussian)
 end type PB_ctl
 !
 type(PB_ctl), save :: PB_conf,PB_conf_save
 !
 contains
 !
   function EPS_label(i,j)
     character(2) :: EPS_label
     integer      :: i,j
     if (i==1) EPS_label="x" 
     if (i==2) EPS_label="y" 
     if (i==3) EPS_label="z" 
     if (j==1) EPS_label=EPS_label(1:1)//"x" 
     if (j==2) EPS_label=EPS_label(1:1)//"y" 
     if (j==3) EPS_label=EPS_label(1:1)//"z" 
   end function
 !
end module YPP_post_bse

📚 Documentation Pages
⏱️ Real-Time
🔗 Code API