The Elk Code
k_tf1.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2022 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3 ! This file is distributed under the terms of the GNU General Public License.
4 ! See the file COPYING for license details.
5 
6 elemental subroutine k_tf1(rho,dtdr)
7 implicit none
8 ! arguments
9 real(8), intent(in) :: rho
10 real(8), intent(out) :: dtdr
11 ! local variables
12 real(8), parameter :: pi=3.1415926535897932385d0
13 ! Thomas-Fermi coefficient
14 real(8), parameter :: ctf=(3.d0/10.d0)*(3.d0*pi**2)**(2.d0/3.d0)
15 if (rho < 1.d-20) then
16  dtdr=0.d0
17  return
18 end if
19 dtdr=ctf*(5.d0/3.d0)*rho**(2.d0/3.d0)
20 end subroutine
21 
elemental subroutine k_tf1(rho, dtdr)
Definition: k_tf1.f90:7