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

Face index and value

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 17, 2018, 17:48
Default Face index and value
  #1
New Member
 
Join Date: Jan 2017
Posts: 18
Rep Power: 3
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, 11:56
Default
  #2
New Member
 
Join Date: Jan 2017
Posts: 18
Rep Power: 3
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On



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