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] Run snappyHexMesh steps (castellated, snap, addlayer) separately (https://www.cfd-online.com/Forums/openfoam-meshing/205209-run-snappyhexmesh-steps-castellated-snap-addlayer-separately.html)

Glc August 11, 2018 16:22

Run snappyHexMesh steps (castellated, snap, addlayer) separately
 
Hi everybody,

as the title stats i want to run every snappyHexMesh phase separately in order to use a dict specific for each step. I want to do so because i need to specify three different meshQuality dicts in order to better control the mesh generation process. My problem is that snappyHexMesh seems not to recognize the mesh he has generated before. For instance if i run just the castellated phase (saved in the 0.0001 directory) with his dict and then the snap phase (saved in the 0.0002 directory), the latter will try to snap the blockmesh (saved in the constant directory) instead of the castellated mesh. Does anyone knows how to force snappy to use the correct directory?

Thanks for the patience

simrego August 13, 2018 02:34

Hi!


1. Try with "startTime LatestTime;" in the controldict. I don't know if it works but there is no arg for this in snappy so i think this is the way to do.
2. If not, then just rename the directory to 0 where you wanna start.
3. Or just run snappy with the -overwrite switch so you will have your mesh in the 0 time always.


I'm not sure if 1 and 2 are working, but 3 must be ok.

Glc August 13, 2018 04:32

Thank you very much simrego. I'm going to try asap your suggestions. I'll post the results.

Glc August 13, 2018 06:13

Quote:

Originally Posted by simrego (Post 702398)
Hi!


1. Try with "startTime LatestTime;" in the controldict. I don't know if it works but there is no arg for this in snappy so i think this is the way to do.
2. If not, then just rename the directory to 0 where you wanna start.
3. Or just run snappy with the -overwrite switch so you will have your mesh in the 0 time always.


I'm not sure if 1 and 2 are working, but 3 must be ok.

Solution number 1 works perfectly in serial and in parallel mode. Thanks simrego

simrego August 13, 2018 06:31

You're welcome!

wyj216 April 7, 2020 10:53

Quote:

Originally Posted by simrego (Post 702398)
Hi!


1. Try with "startTime LatestTime;" in the controldict. I don't know if it works but there is no arg for this in snappy so i think this is the way to do.
2. If not, then just rename the directory to 0 where you wanna start.
3. Or just run snappy with the -overwrite switch so you will have your mesh in the 0 time always.


I'm not sure if 1 and 2 are working, but 3 must be ok.

Just let others know, now the solution 1 should be "startFrom latestTime;".

2538sukham October 8, 2021 02:50

In foamExtend 4.1, when we do snappyHexMesh -overwrite, it keeps on asking alpha1 file for each and every time step. From other threads, I came to know that extend versions have issues with sHM. even generating the eMesh by

Quote:

surfaceFeatureExtract -includedAngle 150 constant/triSurface/file.stl constant/polyMesh/file.eMesh
But the file generated is not readable by the sHM of extend version. One work around is to do the meshing in other version and import the mesh. Any other work around??


All times are GMT -4. The time now is 19:50.