Hi all,
I have a question on how the refinement of the grid works in Cantera for the 1D solver.
What I understand from the simulation is this.
1. You set a grid of equidistance point.
2. The solver try to solve with these grid points and find a converged solution -> gives initial guess for next iteration
3. Using the initial guess, it compute this weight function which contains information on the temp slope and temp curvature in the temperature profile in the spatial domain for every grid interval
4. Comparing this weighting value against a grid refinement value threshold, this determine where new points will be added. (for each grid interval, this weighting value is calculated, if needed, a point will be added halfway in this grid interval)
5. With the new grid, solver simulation again, find converged solution and calculate the weighting value to see if more points are needed
6. Repeat process until no new points is added. -> process to solve equations with final grid
So my question is, if u start with a pretty fine grid, those extra points at region of low change in T profile will not be remove I guess since from what I can understand, the refinement process only add more grid points but does not remove unnecessary grid points.
Thus, is it advisable to just give a coarse grid at initial guess, and then subsequent once u roughly know where to flame is, u can set a proper grid according to that problem and speed up the calculation process?
Cheers
Alan