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

explicit CFD solver and multigrid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2000, 06:14
Default explicit CFD solver and multigrid
  #1
John Buckley
Guest
 
Posts: n/a
Hi,

I have been working on a 2-D explicit CFD code, based on Jameson's 4 stage Runge-Kutta technique, for almost 3 years now. Our main reason for this work is to model the flow of wet steam through turbines. Recently we decided to try using a multigrid method to improve the convergence rate. I have successfully implemented a 1D multigrid code (using the same algorithms as the 2D code) and get an improvement in convergence of between 10 and 40 times. However the 2D code has been more of a challenge. I believe that the problems are due to the solid boundaries interfering with the multigrid process. One solution would be to freeze the solid boundary variables at the fine grid values on the coarser levels.

Does anyone have any advice or experience to offer in this area?

Thanks

John Buckley
  Reply With Quote

Old   March 1, 2000, 13:11
Default Re: explicit CFD solver and multigrid
  #2
Patrick Godon
Guest
 
Posts: n/a
One of the difference between 1D and 2D multigrid is in the relaxation process. In 2D the relaxation has to be carried out like on a chess board, once relaxing the white then the blacks, etc... Usually, when one does not follow this process, the convergence is very poor.

If you think the problem is due to boundary conditions, then changing the boundary conditions should lead to a change in the convergence, and this can checked easily. If you do have solid boundaries, then there the residue should always be zero and you should not really solve for these points.

PG
  Reply With Quote

Old   March 4, 2000, 20:04
Default Re: explicit CFD solver and multigrid
  #3
Bob Anderson
Guest
 
Posts: n/a
How closely are you following Jameson's work? Are you using smoothing on the coarser meshes? Usually far field boundary conditions can be a trouble spot for a multigrid algorithm, but solid walls should be ok. A little more detail on exactly what you've implemented might be helpful.

Bob
  Reply With Quote

Old   March 7, 2000, 06:42
Default Re: explicit CFD solver and multigrid
  #4
John Buckley
Guest
 
Posts: n/a
Hi,

Bob, you requested some more details so here goes;

The code is currently solving the 2D Euler equations for internal flow through steam turbine blades. The mesh we are using is a primitive sheared 'H'-mesh. Inlet and outlet boundary conditions are specified by fixing the appropriate flow variables according to the law of characteristics. The wall boundary conditions are a mixture of periodic and solid wall boundary conditions. At the solid wall the only condition is that no flux is allowed through the sold boundary and since we are solving for the Euler equations slip is allowed. Pressure is extrapolated from the interior of the flow to allow the calculation of fluxes in cells next to the boundary. Which reminds me we're using a cell-vertex scheme.

We are using a 4-stage Runge-Kutta time-integration with smoothing of the residuals at all levels. The residual smoothing is performed by inversion of the tridiagonal matrix formed by the eqn (1-epsx*delta)(1-epsy*delta)R*=R where delta is a second order difference operator and R* is the smoothed residual. Artificial viscosity is based on Jameson's recipie and is a mixture of 2nd and 4th order terms with a pressure switch for shocks.

The multigrid process uses a simple V cycle using the same equations, residual smoothing, artificial viscosity and boundary conditions on all the levels (except for the inlet/outlet boundaries where the variables are fixed at the fine grid values for all levels). Transfer of the flow variables to the lower levels is by direct injection, whilst the residuals are transfered using half-weighting. Bi-linear interpolation is used to transfer the changes in the solution back up to the fine levels.

That's about it really. Currently the code converges on two levels but only very slowly (no faster than with one level only).

John Buckley
  Reply With Quote

Old   March 7, 2000, 14:35
Default Re: explicit CFD solver and multigrid
  #5
Bob Anderson
Guest
 
Posts: n/a
John, thanks for the detail. Since I don't know what steps you've taken, forgive me if the following seems to obvious. If you don't already have a factor which weights the collected residuals, I'd insert one and see how the code behaves at values less than 1. For a sanity check you can set it to zero and make sure you're getting the single grid result. Unfortunately multigrid does not perform nearly as well for internal flows as it does for external flows like airfoils (although it is still definitely an improvement). Scaling back the collected residuals is one of the first things I do when I run into apparent multigrid troubles.

Btw, a simple first order dissipation is usually the best choice for the coarse grids, rather than a full blown high resolution scheme. It wasn't clear which type you were using from your description.
  Reply With Quote

Old   March 8, 2000, 05:00
Default Re: explicit CFD solver and multigrid
  #6
li yuan
Guest
 
Posts: n/a
The slow convergence of a MG method may be due to boundary BC treatment in coarse levels and underrelaxation of restricted residual. If BC variables on coarse levels are just those transfered from the finest level, or the restricted residual is heavily under relaxed, the convergence of MG will be slower than a single grid method. Residual not containing dt(time step)needs underrelaxtion while that containing dt may be relaxed to speed up convergence if you use CFL number to define local dt.

rgds ly
  Reply With Quote

Reply


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
Multigrid with SIMPLE Navier-Stokes Solver tyson Main CFD Forum 1 June 12, 2011 02:09
questions concerning solver and multigrid methodes youradvice Main CFD Forum 1 August 6, 2007 15:27
multigrid solver in stretched/nonuniform grids? Lewis Main CFD Forum 3 September 26, 2003 11:26
Coupled solver and multigrid Hong Main CFD Forum 0 September 11, 2000 09:05
PC vs. Workstation Tim Franke Main CFD Forum 5 September 29, 1999 15:01


All times are GMT -4. The time now is 17:39.