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 Members List Search Today's Posts Mark Forums Read

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: 4
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: 371
Rep Power: 8
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.
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: 4
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: 4
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: 371
Rep Power: 8
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: 15
Rep Power: 7
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

Reply

Tags
snappy hex mesh

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[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
[snappyHexMesh] How to run snappyHexMesh in parallel? klausb OpenFOAM Meshing & Mesh Conversion 1 January 17, 2011 03:09


All times are GMT -4. The time now is 14:43.