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

[mesh manipulation] Extra Points and Cells are being created

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By harshabose

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2023, 17:50
Default Extra Points and Cells are being created
  #1
New Member
 
LyLy
Join Date: Jan 2019
Posts: 14
Rep Power: 7
harshabose is on a distinguished road
I am currently facing an issue with my mesh generation process. I have developed a C++ code that generates polyMesh files (points, faces, cells, owners etc) to create a purely hexahedral mesh. The code functions correctly, and the polyMesh files are created as expected. However, when I open these polyMesh files in paraView, I notice the presence of additional points and cells.

According to my C++ code, the mesh should consist of exactly 36,080 points and 17,550 cells. However, upon inspection in paraView, I observe 36,158 points and 17,940 cells. This discrepancy is perplexing, as the generated polyMesh files clearly indicate the correct number of points and cells. Furthermore, the additional points seem to be created at coordinates (X, Y, Z) = (..., ..., 0.00025), while my intended coordinates only include (X, Y, Z) values of (..., ..., 0) or (..., ..., 0.0005).

I have also checked the results from the "checkMesh" command, which report the correct number of points and cells. However, even in the "checkMesh" output, I notice the presence of polyhedra cells and points at coordinates (X, Y, Z) = (..., ..., 0.00025).

Code:
Mesh stats 
    points:           36080
    internal points:  0
    faces:            70689
    internal faces:   34611
    cells:            17550
    faces per cell:   6
    boundary patches: 10
    point zones:      0
    face zones:       0
    cell zones:       0

Overall number of cells of each type:
    hexahedra:     17472
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:     78
    Breakdown of polyhedra by number of faces:
        faces   number of cells
            5   39
            7   39
I checked my code, even manually checked the polyMesh files. Was not able to find the problem. I need to know why these extra points and cells are being created. I am including few images and my files below.


Please find attached a few images and my mesh files for reference.

I would greatly appreciate any assistance or insights into resolving this issue.

Thank you in advance for your help

Extra Points.jpg
Extra Points

Extra Cells.jpg
Extra Cells
Case File Link (Google Drive)
harshabose is offline   Reply With Quote

Old   June 29, 2023, 04:07
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Lyly,

Everything seems fine to me! (cf screenshot)
In paraView, just uncheck "Decompose polyhedra" when loading your case.

Cheers,
Yann
Attached Images
File Type: png paraview_screenshot.png (9.5 KB, 5 views)
harshabose likes this.
Yann is offline   Reply With Quote

Old   June 29, 2023, 15:45
Default
  #3
New Member
 
LyLy
Join Date: Jan 2019
Posts: 14
Rep Power: 7
harshabose is on a distinguished road
Hello Yann,

That works. Thank you for the help. Really appreciate it.😊
There was still the problem of polyhedral cells appearing for some reason.

Face Count.jpg
Face Count

I was able to convert these polyhedra to hexahedra using the "Convert Polyhedral Cells" filter. Seems to work fine.
Yann likes this.
harshabose 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
[snappyHexMesh] layer not added Rasmusiwersen OpenFOAM Meshing & Mesh Conversion 1 January 2, 2020 10:43
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 11:11
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50


All times are GMT -4. The time now is 10:39.