Dear All,
I need some help with a constant volume combustion simulation that I am trying to do. First of all, I am using Cantera 2.2.0 through the 'New-Python' interface. Here is the problem that I am trying to solve:
I have a constant volume vessel with adiabatic walls and filled with an initial mixture containing 10% H2, 20% O2 and 70% N2 (by mol) at initial temperature of 300K and initial pressure of 1atm. I want to ignite this mixture at t=to and study the transient major and minor species profiles as well as temperature and pressure variation. Obviously, at 300K and 1atm, the mixture will not self ignite and therefore an igniter is definitely required. I used the igniter given in one of the examples that comes with Cantera. Here is the script that I used:
###################################
import math
import csv
import cantera as ct
gas = ct.Solution('gri30.cti')
gas.TPX = 300.0, 101325, 'H2:0.1, O2:0.2, N2:0.7'
combustor = ct.IdealGasReactor(gas)
combustor.volume = 1.0
gas.TPX = 300.0, ct.one_atm, 'H:1.0' #Pure H radicals used as an ignition source
igniter = ct.Reservoir(gas)
fwhm = 0.2 #full width at half maximum for Gaussian pulse
amplitude = 0.1 #amplitude of Gaussian pulse
t0 = 1.0
igniter_mdot = lambda t: amplitude * math.exp(-(t-t0)**2 * 4 * math.log(2) / fwhm**2) #Taken from one of the examples that comes with Cantera
m3 = ct.MassFlowController(igniter, combustor, mdot=igniter_mdot)
sim = ct.ReactorNet([combustor])
tnow = 0.0
tfinal = 5.0
while tnow < tfinal:
tnow = sim.step(tfinal)
print tnow, combustor.T, combustor.thermo.P
####################################
The problem that I am facing is that I am unable to get a solution which is independent of the igniter parameters. For example when amplitude=0.1 is used, the temperature and pressure does not raise at all; on the other hand when amplitude =0.5 is used, the temperature rises to >4000K which is also unrealistic. Same problem exists with the fwhm parameter also.
How do I model the igniter which gives reliable solutions? Is the above mentioned the only way of modeling ignition in constant volume processes or is there a better and more robust way of doing this?
Any help on this will be highly appreciated.
Thanks in advance.