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

[snappyHexMesh] snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AndreasPe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2019, 00:31
Default snappyHexMesh
  #1
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8
shimakasaei is on a distinguished road
Hi
I am simulating flow over box with olaFaom. I used snappyHexMesh for simulation but I have a problem. I did modify my snappyHexMeshDict according to breakwater tutorial of olaFlow, but when I run the command (snappyHexMesh), it creates 0.001 folder which is not suppose to be made. This folder has polyMesh inside of it and it cause my simulation to be crashed.
When I delete that folder and run 'olaFlow', it runs normally.

Can anyone please help me through solving this?

Best,
Shima
shimakasaei is offline   Reply With Quote

Old   March 26, 2019, 01:27
Default
  #2
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8
AndreasPe is on a distinguished road
If you run snappyHexMesh without the -overwrite option, it will create a new time folder with the newly created mesh. The time-folders name is depending on your timestep that you use in the controlDict. If you run snappyHexMesh with the -overwrite option, it will overwrite the mesh in the constant/polymesh folder with the newly created mesh.
Shane911 likes this.
AndreasPe is offline   Reply With Quote

Old   March 26, 2019, 08:49
Default
  #3
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8
shimakasaei is on a distinguished road
Quote:
Originally Posted by AndreasPe View Post
If you run snappyHexMesh without the -overwrite option, it will create a new time folder with the newly created mesh. The time-folders name is depending on your timestep that you use in the controlDict. If you run snappyHexMesh with the -overwrite option, it will overwrite the mesh in the constant/polymesh folder with the newly created mesh.
Thank you so much.
Now it is solved..,but how should I write this command when I want to run parallel?
When I tried " mpirun -np 32 snappyHexMesh -overwrite -parallel" it shows some error and seemed incorrect..

I will appreciate if you can help
Thanks
shima
shimakasaei is offline   Reply With Quote

Old   March 26, 2019, 09:02
Default
  #4
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8
AndreasPe is on a distinguished road
Please read the rules of the forum: You need to specify your questions and provide more details, so that others can understand your problem. "Some error" is inappropriate and none of us can guess what your problem is.

Running snappyHexMesh in parallel should be explained in some tutorial though. I would recommend a quick google search or using grep in the tutorial folder.
AndreasPe is offline   Reply With Quote

Old   March 26, 2019, 09:37
Default
  #5
Member
 
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8
shimakasaei is on a distinguished road
Quote:
Originally Posted by AndreasPe View Post
Please read the rules of the forum: You need to specify your questions and provide more details, so that others can understand your problem. "Some error" is inappropriate and none of us can guess what your problem is.

Running snappyHexMesh in parallel should be explained in some tutorial though. I would recommend a quick google search or using grep in the tutorial folder.
Thank you for notifying.
The problem is, when I try to run parallel- I know the command for running parallel based on tutorials- it creates 0.001 folder in each processor, and in previous questions, I asked how to solve this issue that you mentioned I have to -overwrite to prevent this. And when it makes this folder, it will stop running while it consider it as time step but it is not and this cause problem for running olaFlow.

I want to solve this and I think I should use "-overwrite" to prevent creating 0.001 folder, I just do not know about the sequence of command line.
shimakasaei is offline   Reply With Quote

Old   March 26, 2019, 09:50
Default
  #6
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8
AndreasPe is on a distinguished road
A way to overcome this might also be to reconstruct the 0.001 folder with "reconstructPar -latestTime" and after that copy the polymesh folder out of the 0.001 folder into "constant" and then delete the 0.001 folder again. This is nothing else but what would be done by the "-overwrite" option. Of course you also need to delete the processor*/0.001 folders.
AndreasPe is offline   Reply With Quote

Old   March 1, 2021, 15:38
Unhappy snappyHexMesh -parallel does not write the time folder
  #7
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5
vava10 is on a distinguished road
Hey everyone,

I am trying to run parallel meshing using mpirun -np 4 snappyHexMesh -parallel -overwrite. But I did not get snapped mesh. So I tried mpirun -np 4 snappyHexMesh -parallel since I wanted to see if the time folders are being formed or not. It is not creating the time folders in the main folder but it is creates time folder in processor folders.
No error is shown while in the terminal while I run this command.

Then I ran reconstructParMesh but I did not get the snapped mesh

I am using version 2012

Can someone help me please.

Kind regards
vava10
vava10 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
[CAD formats] Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Meshing & Mesh Conversion 58 May 13, 2020 06:01
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 02:54
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. jasv OpenFOAM Meshing & Mesh Conversion 4 May 10, 2016 02:55
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? klausb OpenFOAM Meshing & Mesh Conversion 1 March 7, 2015 11:55
[snappyHexMesh] stitchMesh and snappyHexMesh gdbaldw OpenFOAM Meshing & Mesh Conversion 0 December 23, 2009 02:09


All times are GMT -4. The time now is 16:28.