[cantera] r3416 committed - [Examples] Use IdealGasConstPressureReactor in sensitivity example

3 views
Skip to first unread message

can...@googlecode.com

unread,
Feb 27, 2015, 7:28:31 PM2/27/15
to cantera...@googlegroups.com
Revision: 3416
Author: yar...@gmail.com
Date: Sat Feb 28 00:24:25 2015 UTC
Log: [Examples] Use IdealGasConstPressureReactor in sensitivity example
https://code.google.com/p/cantera/source/detail?r=3416

Modified:
/cantera/trunk/interfaces/cython/cantera/examples/reactors/sensitivity1.py

=======================================
---
/cantera/trunk/interfaces/cython/cantera/examples/reactors/sensitivity1.py
Tue Jul 16 22:09:55 2013 UTC
+++
/cantera/trunk/interfaces/cython/cantera/examples/reactors/sensitivity1.py
Sat Feb 28 00:24:25 2015 UTC
@@ -12,18 +12,7 @@
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
Reply all
Reply to author
Forward
0 new messages