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

Limitation in grid size

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2007, 08:21
Default Limitation in grid size
  #1
Omkar
Guest
 
Posts: n/a
Hi I am working on solutions of navier stokes equation for two dimensional domain. My programs crashes above grid size of 120*120. I am using a 32 bit processor and the dev C compiler from bloodshed.Is it the compiler problem or do I need to go for a higher config. hardware? Thanks in advance.
  Reply With Quote

Old   October 16, 2007, 11:35
Default Re: Limitation in grid size
  #2
Harish
Guest
 
Posts: n/a
Do you use static or dynamic allocation. If you are using static memory allocation then change it to dynamic allocation.
  Reply With Quote

Old   October 16, 2007, 12:02
Default Re: Limitation in grid size
  #3
emcas
Guest
 
Posts: n/a
if you pass the step of compilation means that you no have problem in compilation, sometimes if your configuration is big, your program crashes in low memory. if you work with FV, you have to take attention on CFL nomber,you must to work sometimes with small CFL

EMCAS
  Reply With Quote

Old   October 19, 2007, 06:04
Default Re: Limitation in grid size
  #4
Omkar
Guest
 
Posts: n/a
The program passes the compilation step but then it crashes as soon as I run it.I think the code is not wrong because the same code works for grid sizes below 120 by 120.The criterion for time step has also been satisfied (for both convection and diffusion cases).What exactly is the cause for crashing of program? In all there are 34 such two dimensional arrays.

  Reply With Quote

Old   October 19, 2007, 09:55
Default Re: Limitation in grid size
  #5
ag
Guest
 
Posts: n/a
There are a number of reasons - just because the code runs for grids below 120x120 doesn't mean that the code is error free. You could have an array dimensioned improperly and the error doesn't show up until you increase the grid size. You could be trying to allocate too much space off the stack and running into a stack size limitation. There is no single cause. You need to put in some print statements and figure out exactly where in the code the error is occurring.
  Reply With Quote

Old   October 20, 2007, 10:01
Default Re: Limitation in grid size
  #6
Omkar
Guest
 
Posts: n/a
Finally I found the solution...But somebody please explain me the reason... The program worked even for larger grid size when I declared all the variables globally outside the main function.But when I declare them inside the main function the program works well only upto 120*120.

Thanks to all for all the suggestions.
  Reply With Quote

Old   November 18, 2007, 01:16
Default Re: Limitation in grid size
  #7
Rohit
Guest
 
Posts: n/a
Test
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
grid size in LES michael Siemens 0 December 27, 2006 00:02
Grid size and combustion simulation versi Main CFD Forum 4 February 16, 2004 07:42
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 06:59


All times are GMT -4. The time now is 04:33.