CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] reconstructing error with snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2014, 13:43
Default reconstructing error with snappyHexMesh
  #1
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
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.
y_jiang is offline   Reply With Quote

Old   March 26, 2014, 05:15
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Try snappyHexMesh -parallel -overwrite
vasava is offline   Reply With Quote

Old   March 26, 2014, 14:23
Default
  #3
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
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!

Last edited by y_jiang; March 27, 2014 at 14:15.
y_jiang is offline   Reply With Quote

Old   March 27, 2014, 03:52
Default
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Quote:
Originally Posted by y_jiang View Post
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 View Post
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 View Post
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 View Post
Any possible I could do setFields in parallel?
I am not sure about that.
vasava is offline   Reply With Quote

Old   March 27, 2014, 14:15
Default
  #5
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
Thank you very much!

Quote:
Originally Posted by vasava View Post
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.
y_jiang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
ReconstructPar error in reconstructing lagrangian data. senthilathiban OpenFOAM Running, Solving & CFD 1 September 9, 2018 12:57
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 02:54
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36


All times are GMT -4. The time now is 03:36.