CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problems with adding layers using snappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Stan Zhou

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2020, 23:26
Default Problems with adding layers using snappyHexMesh
  #1
New Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 11
Rep Power: 3
Stan Zhou is on a distinguished road
Hi, everyone!

I want to add layers on a structure in my simulation using snappyHexMesh but I encountered a problem as follow.



https://sites.google.com/site/snappy...-relativeSizes


According to the website above, in order to add layers, the patches on which attach the layers have to be specified. For example,


// Per final patch (so not geometry!) the layer information
layers
{
my_first_subregion
{
nSurfaceLayers 4;
}
}



My question is how to obtain the names of the patches in the stl file?


Thanks for your help!
Stan Zhou is offline   Reply With Quote

Old   November 18, 2020, 16:35
Default
  #2
Member
 
Eren
Join Date: Aug 2018
Posts: 59
Rep Power: 5
ErenC is on a distinguished road
Question actually is how are you going to give BC to a patch without knowing its name? So I really haven't understood your question. You need to give names to the patches before using them in "any" mesh software.
ErenC is offline   Reply With Quote

Old   November 19, 2020, 23:06
Default
  #3
New Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 11
Rep Power: 3
Stan Zhou is on a distinguished road
Quote:
Originally Posted by ErenC View Post
Question actually is how are you going to give BC to a patch without knowing its name? So I really haven't understood your question. You need to give names to the patches before using them in "any" mesh software.
Firstly, I used AUTOCAD to create an object on which I want to add layers in the fluid domain. So I generate a stl file of this object and put it in the triSurface folder. However, while adopting snappyHexMesh utility to add layers on my object, the patches on which attach the layers have to be specified. I opened the stl file of my object to find the different patch names of the object, but there are only messy codes.

Thus, my question is how to get the patch names of my object in the stl file?
Stan Zhou is offline   Reply With Quote

Old   November 20, 2020, 04:28
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 173
Rep Power: 12
Yann is on a distinguished road
Hello,


Here is two different solutions:

  1. Run the surfaceCheck utility, it will, among other things, give you the name and size of the different regions contained in your STL file.
  2. Export your STL file in ASCII format, open it with a text editor and search for the lines starting with "solid". It should be followed by the name of the region.

Regards,
Yann
Yann is offline   Reply With Quote

Old   November 22, 2020, 03:17
Default
  #5
New Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 11
Rep Power: 3
Stan Zhou is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,


Here is two different solutions:

  1. Run the surfaceCheck utility, it will, among other things, give you the name and size of the different regions contained in your STL file.
  2. Export your STL file in ASCII format, open it with a text editor and search for the lines starting with "solid". It should be followed by the name of the region.

Regards,
Yann
Thanks for your suggestions! They are exactly what I need.
Yann likes this.
Stan Zhou is offline   Reply With Quote

Reply

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] problem with adding layers duguyoudi OpenFOAM Meshing & Mesh Conversion 6 February 27, 2020 23:24
[snappyHexMesh] Impossible to add layers in SnappyHexMesh knightwalker OpenFOAM Meshing & Mesh Conversion 4 March 27, 2019 18:09
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 09:43
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 08:05
[snappyHexMesh] SnappyHexMesh doesn't succeed in adding several layers eti0123456789 OpenFOAM Meshing & Mesh Conversion 5 April 9, 2013 03:36


All times are GMT -4. The time now is 10:25.