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

Collecting faces with setSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2011, 08:30
Default Collecting faces with setSet
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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, 18:10
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 18:29
Default
  #3
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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:
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!
AlmostSurelyRob is offline   Reply With Quote

Old   November 18, 2011, 09:47
Default
  #4
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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


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] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37


All times are GMT -4. The time now is 16:31.