CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Face index and value (https://www.cfd-online.com/Forums/openfoam/208449-face-index-value.html)

C. Okubo October 17, 2018 16:48

Face index and value
 
Hi!

I suppose this question has a simple answer, but I can't find it.

If I have the global index of a boundary face...suppose 723....and I want to have a value of a variable in that face...like temperature at face 723. How can I do it without loop over patches?

To access temperature of cell 245, I can just use T[245]. Is there something similar for face IDs?

Regards,

Okubo

C. Okubo October 18, 2018 10:56

Got what I wanted with this post from Jasak:

https://www.cfd-online.com/Forums/op...iven-cell.html


All times are GMT -4. The time now is 03:27.