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

Đang mở
#3,029 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
numpy, python
Lĩnh vực
backend, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
550
Fork
267
Merge trung bình
8 giờ 49 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ReactionMechanismGenerator/RMG-Py

Tất cả issue của ReactionMechanismGenerator/RMG-Py

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.