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

Collecting faces with setSet

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 15, 2011, 09:30
Default Collecting faces with setSet
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
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
AlmostSurelyRob is offline   Reply With Quote

Old   November 15, 2011, 19:10
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by AlmostSurelyRob View Post
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
Not directly. But you can identify the blocks and then use setSet to create the set of faces that belongs to two blocks (you'll have to play around a bit here)

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)
blockMesh will then generate a cellZone block1 with all the cells in that block
gschaider is offline   Reply With Quote

Old   November 15, 2011, 19:29
Default
  #3
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
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:
User defined labels in blockMeshDict

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!
AlmostSurelyRob is offline   Reply With Quote

Old   November 18, 2011, 10:47
Default
  #4
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
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
AlmostSurelyRob is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37


All times are GMT -4. The time now is 18:26.