From 5534c15bc5f33ff9d5d93ead32ef947e6911d3ed Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sat, 28 Feb 2015 00:24:25 +0000 Subject: [PATCH] [Examples] Use IdealGasConstPressureReactor in sensitivity example --- .../cantera/examples/reactors/sensitivity1.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/interfaces/cython/cantera/examples/reactors/sensitivity1.py b/interfaces/cython/cantera/examples/reactors/sensitivity1.py index 951ba1367..1fa30b642 100644 --- a/interfaces/cython/cantera/examples/reactors/sensitivity1.py +++ b/interfaces/cython/cantera/examples/reactors/sensitivity1.py @@ -12,18 +12,7 @@ temp = 1500.0 pres = ct.one_atm gri3.TPX = temp, pres, 'CH4:0.1, O2:2, N2:7.52' -r = ct.IdealGasReactor(gri3) - -air = ct.Solution('air.xml') -air.TP = temp, pres -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, name='R1') sim = ct.ReactorNet([r]) # enable sensitivity with respect to the rates of the first 10