Skip to content

Commit

Permalink
bare-bones version of LinearBurkeRate in reaction.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsingal committed Oct 4, 2024
1 parent b98ccc4 commit 83e5ee3
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions interfaces/cython/cantera/reaction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -662,26 +662,12 @@ cdef class PlogRate(ReactionRate):

cdef class LinearBurkeRate(ReactionRate):
r"""
A pressure-dependent reaction rate parameterized by logarithmically
interpolating between Arrhenius rate expressions at various pressures.
A reaction rate dependent on both pressure and mixture composition that accounts for collisions between reactants and bath gas species.
"""
_reaction_rate_type = "linear-burke"

def __cinit__(self, rates=None, input_data=None, init=True):

if init and isinstance(rates, list):
self.rates = rates

elif init:
if isinstance(input_data, dict):
self._rate.reset(new CxxLinearBurkeRate(py_to_anymap(input_data)))
elif rates is None:
self._rate.reset(new CxxLinearBurkeRate(py_to_anymap({})))
elif input_data:
raise TypeError("Invalid parameter 'input_data'")
else:
raise TypeError("Invalid parameter 'rates'")
self.set_cxx_object()
self.set_cxx_object()

cdef CxxLinearBurkeRate* cxx_object(self):
return <CxxLinearBurkeRate*>self.rate
Expand Down

0 comments on commit 83e5ee3

Please sign in to comment.