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

How to add a patch

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

Like Tree3Likes
  • 2 Post By kmooney
  • 1 Post By andre.weiner

Reply
 
LinkBack Thread Tools Display Modes
Old   July 26, 2013, 06:50
Default How to add a patch
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear Foamers,

I am writing since I have a (very simple) case and I am facing a problem and I can not start to solve it.

I have a pipe and - using block mesh - I build a block around this pipe. The inlet is on the same plane of the block face, while the outlet is in the middle of the block itself.

If I choose the face `back' of the block, I see the picture in can see in the attached figure.

The point is that it is a unique patch. What I wanna do is to creat a pactch `back' for the back of the block and a patch `inlet' for the inlet. How can I do this?

Reading here, it seems that I can use the `createPatch' feature. The point is that my patch is not a circle.
How can I do this?

Thanks a lot for any help you would provide.

Samuele
Attached Images
File Type: jpg Schermata del 2013-07-26 12:43:53.jpg (9.5 KB, 20 views)
samiam1000 is offline   Reply With Quote

Old   July 26, 2013, 12:30
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: Amherst, MA USA - San Diego, CA USA
Posts: 268
Rep Power: 9
kmooney is on a distinguished road
You can use

Code:
> autoPatch 45
to split any patches along 45 degree feature edges. This will most likely separate out your inlet patch but also create several other extra patches that you'll have to merge back together. Use Paraview to see which patches you'll want to recombine.


You can use topoSet to make a face list of the extra patches then use createPatch to merge all of these faces back into the patches you want.

Hunt around the foam directory for topoSetDict and createPatchDict examples. You should be able to figure the process out from that.
samiam1000 and avigrod like this.
kmooney is offline   Reply With Quote

Old   July 26, 2013, 13:04
Default
  #3
New Member
 
Andre Weiner
Join Date: Aug 2012
Posts: 27
Rep Power: 4
andre.weiner is on a distinguished road
Hello,

from the geometrie in your post i don't see why you don't define all the patches you need in the blockMeshDict.

Anyway, you also can create the patches with topSet and createPatch. First you select all the wanted boundary faces with topoSet. The normal vector will be an appropriate criteria for your problem. In the next step you can use this faceSet as source in your createPatchDict.
For a detailed example see the createInletOutlet.topoSet and the createPachDict in the propeller tutorial.
.../tutorials/incompressible/pimpleDyMFoam/propeller

Best regards
avigrod likes this.
andre.weiner 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 108 June 9, 2015 08:13
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 11:25
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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