diff --git a/interfaces/cython/cantera/examples/reactors/reactor1.py b/interfaces/cython/cantera/examples/reactors/reactor1.py index 7a87ac3ce..91cc6a274 100644 --- a/interfaces/cython/cantera/examples/reactors/reactor1.py +++ b/interfaces/cython/cantera/examples/reactors/reactor1.py @@ -8,18 +8,8 @@ import numpy as np import cantera as ct gri3 = ct.Solution('gri30.xml') -air = ct.Solution('air.xml') - gri3.TPX = 1001.0, ct.one_atm, 'H2:2,O2:1,N2:4' -r = ct.IdealGasReactor(gri3) -env = ct.Reservoir(air) - -# Define a wall between the reactor and the environment, and -# make it flexible, so that the pressure in the reactor is held -# at the environment pressure. -w = ct.Wall(r, env) -w.expansion_rate_coeff = 1.0e6 # set expansion parameter. dV/dt = KA(P_1 - P_2) -w.area = 1.0 +r = ct.IdealGasConstPressureReactor(gri3) sim = ct.ReactorNet([r]) time = 0.0