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

[Gmsh] Cell to node connectivity after 'gmshToFoam'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2015, 07:11
Default Cell to node connectivity after 'gmshToFoam'
  #1
Member
 
Jibran
Join Date: Oct 2012
Location: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
Jibran is on a distinguished road
Hello Foamers,

Objective:
I am interested in obtaining the cell to node connectivity in a particular order for my mesh.

Description:
I use gmsh to create my mesh and I can see from the .msh file that the cell to node connectivity is in the order as specified by the gmsh manual (which I need). However when I run 'gmshToFoam testCase.msh' that order is disturbed if I check the cell to node connectivity through 'mesh.cellPoints()'. Now the connectivity is not in any particular order as shown below.

Results:
1. Connectivity before gmshToFoam (from .msh file):
Cell 0 --> ( 0 4 20 19 36 38 56 55 )
Cell 1 --> ( 19 20 21 18 55 56 57 54 )

2. Connectivity after gmshToFoam (from mesh.cellPoints()):
Cell 0 --> ( 0 4 19 20 36 38 55 56 )
Cell 1 --> ( 18 19 20 21 54 55 56 57 )

As can be seen from the text in red the ordering is changed. I also tried 'gmshToFoam -keepOrientation testCase.msh' but it gave the same result. Any help in this regard will be appreciated. Thanks!

__________________
Jibran Haider
https://jibranhaider.com/

Last edited by Jibran; May 3, 2015 at 10:23.
Jibran is offline   Reply With Quote

Old   June 8, 2015, 09:09
Default
  #2
Member
 
Jibran
Join Date: Oct 2012
Location: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
Jibran is on a distinguished road
Dear All,

I am still not able to figure out how it works. Any hints?

Regards
__________________
Jibran Haider
https://jibranhaider.com/
Jibran is offline   Reply With Quote

Reply

Tags
connectivity, gmshtofoam, openfoam


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
[ICEM] Error in mesh writing helios ANSYS Meshing & Geometry 21 August 19, 2021 14:18
How does connectivity macros work for cell zones doruk Fluent UDF and Scheme Programming 11 June 15, 2020 05:58
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 12:25
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38


All times are GMT -4. The time now is 18:22.