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

Order of faces of a cell

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2017, 19:35
Default Order of faces of a cell
  #1
New Member
 
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 9
ullal is on a distinguished road
Dear Foamers

Currently i can access the faces of a cell with mesh.cells()[cellnumber]. This would output the cell along with the faces. But i required to know the order of the faces.

For example mesh.cells()[0] gives 6(0 1 6 10 12 16). Can i somehow recognize which is the front, back, left, right, top, bottom face from this.

Thanks in advance

Best
Ankith
ullal is offline   Reply With Quote

Old   October 13, 2017, 01:07
Default
  #2
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
Hello Ankith,

There is no order for the faces. For a mesh cell, front, back, left... don't have meaning. Further, for a cell, it could be polyhedron, where it can have more than 6 faces. There is no way to use front, back...for the cell.

Cell face has function to compute face norm vector, which you may use if direction is important.
Marpole is offline   Reply With Quote

Old   October 13, 2017, 14:17
Default
  #3
New Member
 
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 9
ullal is on a distinguished road
Thanks Charles for the information.
As i am working on a mesh convertor from OpenFoam to KIVA 4 I required this information.
ullal is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 is not extruding/adding Layers everywhere matthiasd OpenFOAM Meshing & Mesh Conversion 2 October 16, 2016 16:45
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
decomposePar -allRegions stru OpenFOAM Pre-Processing 2 August 25, 2015 03:58
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 19:55.