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

How to add a patch

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By samiam1000
  • 3 Post By kmooney
  • 1 Post By andre.weiner

Reply
 
LinkBack Thread Tools Search this Thread 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: 520
Rep Power: 18
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, 58 views)
allanZHONG likes this.
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: San Francisco, CA USA
Posts: 323
Rep Power: 17
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, avigrod and Kummi 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: 29
Rep Power: 13
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


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[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 02:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 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 11:51.