| 
    pwdft
    0.1
    
   PW-DFT code for education 
   | 
 
Functions/Subroutines | |
| subroutine | total_e () | 
| subroutine | kinetic (Etot) | 
| subroutine | hartree (Etot) | 
| subroutine | atomic (Etot) | 
| subroutine | ewald (Etot) | 
| subroutine | xc (Etot) | 
| subroutine energy::total_e | 
Definition at line 30 of file energy.F90.
References atomic(), ewald(), hartree(), constant::htr2ev, kinetic(), and xc().
Referenced by pwdft().


| subroutine energy::kinetic | ( | real(8), intent(inout) | Etot | ) | 
Definition at line 50 of file energy.F90.
References atm_spec::bvec, kohn_sham::ef, kohn_sham::eval, kohn_sham::evec, gvec::g_wf, constant::htr2ev, k_point::kgrd, k_point::kvec, kohn_sham::nbnd, and k_point::nk.
Referenced by total_e().

| subroutine energy::hartree | ( | real(8), intent(inout) | Etot | ) | 
Definition at line 93 of file energy.F90.
References atm_spec::bvec, fftw_wrapper::fft_r2g(), gvec::g_rh, constant::htr2ev, constant::pi, rho_v::rho, and atm_spec::vcell.
Referenced by total_e().


| subroutine energy::atomic | ( | real(8), intent(inout) | Etot | ) | 
Definition at line 124 of file energy.F90.
References gvec::g_rh, constant::htr2ev, rho_v::rho, atm_spec::vcell, and rho_v::vps.
Referenced by total_e().

| subroutine energy::ewald | ( | real(8), intent(inout) | Etot | ) | 
Definition at line 142 of file energy.F90.
References atm_spec::atm, atm_spec::avec, atm_spec::bvec, constant::htr2ev, atm_spec::nat, atm_spec::nelec, constant::pi, atm_spec::spec, and atm_spec::vcell.
Referenced by total_e().

| subroutine energy::xc | ( | real(8), intent(inout) | Etot | ) | 
Definition at line 241 of file energy.F90.
References gvec::g_rh, constant::htr2ev, constant::pi, rho_v::rho, and atm_spec::vcell.
Referenced by total_e().
