|
[Sponsors] |
March 26, 2019, 00:31 |
snappyHexMesh
|
#1 |
Member
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8 |
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 |
|
March 26, 2019, 01:27 |
|
#2 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8 |
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.
|
|
March 26, 2019, 08:49 |
|
#3 | |
Member
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8 |
Quote:
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 |
||
March 26, 2019, 09:02 |
|
#4 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8 |
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. |
|
March 26, 2019, 09:37 |
|
#5 | |
Member
shima
Join Date: Feb 2018
Posts: 58
Rep Power: 8 |
Quote:
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. |
||
March 26, 2019, 09:50 |
|
#6 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 8 |
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.
|
|
March 1, 2021, 15:38 |
snappyHexMesh -parallel does not write the time folder
|
#7 |
Member
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5 |
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 |
|
|
|
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 |