|
[Sponsors] |
fvc::interpolate --> Variable Access On Particular Face |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 5, 2012, 12:09 |
fvc::interpolate --> Variable Access On Particular Face
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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. |
|
January 5, 2012, 18:19 |
|
#2 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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. |
|
January 6, 2012, 10:08 |
|
#3 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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??
|
|
January 18, 2012, 14:01 |
|
#4 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
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 |
|
|
|
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 |