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

Face index and value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2018, 16:48
Default Face index and value
  #1
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
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 is offline   Reply With Quote

Old   October 18, 2018, 10:56
Default
  #2
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Got what I wanted with this post from Jasak:

Retrieving boundary patch values adjacent to a given cell
C. Okubo 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



All times are GMT -4. The time now is 09:13.