|
[Sponsors] |
March 17, 2013, 20:27 |
snappyHexMesh and renaming boundary patches
|
#1 |
Member
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13 |
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 |
|
June 4, 2013, 11:15 |
|
#2 |
Disabled
Join Date: May 2013
Posts: 6
Rep Power: 13 |
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...
|
|
June 4, 2013, 12:35 |
|
#3 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
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 cutter |
|
June 4, 2013, 12:43 |
|
#4 |
Member
Amir Abbas Aliabadi
Join Date: Mar 2013
Posts: 33
Rep Power: 13 |
Hello Cutter,
This is a nice approach, and thanks for letting know. Regards, Amir Abbas Aliabadi |
|
June 5, 2013, 04:56 |
|
#5 |
Disabled
Join Date: May 2013
Posts: 6
Rep Power: 13 |
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. |
|
June 5, 2013, 05:27 |
|
#6 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
We're no fortune tellers. ;-) Could you please provide some more information, preferably a minimal working example?!
cutter |
|
June 5, 2013, 05:42 |
|
#7 |
Disabled
Join Date: May 2013
Posts: 6
Rep Power: 13 |
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!
|
|
Tags |
names, patch, snappyhexmesh |
|
|