CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] reconstructing error with snappyHexMesh (https://www.cfd-online.com/Forums/openfoam-meshing/132092-reconstructing-error-snappyhexmesh.html)

y_jiang March 25, 2014 13:43

reconstructing error with snappyHexMesh
 
Hi all,

I got an error message when I conducted reconstructPar.
What I did is:

1. run blockMesh
2. run decomposePar (I used 8 processors)
3. run snappyHexMesh -parallel (this created files named 0.01,0.02 and 0.03 in each processor)
4. mpirun --hostfile machines -np 8 mysolver -parallel > log &

The time step of my case i s 0.01 and the writeInterval=100.

I got the following error message when I input reconstructPar :

--> FOAM FATAL IO ERROR:
cannot find file
file: /home/myname/OpenFOAM/myname-2.2.0/run/tutorials/mycase/processor0/0.01/polyMesh/pointProcAddressing at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.


Does anybody have any idea on this? Thanks.

vasava March 26, 2014 05:15

Try snappyHexMesh -parallel -overwrite

y_jiang March 26, 2014 14:23

Hi Paritosh,

Thank you for your reply.
My Allrun file is as follow:
************************************************** ********
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication blockMesh
runApplication decomposePar
runParallel snappyHexMesh 8
runApplication reconstrucParMesh -mergeTol 1e-6 -latestTime
************************************************** *************
Is there any problem of my Allrun script?
It creates a dir named 0.03. The mesh in this dir is ok. Then what should I do? Do I need to copy the polyMesh here to constant dir instead of the original one?
In addition, for my case, I need to run setFields. My question is that do I need to delete all the processor dir and redo decomposePar after I run setFields? Is that possible I could do setFields in parallel? Do you have any suggestion on this? Thank you!

vasava March 27, 2014 03:52

Quote:

Originally Posted by y_jiang (Post 482268)
Is there any problem of my Allrun script?

If checkMesh is not giving you any error then it is alright.

Quote:

Originally Posted by y_jiang (Post 482268)
It creates a dir named 0.03. The mesh in this dir is ok. Then what should I do? Do I need to copy the polyMesh here to constant dir instead of the original one?

Again I suggest you use -overwrite with snappyHexMesh command. This will automatically overwrite the mesh files and you need not worry about any thing.

Quote:

Originally Posted by y_jiang (Post 482268)
My question is that do I need to delete all the processor dir and redo decomposePar after I run setFields?

Yes, you must delete the processor files first and then start again. If there is even a small modification in your mesh it will give you errors in later stage.

Quote:

Originally Posted by y_jiang (Post 482268)
Any possible I could do setFields in parallel?

I am not sure about that.

y_jiang March 27, 2014 14:15

Thank you very much!

Quote:

Originally Posted by vasava (Post 482368)
If checkMesh is not giving you any error then it is alright.



Again I suggest you use -overwrite with snappyHexMesh command. This will automatically overwrite the mesh files and you need not worry about any thing.


Yes, you must delete the processor files first and then start again. If there is even a small modification in your mesh it will give you errors in later stage.


I am not sure about that.



All times are GMT -4. The time now is 07:35.