|
[Sponsors] |
July 26, 2013, 06:50 |
How to add a patch
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18 |
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 |
|
July 26, 2013, 12:30 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17 |
You can use
Code:
> autoPatch 45 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. |
|
July 26, 2013, 13:04 |
|
#3 |
New Member
Andre Weiner
Join Date: Aug 2012
Posts: 29
Rep Power: 13 |
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 |
|
|
|
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 |