Parallelized dnsFoam (how do I do forcing?)
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:
mpirun -np 2 dnsFoam -parallel
The specific error I encounter is:
 --> FOAM FATAL ERROR:
 calculated number of cells is incorrect
 From functino Kmesh::Kmesh(const fvMesh & mesh)
 in file Kmesh/Kmesh.C at line 84.
So it appears this forcing scheme needs the whole domain (and not just a portion of it) to operate. Does anyone have any ideas?
Cannot figure out parallel processing
I am trying to run a dnsFoam job locally on a multiprocessor machine. My grid is very simple. here it is:
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!!!!
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:
|All times are GMT -4. The time now is 09:33.|