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

How to check if the extracted faces from patch are in order or not?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2021, 04:47
Default 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: 6
sunagra27 is on a distinguished road
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.
sunagra27 is offline   Reply With Quote

Old   September 2, 2021, 05:01
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by sunagra27 View Post
Dear all,

1. I have extracted the faces of a patch using "PatchToFace" in topoSet.

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).
sunagra27 likes this.
olesen is offline   Reply With Quote

Reply

Tags
mesh, mesh manipulation, openfoam, toposet


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
[snappyHexMesh] SHM Layer Addition Phase dickcruz OpenFOAM Meshing & Mesh Conversion 4 November 1, 2018 07:05
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 07:48
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
SigFpe when running ANY application in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 23, 2015 14:53
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21


All times are GMT -4. The time now is 00:30.