CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to interpolate 'mesh.V()' (http://www.cfd-online.com/Forums/openfoam-programming-development/105552-how-interpolate-mesh-v.html)

victorconan August 2, 2012 08:47

How to interpolate 'mesh.V()'
 
I wanna get a valid term to multiply by fvc::snGrad(p) to get the presseure on the surface of a cell. Literally, 'mesh.V()' should be interpolated, but fvc::interpolate(mesh.V()) is invalid, how can I realize it? Please help me!
I tried to use: volScalarField Vmesh(mesh.V()); fvc::snGrad(p) * fvc::interpolate(Vmesh). but it is invalid as well.

Bernhard August 3, 2012 02:44

I don't really get it. Why can't you fvc::interpolate(p) to get the pressure at the face? Am I missing something here?

victorconan August 3, 2012 04:25

Quote:

Originally Posted by Bernhard (Post 375163)
I don't really get it. Why can't you fvc::interpolate(p) to get the pressure at the face? Am I missing something here?

Sorry, I made a mistake. Actually, I wanna get: interpolate(grad(p))*mesh.V(), which is flux instead of pressure, similar to pEqn.flux() but I wanna an interpolated value; so I think maybe I can get this by fvc::snGrad(p) * interpolate(mesh.V()); but I am confused now how to interpolate mesh.V().
Could u help me? THANKS~


All times are GMT -4. The time now is 04:45.