mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Python] Assign Solution to zeroD directly
This commit is contained in:
parent
32f9ea6ec8
commit
e9034d9061
@ -38,7 +38,7 @@ cdef extern from "cantera/zerodim.h" namespace "Cantera":
|
||||
cdef cppclass CxxReactorBase "Cantera::ReactorBase":
|
||||
CxxReactorBase()
|
||||
string type()
|
||||
void setThermoMgr(CxxThermoPhase&) except +translate_exception
|
||||
void setSolution(shared_ptr[CxxSolution]) except +translate_exception
|
||||
void restoreState() except +translate_exception
|
||||
void syncState() except +translate_exception
|
||||
double volume()
|
||||
@ -48,7 +48,6 @@ cdef extern from "cantera/zerodim.h" namespace "Cantera":
|
||||
|
||||
cdef cppclass CxxReactor "Cantera::Reactor" (CxxReactorBase):
|
||||
CxxReactor()
|
||||
void setKineticsMgr(CxxKinetics&)
|
||||
void setChemistry(cbool)
|
||||
cbool chemistryEnabled()
|
||||
void setEnergy(int)
|
||||
|
@ -58,7 +58,7 @@ cdef class ReactorBase:
|
||||
self._thermo = solution
|
||||
# Block species from being added to the phase as long as this object exists
|
||||
self._thermo._references[self._weakref_proxy] = True
|
||||
self.rbase.setThermoMgr(deref(solution.thermo))
|
||||
self.rbase.setSolution(solution._base)
|
||||
|
||||
property type:
|
||||
"""The type of the reactor."""
|
||||
@ -268,8 +268,6 @@ cdef class Reactor(ReactorBase):
|
||||
"""
|
||||
ReactorBase.insert(self, solution)
|
||||
self._kinetics = solution
|
||||
if solution.kinetics != NULL:
|
||||
self.reactor.setKineticsMgr(deref(solution.kinetics))
|
||||
|
||||
property kinetics:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user