CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Solver runs parallel on 3 cores but not on 4 or more cores

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2013, 05:55
Default Solver runs parallel on 3 cores but not on 4 or more cores
  #1
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Hi all,

I am trying to solve a differential equation and I have my own solver with my own boundary conditions. Solver works fine when run serially.

Now I want to run it in parallel. There problem is, I can divide my domain on only 3 processors. When I try to run it on 4 processors or more, I run into floating point exception. But when I remove my custom boundary condition and run with a boundary condition say zeroGradient, solver works fine on any number of processors. Clearly, problem is with boundary conditions.

Question is: why using custom boundary condition is causing program to fail beyond 3 processors?

P.S. I do not have any interpolation term or any term which will cause a floating point exception in boundary condition. Yet, I encounter floating point exception.

Thanks,

Hrushi
hrushi.397 is offline   Reply With Quote

Old   October 21, 2013, 06:15
Default
  #2
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Anyone? Any help?
hrushi.397 is offline   Reply With Quote

Old   October 21, 2013, 07:15
Default
  #3
Member
 
Join Date: Nov 2012
Posts: 83
Rep Power: 13
Henning86 is on a distinguished road
it is possible that with 3 processor the boundary patch isn't divided and is completely in one "processor mesh".

With 4 processor your patch is splitted and you get the error.


i've done some programming in parallel it is possible to share some code?
Henning86 is offline   Reply With Quote

Old   October 21, 2013, 08:03
Default
  #4
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Hi Henning,

Thank you for the reply. I tried dividing my domain in four subdomains such that the boundary in question lies only in single computational domain. However, I am still getting the same error.

No success yet. : (

I cannot share entire code but I have shared main statement of my boundary condition which I debugged to be the main culprit. Can you/ anyone figure out what is going wrong? As far as I know, there is no variable here that will cause the boundary condition to give floating point exception.

this->gradient()= -(Foam::cos(thetar_))*(scalar(1.414213562)/(scalar(2)*epsilon_))*(this->patchInternalField()*this->patchInternalField()-scalar(1));

Thanks and regards,

Hrushi
hrushi.397 is offline   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
2D pseudo-spectral (Chebyshev) parallel Helmholtz solver package magicsquirrel Main CFD Forum 0 July 13, 2011 10:45
Divergence detected when using parallel solver Phil FLUENT 3 May 9, 2008 08:17
Parallel solver, divergence Phil FLUENT 0 April 30, 2008 09:42
Which parallel solver is most suitable for my app? zonexo Main CFD Forum 1 November 17, 2006 09:46
direct parallel solver sylvain Main CFD Forum 2 June 25, 2001 07:56


All times are GMT -4. The time now is 01:28.