|
[Sponsors] |
[mesh manipulation] How to create a subpatch from a patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2015, 13:36 |
How to create a subpatch from a patch
|
#1 |
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 13 |
Dear Foamer,
I have the mesh of a hilly terrain (very similar to the tutorial of moveDynamicMesh). The mesh is composed by the following boundaries:
Or is there a better option? Cheers, Marcel |
|
July 10, 2015, 16:59 |
|
#2 |
Senior Member
|
Hi,
You can use subset action in topoSetDict, it would be something like: Code:
{ name hill; type faceSet; action subset; source patchToFace; sourceInfo { name "ground"; } } |
|
November 7, 2015, 15:23 |
|
#3 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 13 |
Quote:
I am also trying to achieve similar thing as Marcel showed in the post, for my problem I have following patches: 1) Top wall 2) Left wall I want to extract only few faces on Top Wall and left wall and build the faceset (faces of Interest) |-------|----------------------|------- | | |_ | | (Faces of Interest) | |_ | I am trying the approach as Alexey told but how should I make sure that the "subset" is the set of my interest I will be thankful to both if you can give some detail about the approach . Thank you Regards |
||
November 7, 2015, 16:44 |
|
#4 |
Senior Member
|
Hi,
Maybe I am missing something but... 1. Select cells near top wall. You know location of the top wall, you know size of the cells there, so it should not be a problem. Create faceSet with cellToFace action. Then subSet these faces with patchToFace. 2. Repeat the same with "Left wall". 3. Then you use createPatch utility (maybe you will need to merge faceSets before creating patch, it is done with add action). |
|
November 7, 2015, 18:18 |
|
#5 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 13 |
Quote:
Thanks for the Help. Its working out Regards |
||
August 20, 2018, 14:15 |
|
#6 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10 |
Quote:
There is only one step: Code:
create a faceSet with boxToFace (easy) |
||
|
|
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 |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 15:33 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
Cyclic Boundary Condition | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Running, Solving & CFD | 36 | July 2, 2012 12:23 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |