The Elk Code
 
Loading...
Searching...
No Matches
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
6elemental subroutine k_tf1(rho,dtdr)
7implicit none
8! arguments
9real(8), intent(in) :: rho
10real(8), intent(out) :: dtdr
11! local variables
12real(8), parameter :: pi=3.1415926535897932385d0
13! Thomas-Fermi coefficient
14real(8), parameter :: ctf=(3.d0/10.d0)*(3.d0*pi**2)**(2.d0/3.d0)
15if (rho < 1.d-20) then
16 dtdr=0.d0
17 return
18end if
19dtdr=ctf*(5.d0/3.d0)*rho**(2.d0/3.d0)
20end subroutine
21
elemental subroutine k_tf1(rho, dtdr)
Definition k_tf1.f90:7