WARNING:root:Ignoring duplicate transport data for species "ch2och2o2h" on line 1578 of "C:\Users\vnechev\AppData\Local\Continuum\anaconda3\envs\canteraenv\Lib\site-packages\cantera\data\SarathyTran.txt".WARNING:root:Ignoring duplicate transport data for species "c5h81-3" on line 1720 of "C:\Users\vnechev\AppData\Local\Continuum\anaconda3\envs\canteraenv\Lib\site-packages\cantera\data\SarathyTran.txt".
INFO:root:Skipping unexpected species "ic13h27cho" while reading thermodynamics entry.
WARNING:root:Found additional thermo entry for species c4h6. If --permissive was given, the first entry is used.
gas = ct.Solution('SarathyChem.cti')
#Tict0 = time.time()# This is a starting estimate. If you do not get an ignition within this time, increase itestimatedIgnitionDelayTime = 0.1t = 0counter = 1;while(t < estimatedIgnitionDelayTime): t = reactorNetwork.step() if (counter%100 == 0): # We will save only every 10th value. Otherwise, this takes too long # Note that the species concentrations are mass fractions timeHistory.loc[t] = reactorNetwork.get_state() counter+=1# We will use the 'oh' species to compute the ignition delaytau = ignitionDelay(timeHistory, 'oh')#Toct1 = time.time()print('Computed Ignition Delay: {:.3e} seconds. Took {:3.2f}s to compute'.format(tau, t1-t0))--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/c7d67874-88d9-4207-a213-4e76a1bbbab4%40googlegroups.com.
Hi,
If you’re just doing reactor simulations and not flames, you can speed up the initial import of your mechanism by writing:
gas = ct.Solution('SarathyChem.cti', transport_model=None)
Most of the time taken by the import process is in calculating collision integrals for each pair of species, a process which scales with the number of species squared. If you don’t need transport properties, this step can be skipped.
For the ignition delay calculation, what constitutes “forever”? I tried a case with the mechanism you provided, and it ran in about 2 minutes on my computer (a 5 year old quad-core desktop). This doesn't seem unreasonable for such a large mechanism. I would try adding some print statements inside the while loop to see what progress the integrator is making and how the state of the gas is changing.
Regards,
Ray