CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Basic question about iteration process

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 2 Post By Eifoehn4
  • 3 Post By Eifoehn4
  • 2 Post By duri

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2020, 11:52
Default Basic question about iteration process
  #1
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
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
aerosayan is offline   Reply With Quote

Old   December 18, 2020, 13:01
Default
  #2
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 13
Eifoehn4 is on a distinguished road
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.
aerosayan and aero_head like this.
__________________
Check out my side project:

A multiphysics discontinuous Galerkin framework: Youtube, Gitlab.
Eifoehn4 is offline   Reply With Quote

Old   December 18, 2020, 13:07
Default
  #3
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Quote:
Originally Posted by Eifoehn4 View Post
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.

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
aerosayan is offline   Reply With Quote

Old   December 18, 2020, 13:26
Default
  #4
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 13
Eifoehn4 is on a distinguished road
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.
FMDenaro, aerosayan and aero_head like this.
__________________
Check out my side project:

A multiphysics discontinuous Galerkin framework: Youtube, Gitlab.
Eifoehn4 is offline   Reply With Quote

Old   December 18, 2020, 13:36
Default
  #5
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Thanks for the explanation. Now it makes perfect sense.
aerosayan is offline   Reply With Quote

Old   December 18, 2020, 14:11
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by aerosayan View Post
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



what kind of iterative solver are you using for compressible Euler flow and explicit time-marching method?
FMDenaro is offline   Reply With Quote

Old   December 18, 2020, 14:37
Default
  #7
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
what kind of iterative solver are you using for compressible Euler flow and explicit time-marching method?

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
aerosayan is offline   Reply With Quote

Old   December 20, 2020, 21:53
Default
  #8
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 16
duri is on a distinguished road
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.
aerosayan and aero_head like this.
duri is offline   Reply With Quote

Reply

Tags
iteration process, iteration speed


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Stop The Iteration Process? sefde FLUENT 9 November 19, 2023 03:02
the f1 process couldn't be started after 2000 iteration??? Bmalgil FLUENT 0 May 7, 2018 15:57
The fl process could not be started because of UDF majid_kamyab Fluent UDF and Scheme Programming 6 December 15, 2015 08:42
[Other] very basic question about createPhi.H feldy77 OpenFOAM Meshing & Mesh Conversion 2 November 22, 2011 08:16
[GAMBIT] Basic Question - Mesh Quality SheffieldStudent ANSYS Meshing & Geometry 8 December 15, 2010 17:24


All times are GMT -4. The time now is 03:36.