|
[Sponsors] |
December 18, 2020, 12:52 |
Basic question about iteration process
|
#1 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
This maybe a basic question, but I don't know the answer.
Does it matter which cells we select and solve first in an explicit solver? Or the order in which we solve them? Say, a 2D structured grid is present (square domain), and we want to solve the compressible Euler equations in the cell volumes using an explicit solver. We're not considering any performance penalties due to cache misses, and accessing any random index in the grid, is instantaneous. So, if the flow is from right to left, will it matter if I iterate through the grid from left to right, or top to bottom, or in a random order ( in a worst case scenario )? Thanks |
|
December 18, 2020, 14:01 |
|
#2 |
Senior Member
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14 |
It depends. If your explicit solver has to solve a large equation system (Poisson equation) in an iterative sense then the order might matter. Otherwise not, at least if you neglect roundofferrors.
|
|
December 18, 2020, 14:07 |
|
#3 | |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
Quote:
I do have a FDM based poisson solver for a structured grid. How would the order matter there? Unfortunately, that is not clear to me. Regarding the Euler solver : my intuition also says that the order won't matter in getting an accurate solution, since we don't care much about the order in which unstructured grids are accessed. Thanks |
||
December 18, 2020, 14:26 |
|
#4 |
Senior Member
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14 |
For example if the solution of the Poisson equation is based on a Gauss-Seidel or SOR algorithm.
Here the solution depends on the current iteration values N and the next iteration values N+1 calculated in the same iteration step. Such algorithms are non-linear meaning that a different ordering results in a different convergence. |
|
December 18, 2020, 14:36 |
|
#5 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
Thanks for the explanation. Now it makes perfect sense.
|
|
December 18, 2020, 15:11 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
what kind of iterative solver are you using for compressible Euler flow and explicit time-marching method? |
||
December 18, 2020, 15:37 |
|
#7 | |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
Quote:
Cell centred FVM scheme for discretization, Van-Leer flux and Roe flux with entropy correction for flux calculation and solving the Riemann problem, and an m-stage time stepping scheme for the explicit time marching iterations. The grid will be a block structured mesh which will be adaptively refined using more block structured grids. Similar to AMReX ( https://amrex-codes.github.io/amrex/gallery.html ), but the base structured grid will conform to the body's boundary so that I don't have to use Embedded Boundary Method for the boundaries. Thanks |
||
December 20, 2020, 22:53 |
|
#8 |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 17 |
Ordering doesn't matter. Both explicit and implicit equations doesn't have any spatial preference. Only the flux calculation depends on direction and that too doesn't have any spatial preference.
|
|
Tags |
iteration process, iteration speed |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How To Stop The Iteration Process? | sefde | FLUENT | 9 | November 19, 2023 04:02 |
the f1 process couldn't be started after 2000 iteration??? | Bmalgil | FLUENT | 0 | May 7, 2018 16:57 |
The fl process could not be started because of UDF | majid_kamyab | Fluent UDF and Scheme Programming | 6 | December 15, 2015 09:42 |
[Other] very basic question about createPhi.H | feldy77 | OpenFOAM Meshing & Mesh Conversion | 2 | November 22, 2011 09:16 |
[GAMBIT] Basic Question - Mesh Quality | SheffieldStudent | ANSYS Meshing & Geometry | 8 | December 15, 2010 18:24 |