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

Group/Merge boundary faces

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aljazari

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2012, 12:03
Default Group/Merge boundary faces
  #1
New Member
 
Join Date: Oct 2012
Posts: 9
Rep Power: 14
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: 14
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: 27
Rep Power: 14
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


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 06:29
Radiation interface hinca CFX 15 January 26, 2014 18:11
Boundary conditions on internal faces CaroVandame OpenFOAM 0 August 2, 2010 14:56
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 22:07.