How do I run mapFields in parallel for OpenFOAM 2.3.0?
Title
Question
I am using rhoSimpleFoam to simulate a nozzle jet flow.
But as I increase grid resolution, mapFields takes more and more time. So how do I run mapFields in parallel on 8 processors?
I tried the following command :
mpirun -np 8 mapFields <mySourcedirectory> -parallel
but it just gives an error.
But as I increase grid resolution, mapFields takes more and more time. So how do I run mapFields in parallel on 8 processors?
I tried the following command :
mpirun -np 8 mapFields <mySourcedirectory> -parallel
but it just gives an error.
OpenFOAM General
Answers:
HI Vanihba,
What is the error that you get. We can answer it in a much better way if you tell us the error.
Also did you run decomposePar to decompose the geometry before running it in parallel.
You could try running this command as well : mpirun -np 8 mapFields sourceCase -parallel
Thanks,
Rahul Joshi
What is the error that you get. We can answer it in a much better way if you tell us the error.
Also did you run decomposePar to decompose the geometry before running it in parallel.
You could try running this command as well : mpirun -np 8 mapFields sourceCase -parallel
Thanks,
Rahul Joshi
Hi Vanihba,
We will get back to you as soon as possible. Can you tell us the commands that you have used from the beginning for this case.
Thanks,
Rahul Joshi
We will get back to you as soon as possible. Can you tell us the commands that you have used from the beginning for this case.
Thanks,
Rahul Joshi
These are the steps and commands I follow and run :
1) First create the case directory with constant and system files. Copy the gmsh created mesh file into the folder.
2) Run gmshToFoam to create polyMesh directory in the constant folder. Then createPatch to create a new polyMesh directory. This I copy into the constant folder and delete the original Polymesh folder.
1) First create the case directory with constant and system files. Copy the gmsh created mesh file into the folder.
2) Run gmshToFoam to create polyMesh directory in the constant folder. Then createPatch to create a new polyMesh directory. This I copy into the constant folder and delete the original Polymesh folder.
3) Then, modify the boundary file in the polyMesh directory, to specify the type of the boundary patches.
4) Use decomposePar.
5) Then run mapFields using an old source directory having the same constant and system files, except the polyMesh, of course. (Here I want to run it in parallel).So command : mpirun -np 8 mapFields -consistent <source> -parallel -sourceTime latestTime
6) Since 5 failed, I just run mapFields not in parallel, which takes a lot of time, and thus the 0 directory is created. I modify each file in it to set the boundary field value appropriately.
7) Use decomposePar.
8) Now I just run the case using mpirun -np 8 rhoSimpleFoam -parallel >log.This runs perfectly fine.
4) Use decomposePar.
5) Then run mapFields using an old source directory having the same constant and system files, except the polyMesh, of course. (Here I want to run it in parallel).So command : mpirun -np 8 mapFields -consistent <source> -parallel -sourceTime latestTime
6) Since 5 failed, I just run mapFields not in parallel, which takes a lot of time, and thus the 0 directory is created. I modify each file in it to set the boundary field value appropriately.
7) Use decomposePar.
8) Now I just run the case using mpirun -np 8 rhoSimpleFoam -parallel >log.This runs perfectly fine.
Login to add comment
This is what I get :
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
</font>
Login to add comment