📄 potential2dg.f90
字号:
real(kind(1.d0)) function potentialV(x,z) ! ! User supplied potential ! ! This function takes on input the coordinates x,z and returns the value ! of the potential at this point ! ! all values in atomic units ! use system2Dg implicit none integer, parameter :: dp=kind(1.d0) real(dp), intent(in) :: x,z real(dp) :: wx,wz wz = 1.51982d-14 wx = 0.25d0*wz potentialV = 0.5d0*mass*(wx**2*x**2 + wz**2*z**2) returnend function potentialV
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -