Check the Georgievskii CSE variant for round-off-limited eigenvalues, and add CI tests for it

未关闭
#3,029 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
numpy, python
领域
backend, testing

调研方向

Start with rmgpy/pdep/cse.pyx, especially get_rate_coefficients_CSE_Advanced, and compare its behavior with the Allen method's check in apply_chemically_significant_eigenvalues_method. Run the Georgievskii method on the acetyl+O2 network across the stated temperature and pressure grid, checking variation across LAPACK drivers, BLAS settings, detailed balance, and negative rates. Done means adding a justified round-off safeguard and CI coverage at well-resolved conditions.

由索引模型根据 Issue 内容生成。

描述

Follow-up to #3028.

#3028 adds a check to the Allen CSE implementation (apply_chemically_significant_eigenvalues_method in rmgpy/pdep/cse.pyx). If the smallest chemically significant eigenvalue is below 1000 * eps * max|eigenvalue|, the result is rejected, because the k(T,P) values extracted from it are round-off. They change with the LAPACK driver, the BLAS kernel and the CPU. That was the cause of the intermittent acetyl+O2_cse CI failure.

The Georgievskii variant (get_rate_coefficients_CSE_Advanced, selected with method = 'chemically-significant eigenvalues georgievskii') uses the same scipy.linalg.eigh on the same symmetrized master-equation matrix. It was left unchanged, and it is probably at least as sensitive:

  • Bimolecular-to-bimolecular rates are a sum over all non-chemical eigenmodes of -pvlmbd * Gvlmbd / lambda, which depends on cancellation.
  • pvlmbd = np.linalg.solve(eigen_vectors, Pv) solves against the unsymmetrized, column-normalized eigenvector matrix, which is very badly conditioned. Analytically its inverse is D V^T S^{-1}, so the solve could be replaced by that product.
  • eigratio < 3 only logs a warning and still uses the eigenvalues.

I don't think any test or example in CI exercises this method.

To do

  • Run the Georgievskii method on the acetyl+O2 network over the same T, P grid. Check the spread across scipy.linalg.eigh(driver=...) and OPENBLAS_CORETYPE, and check detailed balance and negative values.
  • Add a round-off check like the one in #3028, and consider replacing the np.linalg.solve with the analytic inverse.
  • Add CI coverage: a functional test, or an example under examples/arkane/networks/, that runs the Georgievskii method at conditions where it is well resolved.
主要语言
Python
星标
550
派生
267
平均合并
8 小时 49 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ReactionMechanismGenerator/RMG-Py 的其他 Issue

查看 ReactionMechanismGenerator/RMG-Py 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。