Hi Wes,
You are correct - it looks like the 1D flows do not have any ability to directly change the max number of time steps, via Matlab.
1. It looks like you *could* get around this, indirectly, using the function
setTimeStep.
| function
setTimeStep(s,
stepsize, steps) |
| % SETTIMESTEP Specify a sequence of time steps. |
| % setTimeStep(s, stepsize, steps) |
| % Vector of number of steps to take before |
| % re-attempting solution of steady-state problem. For |
| % example, steps = [1, 2, 5, 10] would cause one time |
| % step to be taken first the the steady-state |
| % solution attempted. If this failed, two time steps |
% would be taken, etc.
2. *However* the fact that you are not finding a steady-state solution after 500 time steps tells that there is likely some other problem, here. The solver defaults to a Newton algorithm. If this fails to find a solution, time steps are used
to get the state to a more “reasonable” starting guess / one that might be closer to the actual steady state. After the time steps, the Newton solver is re-attempted.
I am not very familiar with the 1D and 0D tools and can’t comment much more beyond this, but there may be underlying problems with Cantera’s 1D functionality.
That said, there is no harm in trying the approach in item 1. Just send an array of steps that has an integer > 500 somewhere in it.
Best,
Steven
——————————————————
Steven C. DeCaluwe, Ph.D | Associate Professor of Mechanical Engineering
COLORADOSCHOOLOFMINES
Brown Building W410B
Golden, CO 80401
Twitter: @CORESresearch
He / Him / His