I am trying to run dnsFoam in parallel. This solver works fine in serial, however, once the spatial decomposition of the grid has occurred (that is, once the decomposePar utility has been called), the forcing scheme used in this solver (which makes use of the "randomProcesses" source files, in particular, the member functions of fft class), causes the solver to crash. I employed the following sequence of commands:

I'm trying to run on 2 processors... my decomposeParDict is simple, 2 subdomains in the y-direction because i'm trying to simulate M=.7 turbulent flow over a 2d flat plate. I keep getting this error when I try to run "mpirun -np 2 dnsFoam -parallel"

FOAM FATAL ERROR: calculated number of cells is incorrect

I have read other posts on the forums but I guess I am just not understanding the solution. Can someone please break it down for me? :confused: thank you in advance!!!!

wyldckat

October 18, 2012 15:58

Greetings to both of you and welcome to the forum!

My apologies for moving openfoamnoob's post to this thread, but it felt like this will help you both:

In a quick search, I found this:

Quote:

Originally Posted by NorbertB
(Post 266152)

However I red on this forum (do not find out the link ...) that a parallelization is not possible at present with dnsFoam.
Is there any expert who could come here and give us a definitive answer plz :)

I did a quick test and managed to reproduce the error Steveo got. Since you two are interested in this more than I'll ever be, I suggest you guys report this here: http://openfoam.org/bugs/