Ejemplo n.º 1
0
 def test_get_effective_rate_3_to_2(self):
     """
     Tests that the effective rate is limited for a 3 -> 2 reaction
     """
     effective_rate = diffusion_limiter.get_effective_rate(self.tri_bi_reaction, self.T)
     self.assertTrue(effective_rate < self.intrinsic_rates[self.tri_bi_reaction])
     self.assertTrue(effective_rate >= 0.2 * self.intrinsic_rates[self.tri_bi_reaction])
Ejemplo n.º 2
0
 def test_get_effective_rate_unimolecular(self):
     """
     Tests that the effective rate is the same as the intrinsic rate for
     unimiolecular reactions.
     """
     effective_rate = diffusion_limiter.get_effective_rate(self.uni_reaction, self.T)
     self.assertEqual(effective_rate, self.intrinsic_rates[self.uni_reaction])
Ejemplo n.º 3
0
 def test_get_effective_rate_2_to_1(self):
     """
     Tests that the effective rate is limited in the forward direction for
     a 2 -> 1 reaction
     """
     effective_rate = diffusion_limiter.get_effective_rate(self.bi_uni_reaction, self.T)
     self.assertTrue(effective_rate < self.intrinsic_rates[self.bi_uni_reaction])
     self.assertTrue(effective_rate >= 0.2 * self.intrinsic_rates[self.bi_uni_reaction])