CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   topoSet simpleFoam parallelized run error (https://www.cfd-online.com/Forums/openfoam-pre-processing/113899-toposet-simplefoam-parallelized-run-error.html)

HakikiCanakkaleli February 28, 2013 13:20

topoSet simpleFoam parallelized run error
 
Hi,

There is a parallel run issue in one of my cases in which I suspect that I have done something wrong with topoSetDict.

=== 1 ===

checkMesh.log
fvSchemes
fvSolution

In my opinion, the setting is OK.

=== 2 ===

I execute the above commands respectively:

Code:

blockMesh
topoSet
decomposePar
mpirun -np 2 simpleFoam -parallel

=== 3 ===

controlDict
topoSetDict

These are the system documents of the case.

=== 4 ===

I obtain the following error:

Error_file

In short:

Code:

[0] --> FOAM FATAL ERROR:
[0] Cannot find file "" in directory "polyMesh/sets" in times 0 down to constant
[0]
[0]    From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
[0]    in file db/Time/findInstance.C at line 140.
[0]
FOAM parallel run exiting

=== 5 ===

I have found some other forum pages which consider the same error message in a slightly different context. Therefore, I somehow couldn't adapt the given answers to my case.

I appreciate any help.

Many thanks in advance.

wyldckat March 2, 2013 08:04

Greetings HakikiCanakkaleli,

The problem is that the "sets" aren't decomposed as well. Try running topoSet in parallel:
Code:

blockMesh
decomposePar
mpirun -np 2 topoSet -parallel
mpirun -np 2 simpleFoam -parallel

Best regards,
Bruno

HakikiCanakkaleli March 2, 2013 08:41

Dear wyldckat,

Thanks a lot for taking your time and explain it to me. It perfectly works well now.

Kind regards.

hconel October 5, 2018 06:42

Quote:

Originally Posted by wyldckat (Post 411027)
Greetings HakikiCanakkaleli,

The problem is that the "sets" aren't decomposed as well. Try running topoSet in parallel:
Code:

blockMesh
decomposePar
mpirun -np 2 topoSet -parallel
mpirun -np 2 simpleFoam -parallel

Best regards,
Bruno

Hi wyldckat,
What if I want to run snappyHexMesh in parallel (before topoSet and after decomposition, without creating new time directories) in your script?
Thanks

Yann October 5, 2018 07:44

Quote:

Originally Posted by hconel (Post 708965)
Hi wyldckat,
What if I want to run snappyHexMesh in parallel (before topoSet and after decomposition, without creating new time directories) in your script?
Thanks

Run the exact same thing, but with :
Code:

mpirun -np 2 snappyHexMesh -overwrite -parallel
Between decomposePar and topoSet. The -overwrite option allows to overwrite files instead of creating time directories for the different meshing steps (1, 2, 3 for castellated, snap and layer meshes.)

hconel October 5, 2018 10:52

Quote:

Originally Posted by Yann (Post 708978)
Run the exact same thing, but with :
Code:

mpirun -np 2 snappyHexMesh -overwrite -parallel
Between decomposePar and topoSet. The -overwrite option allows to overwrite files instead of creating time directories for the different meshing steps (1, 2, 3 for castellated, snap and layer meshes.)

That is exactly what I was looking for, my problem was snappyHexMesh creating time directories. Thanks so much!


All times are GMT -4. The time now is 17:11.