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

snappyHexMesh and renaming boundary patches

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cutter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2013, 20:27
Default snappyHexMesh and renaming boundary patches
  #1
Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13
amir.a.aliabadi is on a distinguished road
Hello Dear FOAMers,

An interesting problem has occurred to me. I generate a geometry assigned with boundary group (patch) names using Salome 650. I then output the STL file and setup a case to run snappyHexMesh for mesh generation. I enclose my geometry in a simple block mesh and then successfully generate and refine the mesh. The problem, however, is that my boundary patches (example window, top, bottom, etc...) are lost as part of this process, so that none of the original patch names appear in constant/polyMesh/boundary.

Do STL files inherently not carry boundary patch names forward? or the problem is somewhere else? How do you keep the boundary patch names when you run snappyHexMesh?

Thank You!
aaa
amir.a.aliabadi is offline   Reply With Quote

Old   June 4, 2013, 11:15
Default
  #2
Disabled
 
Join Date: May 2013
Posts: 6
Rep Power: 13
anon_e is on a distinguished road
I do have the same problem, concerning just a simple pipe geometry. my inlet, outket and wall are lost. At the end the solver can not run...
anon_e is offline   Reply With Quote

Old   June 4, 2013, 12:35
Default
  #3
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
As far as I know the STL file format is handled differently by various mesh tools. Most of them create and read just one solid (a single set of triangles without any metadata like patch names etc.). On the other hand some tools accept multiple solid sections within a single STL file.

So here's what I did:
- create the model in Salome and assign groups
- export all groups/parts/patches separately (select all relevant groups in the tree view) to STL ASCII format
- add patch name in each file (first line, right after the keyword 'solid')
- concatenate all STL files using
Code:
cat patch1.stl patch2.stl ... > final.stl
Any comments and improvements welcome!

cutter
yanxiang likes this.
cutter is offline   Reply With Quote

Old   June 4, 2013, 12:43
Default
  #4
Member
 
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13
amir.a.aliabadi is on a distinguished road
Hello Cutter,
This is a nice approach, and thanks for letting know.
Regards,
Amir Abbas Aliabadi
amir.a.aliabadi is offline   Reply With Quote

Old   June 5, 2013, 04:56
Default
  #5
Disabled
 
Join Date: May 2013
Posts: 6
Rep Power: 13
anon_e is on a distinguished road
Thanks for you reply. I tried to do so, but unfortunately, my boundary file still looks like

1
(
defaultFaces
{
type empty;
nFaces 9600;
startFace 187200;
}
)


a little empty :-) I need to specify Inlet, Outlet etc for further processing. I would like to simulate fluid flow through the pipe.
anon_e is offline   Reply With Quote

Old   June 5, 2013, 05:27
Default
  #6
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
We're no fortune tellers. ;-) Could you please provide some more information, preferably a minimal working example?!

cutter
cutter is offline   Reply With Quote

Old   June 5, 2013, 05:42
Default
  #7
Disabled
 
Join Date: May 2013
Posts: 6
Rep Power: 13
anon_e is on a distinguished road
If you where fortune tellers, please make wheather better :-))) My problem was actually, that I'm friggin blind. Sorry for circumstances. I did not have a look at time constant file "2" after sHM did run . Here, everything was fine. Thanks for help!
anon_e is offline   Reply With Quote

Reply

Tags
names, patch, snappyhexmesh


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



All times are GMT -4. The time now is 04:27.