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

reconstructing error with snappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 25, 2014, 14:43
Default reconstructing error with snappyHexMesh
  #1
New Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Texas, US
Posts: 29
Rep Power: 3
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, 06:15
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 403
Rep Power: 11
vasava will become famous soon enough
Try snappyHexMesh -parallel -overwrite
vasava is offline   Reply With Quote

Old   March 26, 2014, 15:23
Default
  #3
New Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Texas, US
Posts: 29
Rep Power: 3
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 15:15.
y_jiang is offline   Reply With Quote

Old   March 27, 2014, 04:52
Default
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 403
Rep Power: 11
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, 15:15
Default
  #5
New Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Texas, US
Posts: 29
Rep Power: 3
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Strange Results With snappyHexMesh calebamiles OpenFOAM Running, Solving & CFD 0 August 14, 2011 16:02
stitchMesh and snappyHexMesh gdbaldw OpenFOAM 0 December 23, 2009 02:09
Problem of reconstructing pointVectorFields with parallel mesh motion (1.5.x) LESlie OpenFOAM 0 November 6, 2009 06:07


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