fvc::interpolate --> Variable Access On Particular Face
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. |
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.:confused::confused::confused: |
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??:confused::confused:
|
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 |
All times are GMT -4. The time now is 09:22. |