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

オープン
#3,029 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ReactionMechanismGenerator/RMG-Py のほかの issue

ReactionMechanismGenerator/RMG-Py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。