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

fvc::interpolate --> Variable Access On Particular Face

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2012, 12:09
Default fvc::interpolate --> Variable Access On Particular Face
  #1
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Hello to all here at the OpenFOAM forum. I am trying to access the interpolated values of a specified flow variable near the wall and not sure how to do so. Here is the code:

const fvPatchScalarField& Tw = thermo.T().boundaryField([patchI];
const scalarField Tadj = Tw.patchInternalField();
surfaceScalarField Tsurf=fvc::interpolate(Tadj);


Firstly, I think this code is correct, right? Secondly, once Tsurf has been calculated, how do I access values on a particular face. For instance, let's say on the northern face, how would I do that? Any ideas??

Thanks for the feedback in advance.
deji is offline   Reply With Quote

Old   January 5, 2012, 18:19
Default
  #2
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
The lines of code aren't correct, I have tested it and fixed it. However, I am not sure how to work with the surfaceScalarField acquired from using
fvc::interpolate(TMean). I would like to access the interpolated faces at the first grid cell near the wall. I am temporarily stuck, some feedback would be greatly appreciated.
deji is offline   Reply With Quote

Old   January 6, 2012, 10:08
Default
  #3
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Hello Foamers. So there is no one here at the forum that can enlighten me on this topic? I find that quite difficult to fathom. Any help??
deji is offline   Reply With Quote

Old   January 18, 2012, 14:01
Default
  #4
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
Just to update this thread, I have figured out how to do this and I think the answer was given in another thread "Help with interpolation".

Cheers,
Deji
deji 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access each cell of a face? (user fortran) Katariina CFX 3 January 28, 2008 10:16
Error: access: unbound variable Shriram Main CFD Forum 0 June 22, 2007 09:31
accessing UDS face variable chapelle FLUENT 4 September 20, 2005 12:33
Error: access: unbound variable vivek FLUENT 0 June 6, 2005 07:05
Error: access: unbound variable cfd-novice FLUENT 0 April 3, 2003 05:53


All times are GMT -4. The time now is 10:50.