|
[Sponsors] |
June 29, 2018, 02:41 |
how to get number of faces in a cell
|
#1 |
Senior Member
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10 |
Hi All
My question is very simple. For a given cell how can I determine the number of faces it is surrounded with. Is it cell.size() ? |
|
July 2, 2018, 04:11 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15 |
cell.nFaces() see, e.g., https://github.com/OpenFOAM/OpenFOAM...es/cell/cell.H
|
|
July 12, 2018, 02:02 |
|
#3 |
Senior Member
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10 |
Thanks Michael,
can you tell me how to get faceList from a cell. I am struggling in that also. |
|
July 13, 2018, 02:16 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15 |
I think you can get it with const cell & cc = mesh.cells()[celli]; -> since a cell is constructed from a faceList you'll get the faceLabels.
But I'm not sure. Maybe you can try it |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Layers not growing at all | zonda | OpenFOAM Meshing & Mesh Conversion | 12 | June 6, 2020 11:28 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 15:03 |
decomposePar pointfield | flying | OpenFOAM Running, Solving & CFD | 28 | December 30, 2013 15:05 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |