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

cell connection by vertex

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Jibran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2019, 11:38
Default cell connection by vertex
  #1
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
Hello Foamers,


First of all I would like to thanks some Foamers whose suggestions and ideas has has helped me greatly in my work. I would like to thank Mark Olesen, Martin and Fabien Robaux.


I am in trouble again. I want to access the neighbors of the cell from the vertex list.
Since meshcellcells() gives neighbor of the cell connected through faces. I want something which can directly give me neighbor of the cell connected through vertex. So In 2D I could get all 9 point stencil. I guess it is a very common objective so there must be some way to do it in OpenFoam.
kk415 is offline   Reply With Quote

Old   November 12, 2019, 05:22
Default
  #2
Member
 
Jibran
Join Date: Oct 2012
Location: UK
Posts: 61
Blog Entries: 1
Rep Power: 15
Jibran is on a distinguished road
Hi,

If I got it right you need node to cell connectivity.
For this you can use mesh.pointCells().
See my blog for details.
kk415 likes this.
__________________
Jibran Haider
Jibran 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
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 19:25
[blockMesh] blockMesh running error Thenryfang OpenFOAM Meshing & Mesh Conversion 4 October 31, 2018 06:53
[mesh manipulation] Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Meshing & Mesh Conversion 42 January 8, 2017 13:55
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
setFields zone to cell:solver crashes Ananthakrishnan OpenFOAM Pre-Processing 4 April 12, 2016 02:11


All times are GMT -4. The time now is 01:48.