|
[Sponsors] |
October 12, 2017, 19:35 |
Order of faces of a cell
|
#1 |
New Member
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 9 |
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 |
|
October 13, 2017, 01:07 |
|
#2 |
Senior Member
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9 |
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. |
|
October 13, 2017, 14:17 |
|
#3 |
New Member
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 9 |
Thanks Charles for the information.
As i am working on a mesh convertor from OpenFoam to KIVA 4 I required this information. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |