|
[Sponsors] |
October 16, 2007, 08:21 |
Limitation in grid size
|
#1 |
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.
|
|
October 16, 2007, 11:35 |
Re: Limitation in grid size
|
#2 |
Guest
Posts: n/a
|
Do you use static or dynamic allocation. If you are using static memory allocation then change it to dynamic allocation.
|
|
October 16, 2007, 12:02 |
Re: Limitation in grid size
|
#3 |
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 |
|
October 19, 2007, 06:04 |
Re: Limitation in grid size
|
#4 |
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.
|
|
October 19, 2007, 09:55 |
Re: Limitation in grid size
|
#5 |
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.
|
|
October 20, 2007, 10:01 |
Re: Limitation in grid size
|
#6 |
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. |
|
November 18, 2007, 01:16 |
Re: Limitation in grid size
|
#7 |
Guest
Posts: n/a
|
Test
|
|
|
|
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 |