Add solvePseudoSteadyStateProblem() in cython interface
This commit is contained in:
parent
e3424d8ed4
commit
cb5620996c
2 changed files with 7 additions and 0 deletions
|
|
@ -379,6 +379,7 @@ cdef extern from "cantera/kinetics/Kinetics.h" namespace "Cantera":
|
|||
cdef extern from "cantera/kinetics/InterfaceKinetics.h":
|
||||
cdef cppclass CxxInterfaceKinetics "Cantera::InterfaceKinetics":
|
||||
void advanceCoverages(double) except +translate_exception
|
||||
void solvePseudoSteadyStateProblem() except +translate_exception
|
||||
|
||||
|
||||
cdef extern from "cantera/transport/TransportBase.h" namespace "Cantera":
|
||||
|
|
|
|||
|
|
@ -366,6 +366,12 @@ cdef class InterfaceKinetics(Kinetics):
|
|||
coverages for a specified amount of time.
|
||||
"""
|
||||
(<CxxInterfaceKinetics*>self.kinetics).advanceCoverages(dt)
|
||||
|
||||
def advance_coverages_to_steady_state(self):
|
||||
"""
|
||||
This method advances the surface coverages to steady state.
|
||||
"""
|
||||
(<CxxInterfaceKinetics*>self.kinetics).solvePseudoSteadyStateProblem()
|
||||
|
||||
def phase_index(self, phase):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue