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

Grid size

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 1999, 22:46
Default Grid size
  #1
Aldrin Wong
Guest
 
Posts: n/a
Hi,

I have a question. I've been using a multigrid Euler CFD code for say wing alone studies. Say for example that the wing is approximately 100 inches long and the smallest level of multigrid used is about 1 inch. This is sufficient to resolve the flow on the wing.

If I add a store (under the wing) of approximately 10 inches, then based on the wing analogy, I would need a grid of 0.1 inch in order to resolve the flow ! Is this correct ?

If so, the number of multigrid levels & number of grids would exceed the limit for practicality, especially when deadlines are due . Does anyone have a better way of doing this ?

Cheers Aldrin
  Reply With Quote

Old   June 21, 1999, 03:35
Default Re: Grid size
  #2
John C. Chien
Guest
 
Posts: n/a
(1). Yes, if you try to use the fine mesh everywhere. The mesh will be 10x10x10 times larger. (2). But, if you use the fine mesh only in the region where the resolution is needed, then you can still use coarse mesh in the rest of the flow field. In this case, you can use multi-block approach.
  Reply With Quote

Old   June 21, 1999, 11:24
Default Re: Grid size and Multigrid
  #3
Patrick Godon
Guest
 
Posts: n/a
In the first case your fine grid has a hundred points, while in the second it has a thousands. Multigrids are used for that kind of problems where the number of grid points is indeed very large. A hundred points problem does not need multigrid in that sens, but a thousand point problem does. If 1000 is too much CPU demanding, then you should try to parallelize the code. Multigrid are very easy to make parallel and you could easily gain a factor of 10-50 in speed (depending on the implementation and on the number of processors available). The parallelization can even be made easier with package like MPI, where subroutines can be called to make all the 'hard' work.

PG.
  Reply With Quote

Old   June 21, 1999, 23:18
Default Re: Grid size and Multigrid and Parallel
  #4
Aldrin Wong
Guest
 
Posts: n/a
Thanks Pat.

As an alternative to MPI, what about using say, HPF (High Performance Fortran) whereby the compiler automatically parallelizes the code for you ?

If I'm not wrong, HPF works only in shared memory systems. Does anyone here have experience with HPF ?

What are the pros and cons of using HPF vs MPI ?

Cheers Aldrin
  Reply With Quote

Old   June 22, 1999, 11:05
Default Re: Grid size and Multigrid and Parallel
  #5
Patrick Godon
Guest
 
Posts: n/a
When you use the option of the Fortran compiler to parallelize the code, the efficiency reached is limited. In the case I tested of a multigrid I got an improvement in CPU of about 10, just by using the compiling option. Of course this is also grid-size dependent and the number of processors is also a function (also the machines and compilers I used several years ago might have been already replaced by better ones).

While making the same code parallel using MPI I got another factor of a few (so a few 10s all in all, say a factor of 40 or so, using 64 processors).

I guess it would be a good start to just use the compiling option of Fortran to make the run parallel. Then vary the number of processors (increasing it) untill you get the maximum efficiency (too much processors increases the communication time and the efficiency decreases). Check that for different fine-grid size, since it is certainly size dependent. This should be fairly easy and straigthforward to do. Then only you might want to try MPI, if this does not help.

Concerning the shared memory, I guess you're right.

Cheers, Patrick.

  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
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
grid size jay Siemens 6 September 5, 2008 06:00
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
increasing grid size kcg Siemens 5 April 8, 2007 19:26
Grid size and combustion simulation versi Main CFD Forum 4 February 16, 2004 07:42


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