CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Define patches after MirrorMesh

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

Reply
 
LinkBack Thread Tools 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: 6
Rep Power: 5
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: 6
Rep Power: 5
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: Deltares, Delft, The Netherlands
Posts: 1,660
Rep Power: 25
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
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
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 129 June 19, 2010 09:23
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19


All times are GMT -4. The time now is 03:25.