Closed shenghuiqin closed 5 years ago
Hello,
It looks like your run time error occurs because your model did not ignite under the first set of initial conditions in the auto-ignition simulation in the given number of steps. Maybe the error message could be easier to understand.
The equivalence ratio and mole fractions given are passed to the set_equivalence_ratio function from Cantera here. See the documentation here.
You can certainly set up your initial conditions like this! Every 100K sounds like a reasonable step in temperature. The trade-offs you need to consider are more initial conditions mean that the reduction will take longer and will be less effective, but the benefit is that the error in the reduced model will be consistent across a wider variety of conditions.
Thank you for using the software and reporting your issues to us!
@shenghuiqin to clarify about the mole fraction/equivalence ratio, the values in the fuel
and oxidizer
fields are the mole fractions in the fuel/oxidizer mixture. (So, in the example given, the oxidizer is the typical representation for air of 1.0 O2 + 3.76 N2.) Then, as @xMestas mentioned, the equivalence ratio specified will be used to find the appropriate ratio of fuel and oxidizer.
Alternatively, you can leave out equivalence-ratio
, fuel
, and oxidizer
and specify the molar amounts of each reactant:
reactants:
CH4: 1.0
O2: 2.0
N2: 7.52
thank you both!
I changed the simulation condition which I can get IDT using cantera,
model: 9.2blend2.cti
targets:
- C7H10(705)
- C7H16(37)
- O2(2)(38)
retained-species:
- N2(35)
method: DRGEP
error: 10.0
sensitivity-analysis: False
autoignition-conditions:
- kind: constant volume
pressure: 20.0
temperature: 800.0
reactants:
C7H10(705): 1
C7H16(37): 1
O2(2)(38): 21
N2(35): 60
but on pyMARS I still get the RuntimeError, I tried on several T and P, still did not work. what else could be the reason to have this error?
@shenghuiqin is the ignition delay time you got with Cantera quite long? It may be that the low temperature and extremely lean mixture takes too long to ignite for the default pyMARS parameters.
As mentioned in the Usage docs, you can override these defaults with either a maximum integration time (using an end-time:
field) or a larger number of steps (max-steps:
, beyond the default of 10000). This would be needed for each autoignition condition with this issue.
yeah, really loong on cantera, that's why I want to reduce it. my cantera takes 16000 steps to get the IDT thank you, I will try that again
It works! setting max-steps: 18000
Hi, @shenghuiqin. I am also reducing a big mechanism right now and I meet the same situation as you. Where did you put max-steps? We should specify the max-steps at each of -kind block or we can set it at the beginning of the input file? Thank you!
Hi, @shenghuiqin. I am also reducing a big mechanism right now and I meet the same situation as you. Where did you put max-steps? We should specify the max-steps at each of -kind block or we can set it at the beginning of the input file? Thank you! hi, AH. Attached is my reduction_input.yaml file, at bottom of each kind set, you can specify max-steps. hope this helps.
model: 9.22blend4_toluene.cti targets: - Toluene(1) - C7H16(37) - O2(2)(38) retained-species: - N2(35) method: DRGEP error: 10.0 sensitivity-analysis: False autoignition-conditions: - kind: constant volume pressure: 20.0 temperature: 700.0 reactants: C7H10(705): 1 C7H16(37): 1 O2(2)(38): 21 max-steps: 25000
kind: constant volume pressure: 20.0 temperature: 800.0 reactants: C7H10(705): 1 C7H16(37): 1 O2(2)(38): 21 max-steps: 25000
kind: constant volume pressure: 20.0 temperature: 900.0 reactants: C7H10(705): 1 C7H16(37): 1 O2(2)(38): 21 max-steps: 25000
Thank you so much!! @shenghuiqin
Hi, I was trying to reduce a big model
and got the Runtime error:
need help.