Skip to content

Commit

Permalink
[Kinetics] Make 3rd-body concentration argument mandatory
Browse files Browse the repository at this point in the history
FalloffRate.falloff_function requires knowledge of both temperature and
third-body concentration
  • Loading branch information
ischoegl committed Apr 29, 2022
1 parent a394423 commit 6fbc647
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions interfaces/cython/cantera/reaction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,11 @@ cdef class FalloffRate(ReactionRate):
def __set__(self, cbool activated):
self.falloff.setChemicallyActivated(activated)

def falloff_function(self, double temperature, conc3b=None):
def falloff_function(self, double temperature, double conc3b):
"""
Evaluate the falloff function
Evaluate the falloff function based on temperature and third-body
concentration.
"""
if conc3b is None:
conc3b = self.third_body_concentration
return self.falloff.evalF(temperature, conc3b)


Expand Down

0 comments on commit 6fbc647

Please sign in to comment.