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

[snappyHexMesh] Run snappyHexMesh steps (castellated, snap, addlayer) separately

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2018, 16:22
Default Run snappyHexMesh steps (castellated, snap, addlayer) separately
  #1
Glc
New Member
 
Join Date: Apr 2018
Posts: 3
Rep Power: 8
Glc is on a distinguished road
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
Glc is offline   Reply With Quote

Old   August 13, 2018, 02:34
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
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.
gabrielfelix likes this.
simrego is offline   Reply With Quote

Old   August 13, 2018, 04:32
Default
  #3
Glc
New Member
 
Join Date: Apr 2018
Posts: 3
Rep Power: 8
Glc is on a distinguished road
Thank you very much simrego. I'm going to try asap your suggestions. I'll post the results.

Last edited by Glc; August 13, 2018 at 06:14.
Glc is offline   Reply With Quote

Old   August 13, 2018, 06:13
Default
  #4
Glc
New Member
 
Join Date: Apr 2018
Posts: 3
Rep Power: 8
Glc is on a distinguished road
Quote:
Originally Posted by simrego View Post
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
Glc is offline   Reply With Quote

Old   August 13, 2018, 06:31
Default
  #5
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
You're welcome!
simrego is offline   Reply With Quote

Old   April 7, 2020, 10:53
Default
  #6
New Member
 
Youjiang Wang
Join Date: Apr 2015
Location: Hamburg
Posts: 22
Rep Power: 11
wyj216 is on a distinguished road
Quote:
Originally Posted by simrego View Post
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;".
wyj216 is offline   Reply With Quote

Old   October 8, 2021, 02:50
Default
  #7
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 79
Rep Power: 6
2538sukham is on a distinguished road
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??
2538sukham is offline   Reply With Quote

Reply

Tags
snappy hex mesh


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
[snappyHexMesh] How to run snappyHexMesh in parallel? klausb OpenFOAM Meshing & Mesh Conversion 2 August 4, 2022 04:51
[snappyHexMesh] SnappyHexMesh AddLayer Control rdrr84 OpenFOAM Meshing & Mesh Conversion 28 May 30, 2014 05:32
[snappyHexMesh] snappyHexMesh parallel run error dhruv OpenFOAM Meshing & Mesh Conversion 2 February 16, 2012 04:34
SnappyHexMesh OF-1.6-ext crashes on a parallel run norman1981 OpenFOAM Bugs 5 December 7, 2011 12:48
Working directory via command line Luiz CFX 4 March 6, 2011 20:02


All times are GMT -4. The time now is 23:58.