|
[Sponsors] |
How to check if the extracted faces from patch are in order or not? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 1, 2021, 05:47 |
How to check if the extracted faces from patch are in order or not?
|
#1 |
Member
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 7 |
Dear all,
1. I have extracted the faces of a patch using "PatchToFace" in topoSet. 2. I used these faces and split the patch accordingly to my needs so that I can apply BC to each of these splitted patches. 3. I have several case studies of similar design. So, when I use PatchToFace and split it, some of the cases miss the face order when extracting. Because of this, the combined mesh shows random shapes. 4. Below are the images which I think it will be understandable. a. After PatchToFace: In this, the below picture shows the extracted patch of top picture from PatchToFace. https://drive.google.com/file/d/1sZC...ew?usp=sharing b. Based on b, I split the patch like this: https://drive.google.com/file/d/1138...ew?usp=sharing c. For few cases, after PatchToFace and split, the faces are arbitrarily placed as: https://drive.google.com/file/d/1AbU...ew?usp=sharing 5. So, what is wrong with PatchToFace for some cases is not understood. Please go through and let me know if not understood. Any leads will be appreciated. Regards, Sunag R A. |
|
September 2, 2021, 06:01 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
The topo sets (cell, face, point) all use a labelHashSet as their basis, thus the labels are unordered. You either need to use sortedToc() to obtain the faceIds in a consistent and correct order, or else simply obtain the faceIds directly from the patch information (it has size and startFace). |
||
Tags |
mesh, mesh manipulation, openfoam, toposet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SHM Layer Addition Phase | dickcruz | OpenFOAM Meshing & Mesh Conversion | 4 | November 1, 2018 08:05 |
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) | AndreP | STAR-CCM+ | 10 | August 2, 2018 08:48 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
SigFpe when running ANY application in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 23, 2015 15:53 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |