|
[Sponsors] |
November 15, 2011, 09:30 |
Collecting faces with setSet
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
Dear All,
I am trying to create some baffles in my mesh. I've seen the tutorials and I believe I have a fairly good idea how to do it. The problem is that I can't find the way to create the faceSetZone. Most of the tutorials just use boxToFaces which will not work in my. My baffle is supposed to lie on the faces that are aligned with 4 vertices in blockMeshDict. Is there any way to identify the points or the faces that are located on a boundary of a block in blockMeshDict after blockMesh has been run? I've realised now that I could rotate my mesh and then use boxToFaces to collect the right faces and then rotate back... but is there any easier way? I would be grateful for any hints or comments. Robert |
|
November 15, 2011, 19:10 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
To identify cells you can insert a name (for instance "block1" into the blocks-definitions in blockMeshDict): Code:
hex (0 1 2 3 4 5 6 7) block1 (60 20 1) simpleGrading (1 1 1) |
||
November 15, 2011, 19:29 |
|
#3 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
That's brilliant! This is exactly what I wanted and it will work nicely in my case.
By the way of block identification can I do something similar within blockMeshDict for vertices? I posted this question in this post: http://www.cfd-online.com/Forums/ope...kmeshdict.html But generally this solves the problem. I admit though that I did the the trick with rotation meanwhile and it worked as well, but I'll update it to include this identification method. Thanks! |
|
November 18, 2011, 10:47 |
|
#4 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
If anybody was looking for a solution to a similar problem. The right set of commands that extract the faces from neighbouring block cells is
Code:
faceSet baffleFaces new cellToFace B4 all faceSet baffleFaces subset cellToFace B1 all faceZoneSet baffleFaces new setToFaceZone baffleFaces |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh for internal Flow | vishwa | OpenFOAM Meshing & Mesh Conversion | 24 | June 27, 2016 09:54 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
[snappyHexMesh] external flow with snappyHexMesh | chelvistero | OpenFOAM Meshing & Mesh Conversion | 11 | January 15, 2010 20:43 |
Unaligned accesses on IA64 | andre | OpenFOAM | 5 | June 23, 2008 11:37 |