|
1 | | -#ruff: noqa: ERA001 |
| 1 | +# ruff: noqa: ERA001 |
2 | 2 | """Tests for rates module.""" |
3 | 3 |
|
4 | 4 | from __future__ import annotations |
@@ -77,37 +77,38 @@ def test_eyring_calculates_reaction_barrier() -> None: |
77 | 77 | temperature=[298.15, 1074.0], |
78 | 78 | ) == pytest.approx([1.38, 3.2513e9], 4e-3) |
79 | 79 |
|
| 80 | + |
80 | 81 | # TODO(mrauen): this piece of code tests the old implementation for diffusion controlled reactions. I will implement the new test and change it here. |
81 | | -#def test_smoluchowski_calculates_diffusion_limited_reaction_rates() -> None: |
82 | | - # """Ensure Smoluchowski rates are correct.""" |
83 | | - # radii = np.array([2.59, 2.71]) * constants.angstrom |
84 | | - # assert rx.rates.collins_kimball( |
85 | | - # radii, |
86 | | - # reactive_radius=2.6 * constants.angstrom, |
87 | | - # viscosity=[ |
88 | | - # 8.90e-4, |
89 | | - # 8.54e-4, |
90 | | - # 6.94e-4, |
91 | | - # 5.77e-4, |
92 | | - # 4.90e-4, |
93 | | - # 4.22e-4, |
94 | | - # 3.69e-4, |
95 | | - # ], |
96 | | - # temperature=[298.15, 300.00, 310.00, 320.00, 330.00, 340.00, 350.00], |
97 | | - # ) / constants.liter == pytest.approx( |
98 | | - # [3.6e9, 3.8e9, 4.9e9, 6.0e9, 7.3e9, 8.8e9, 1.0e10], |
99 | | - # 4e-2, |
100 | | - # ) |
101 | | - |
102 | | - # assert rx.rates.collins_kimball( |
103 | | - # radii, |
104 | | - # reactive_radius=2.6 * constants.angstrom, |
105 | | - # viscosity="water", |
106 | | - # temperature=[298.15, 300.00, 310.00, 320.00, 330.00, 340.00, 350.00], |
107 | | - # ) / constants.liter == pytest.approx( |
108 | | - # [3.6e9, 3.8e9, 4.9e9, 6.0e9, 7.3e9, 8.8e9, 1.0e10], |
109 | | - # 4e-2, |
110 | | - # ) |
| 82 | +# def test_smoluchowski_calculates_diffusion_limited_reaction_rates() -> None: |
| 83 | +# """Ensure Smoluchowski rates are correct.""" |
| 84 | +# radii = np.array([2.59, 2.71]) * constants.angstrom |
| 85 | +# assert rx.rates.collins_kimball( |
| 86 | +# radii, |
| 87 | +# reactive_radius=2.6 * constants.angstrom, |
| 88 | +# viscosity=[ |
| 89 | +# 8.90e-4, |
| 90 | +# 8.54e-4, |
| 91 | +# 6.94e-4, |
| 92 | +# 5.77e-4, |
| 93 | +# 4.90e-4, |
| 94 | +# 4.22e-4, |
| 95 | +# 3.69e-4, |
| 96 | +# ], |
| 97 | +# temperature=[298.15, 300.00, 310.00, 320.00, 330.00, 340.00, 350.00], |
| 98 | +# ) / constants.liter == pytest.approx( |
| 99 | +# [3.6e9, 3.8e9, 4.9e9, 6.0e9, 7.3e9, 8.8e9, 1.0e10], |
| 100 | +# 4e-2, |
| 101 | +# ) |
| 102 | + |
| 103 | +# assert rx.rates.collins_kimball( |
| 104 | +# radii, |
| 105 | +# reactive_radius=2.6 * constants.angstrom, |
| 106 | +# viscosity="water", |
| 107 | +# temperature=[298.15, 300.00, 310.00, 320.00, 330.00, 340.00, 350.00], |
| 108 | +# ) / constants.liter == pytest.approx( |
| 109 | +# [3.6e9, 3.8e9, 4.9e9, 6.0e9, 7.3e9, 8.8e9, 1.0e10], |
| 110 | +# 4e-2, |
| 111 | +# ) |
111 | 112 |
|
112 | 113 |
|
113 | 114 | def test_liquid_viscosities_are_correct() -> None: |
|
0 commit comments