Skip to content

Commit

Permalink
Edited high_rate, low_rate in set_cantera_kinetics() for Lindemann re…
Browse files Browse the repository at this point in the history
…actions. Can now extract the high & low rate from the Cantera Lindemann object, which is necessary for reactionTest.py to pass successfully.
  • Loading branch information
Nora-Khalil committed Jul 19, 2022
1 parent 7f91a01 commit f00c6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmgpy/kinetics/falloff.pyx
Expand Up @@ -233,8 +233,8 @@ cdef class Lindemann(PDepKineticsModel):
ct_reaction.high_rate = self.arrheniusHigh.to_cantera_kinetics()
ct_reaction.low_rate = self.arrheniusLow.to_cantera_kinetics()

high_rate = self.arrheniusHigh.to_cantera_kinetics()
low_rate = self.arrheniusLow.to_cantera_kinetics()
high_rate = ct.Arrhenius(self.arrheniusHigh._A.value, self.arrheniusHigh._n.value, self.arrheniusHigh._Ea.value)
low_rate = ct.Arrhenius(self.arrheniusLow._A.value, self.arrheniusHigh._n.value, self.arrheniusHigh._Ea.value)
falloff = []
ct_reaction.rate = self.to_cantera_kinetics(low_rate,high_rate,falloff)

Expand Down

0 comments on commit f00c6e1

Please sign in to comment.