计算化学公社

 找回密码 Forget password
 注册 Register
Views: 2851|回复 Reply: 3
打印 Print 上一主题 Last thread 下一主题 Next thread

[量化理论] How the molecules optimization process done by quantum chemistry software ?

[复制链接 Copy URL]

6

帖子

0

威望

69

eV
积分
75

Level 2 能力者

跳转到指定楼层 Go to specific reply
楼主
Hi, I'm João. I'm first year undergraduate student inDepartment of Fundamental Chemistry at University of São Paulo.

I have a keen interest in theoretical and computational chemistry, that's why I started to learn by myself in this field with individual effort .
Recently, i faced a difficulty to understand the optimization process of a given molecule and find a stationary point, as i know to find the minimum, the derivative of energy must be equal zero,
which means the energy is a function, what i want to understand is the mathematical expression of this function, and how quantum chemistry softwares optimize a molecule by by given only the cartesian coordinates of this molecule ? I know there there is algorithm for optimization such as Newton Raphson, Conjugate Gradient and steepest descent, but, how the derivatives have been done for a molecule has only the cartesian coordinates ?
Just to mention, I tried to find the function energy of a simple molecule like a water molecule and discovered the process of calculation manually but I failed. So many question inside my head without finding any answer, i hope i could find what i'm looking for in this wonderful forum.


So many question inside my head without finding any answer ,i hope i could find what i'm looking for in this wonderful forum.




1万

帖子

0

威望

7400

eV
积分
18164

Level 6 (一方通行)

2#
发表于 Post on 2022-3-25 21:34:05 | 只看该作者 Only view this author
本帖最后由 wzkchem5 于 2022-3-25 14:35 编辑

Briefly speaking, the energy function has no closed-form expression (unless you are using a molecular mechanics method, in which case some typical function forms can be found in https://en.wikipedia.org/wiki/Force_field_(chemistry) ).
In ab initio methods, the energy E({R}, Psi) is an explicit function of the atomic coordinates {R} and the wavefunction Psi. If for every possible {R}, you tune Psi so that E({R}, Psi) is minimized (but subject to some constraints, like Psi is normalized and has the correct number of alpha and beta electrons; with some methods you have further constraints like Psi is representable by a single Slater determinant, etc.), then you get a function U({R}) that only depends on {R} (because for each {R} you manually specified a Psi), and this is the function that you are optimizing in a geometry optimization. However it is an implicit function, because the Psi that minimizes E({R}, Psi) at a given {R} is an implicit function of {R}. There are also some methods (so-called non-variational methods) where Psi is not found by minimizing E({R}, Psi), but for the moment you can temporarily ignore them. An introductory read on this can be found at https://en.wikipedia.org/wiki/Bo ... imer_approximation.

The derivatives of U({R}) with respect to the atomic coordinates {R} are usually found by the chain rule, from partial derivatives of E({R}, Psi) with respect to {R} and Psi. For variational methods (like HF, DFT and CASSCF) the partial derivatives of E({R}, Psi) with respect to Psi are zero, since E({R}, Psi) has been minimized with respect to Psi, and this simplifies the formalism. For this part you may have a look at the DFT energy gradient article https://aip.scitation.org/doi/10.1063/1.464906, although you may want to start from the derivation of the HF gradient, which is in an earlier article cited therein.
BDF(https://bdf-manual.readthedocs.io/zh_CN/latest/Introduction.html)、ORCA(https://orcaforum.kofo.mpg.de/index.php)开发团队成员

487

帖子

1

威望

4038

eV
积分
4545

Level 6 (一方通行)

3#
发表于 Post on 2022-3-25 22:42:20 | 只看该作者 Only view this author
As to force (1st order deriv). There's a Hellmann–Feynman theorem that enables us to obtain the exact gradient from the exact wavefunction. In practise there are some details however. For example, some variations are used for HF, DFT, etc since they don't have the exact wavefunction. Also there is a Pulay force due to incompleteness of basis set. In quantum chemistry programs, usually most methods (HF, DFT, MP2, CASSCF, CISD, CCSD, etc) have analytical gradients (i. e. no need to compute numerical gradient, which does finite difference on the coordinates of nuclears, slower and less accurate).

Analytical 2nd order deriv is also available for many methods. For HF and DFT it's obtained by solving CPHF equation. It's much more difficult to obtain the analytical 2nd order deriv than the analytical 1st order deriv.

In short: Although the exact analytical form of a PES at a given level is unavailable, its 1st order deriv is usually available through Hellmann–Feynman theorem and its variations, and higher order deriv are also available sometimes.

Attached is a homework I did in my undergraduate years. It's about the PES of water molecule, and I optimized the molecule based on the PES. Hundreds of parameters were used to fit the PES (note that such an analytical expression is unavailable in most most cases).

H2O-PES.zip

29.94 KB, 下载次数 Times of downloads: 4

现代化学以狄拉克的一句“一切化学问题业已解决”为嚆矢。滥觞于经验主义传统的期望正失去它们的借鉴意义。但面对看似不可达的通往天堂之阶梯,我想循伍德沃德“最好的模型是你底物的对映异构体”的信仰好过过早地振翮。
我们怀揣热忱的灵魂天然被赋予对第一性的追求,不屑于单一坐标的约束,钟情于势能面彼端的芬芳。但

5万

帖子

99

威望

5万

eV
积分
112397

管理员

公社社长

4#
发表于 Post on 2022-3-26 08:25:50 | 只看该作者 Only view this author
I strongly suggest that you first understand how the force of Hartree-Fock is calculated, this is much simpler compared to other situations (DFT, CI, CC, etc.). In page 440 of "Modern Quantum Chemistry" by Szabo there is very clear derivation of the formulae used to evaluate analytic gradient of Hartree-Fock, this a nice starting point of the topic you are interested in.

For force evaluation of LDA and GGA types of DFT functionals, see Chem. Phys. Lett., 199, 557 (1992).

For more information about derivative evaluations, see Section 11.3 of Introduction to Computational Chemistry (3ed,Frank Jensen,2017).
北京科音自然科学研究中心http://www.keinsci.com)致力于计算化学的发展和传播,长期开办高质量的各种计算化学类培训:初级量子化学培训班中级量子化学培训班高级量子化学培训班量子化学波函数分析与Multiwfn程序培训班分子动力学与GROMACS培训班CP2K第一性原理计算培训班,内容介绍以及往届资料购买请点击相应链接查看。这些培训是计算化学从零快速入门以及进一步全面系统性提升研究水平的高速路!培训各种常见问题见《北京科音办的培训班FAQ》
欢迎加入“北京科音”微信公众号获取北京科音培训的最新消息、避免错过网上有价值的计算化学文章!
欢迎加入人气非常高、专业性特别强的综合性理论与计算化学交流QQ群“思想家公社QQ群”:1号:18616395,2号:466017436,3号:764390338,搜索群号能搜到哪个说明目前哪个能加,合计9000人。北京科音培训班的学员在群中可申请VIP头衔,提问将得到群主Sobereva的最优先解答。
思想家公社的门口Blog:http://sobereva.com(发布大量原创计算化学相关博文)
Multiwfn主页:http://sobereva.com/multiwfn(十分强大的量子化学波函数分析程序)
ResearchGate:https://www.researchgate.net/profile/Tian_Lu
Money and papers are rubbish, get a real life!

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2024-11-25 19:28 , Processed in 1.296972 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list