计算化学公社

标题: NWChem计算RT_TDDFT报错 [打印本页]

作者
Author:
cpchcy    时间: 2023-2-8 17:06
标题: NWChem计算RT_TDDFT报错
以下是使用NWChem中的tddft计算想得到charge的程序和报错 对着手册做的 不太清楚怎么修改 希望能得到帮助


作者
Author:
Wolf123    时间: 2024-9-19 16:39
在.nw的input文件里面加一行print dipole
  1. title "Water TD-PBE0 resonant excitation"
  2. echo
  3. scratch_dir ./scratch
  4. permanent_dir ./perm
  5. start water
  6. ##
  7. ## aug-cc-pvtz / pbe0 optimized
  8. ##
  9. ## Note: you are required to explicitly name the geometry
  10. ##
  11. geometry "system" units angstroms nocenter noautoz noautosym
  12.   O     0.00000000    -0.00001441    -0.34824012
  13.   H    -0.00000000     0.76001092    -0.93285191
  14.   H     0.00000000    -0.75999650    -0.93290797
  15. end
  16. ## Note: We need to explicitly set the "active" geometry even though there is only one geom.
  17. set geometry "system"
  18. ## All DFT and basis parameters are inherited by the RT-TDDFT code
  19. basis
  20. * library 6-31G
  21. end
  22. dft
  23. xc pbe0
  24. end

  25. ## Compute ground state of the system
  26. task dft energy
  27. ##
  28. ## We excite the system with a quasi-monochromatic
  29. ## (Gaussian-enveloped) z-polarized E-field tuned to a transition at
  30. ## 10.25 eV.  The envelope takes the form:
  31. ##
  32. ## G(t) = exp(-(t-t0)^ / 2s^2)
  33. ##
  34. ## The target excitation has an energy (frequency) of w = 0.3768 au
  35. ## and thus an oscillation period of T = 2 pi / w = 16.68 au
  36. ##
  37. ## Since we are doing a Gaussian envelope in time, we will get a
  38. ## Gaussian envelope in frequency (Gaussians are eigenfunctions of a
  39. ## Fourier transform), with width equal to the inverse of the width in
  40. ## time.  Say, we want a Gaussian in frequency with FWHM = 1 eV
  41. ## (recall FWHM = 2 sqrt (2ln2) s_freq) we want an s_freq = 0.42 eV =
  42. ## 0.0154 au, thus in time we need s_time = 1 / s_time = 64.8 au.
  43. ##
  44. ## Now we want the envelope to be effectively zero at t=0, say 1e-8
  45. ## (otherwise we get "windowing" effects).  Reordering G(t):
  46. ##
  47. ## t0 = t - sqrt(-2 s^2 ln G(t))
  48. ##
  49. ## That means our Gaussian needs to be centered at t0 = 393.3 au.
  50. ##
  51. ## The total simulation time will be 1000 au to leave lots of time to
  52. ## see oscillations after the field has passed.
  53. ##

  54. rt_tddft
  55.   tmax 1000.0
  56.   print dipole
  57.   dt 0.2
  58.   field "driver"
  59.     type gaussian
  60.     polarization z
  61.     frequency 0.3768  # = 10.25 eV
  62.     center 393.3
  63.     width 64.8
  64.     max 0.0001
  65.   end
  66.   excite "system" with "driver"
  67. end
  68. task dft rt_tddft
复制代码





欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3