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

Group/Merge boundary faces

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

Like Tree1Likes
  • 1 Post By aljazari

Reply
 
LinkBack Thread Tools Display Modes
Old   October 29, 2012, 12:03
Default Group/Merge boundary faces
  #1
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 4
Koga is on a distinguished road
I have imported a very large model of about 2mio cells and 1k boundary faces.
Most of the boundary faces have the same boundary condition, so I am looking for a method to group or merge some boundary faces. So that I don't have to write down the boundary condition for each of the 1k boundary faces.
Is there a command to group or to merge boundary faces?
Koga is offline   Reply With Quote

Old   October 29, 2012, 18:02
Default
  #2
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 4
Koga is on a distinguished road
Sorry, I want to merge the patches, not the boundary faces.

For example:

I want to write something like

Code:
patch1, patch2
      {
          type            fixedValue;
          value           uniform 1;
      }
instead of

Code:
patch1
      {
          type            fixedValue;
          value           uniform 1;
      }

patch2
      {
          type            fixedValue;
          value           uniform 1;
      }
Koga is offline   Reply With Quote

Old   November 13, 2012, 14:58
Default
  #3
New Member
 
Abdulhaq
Join Date: Oct 2012
Posts: 24
Rep Power: 4
aljazari is on a distinguished road
The utility createPatch will do this for you.

Run the command with the help flag to get more info.

Code:
createPatch -help
A sample of a createPatch dictionary is available if you search the OpenFOAM folder. I have uploaded this sample but it is edited to satisfy my condition. Edit it as you wish although I might have deleted some of the useful comments in the original sample dictionary.

A list of other utilities for mesh manipulation and other 'features' can be found here:
http://www.openfoam.com/features/mesh-manipulation.php

I hope this helps.

createPatchDict.txt
Koga likes this.
aljazari 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
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
Radiation interface hinca CFX 15 January 26, 2014 18:11
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 1 June 7, 2012 13:39
Boundary conditions on internal faces CaroVandame OpenFOAM 0 August 2, 2010 13:56
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 23:33.