CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Define patches after MirrorMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2013, 11:05
Default Define patches after MirrorMesh
  #1
New Member
 
John Peng
Join Date: Oct 2012
Location: NL
Posts: 7
Rep Power: 13
janepen is on a distinguished road
Hi, I am trying to create a mesh with four identical cylinders in a domain. Then I want to define different patch name for these four cylinders.

I firstly create a cylinder in a quarter domain (1/4), and defined the patch name for this cylinder (namely, 'pile1'). I then mirror twice to get the whole domain with four cylinders inside.

Finally, the patch 'pile1' contains four cylinders, which is not what I want to.
Anyone can help me to solve this problem? thanks.

John
janepen is offline   Reply With Quote

Old   May 3, 2013, 06:17
Default
  #2
New Member
 
John Peng
Join Date: Oct 2012
Location: NL
Posts: 7
Rep Power: 13
janepen is on a distinguished road
I have solved my problem, thank you anyway.

Simply select the pile1 patch, copy it to four patches with different name, then
divide the number of faces by the number of cylinders, and change the start face accordingly.

Wish it helps your problem.
janepen is offline   Reply With Quote

Old   May 3, 2013, 07:17
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi John,

Another way could have been to use the createPatch utility. If I remember correctly, then you can select some boundary faces and assign these to a different patch. This could avoid problems in the manual typing of the startFace and number of faces.

See the dictionary here:

Code:
<OF-path>/applications/utilities/mesh/manipulation/createPatch/createPatchDict
Kind regards

Niels
ngj is offline   Reply With Quote

Reply

Tags
blockmeshdict block mesh, mirrormesh, patch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
[mesh manipulation] Problem with using createPatchDict to define cyclic boundaries kaszt OpenFOAM Meshing & Mesh Conversion 0 April 1, 2016 21:18
UDF error for Heat Generation mame Fluent UDF and Scheme Programming 4 March 3, 2016 04:22
How to define patches after gmshToFoam ? seb_j OpenFOAM 8 July 13, 2011 09:25
[Gmsh] How to define these patches zhoubinwx OpenFOAM Meshing & Mesh Conversion 6 September 15, 2008 08:52


All times are GMT -4. The time now is 06:20.