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

How to interpolate 'mesh.V()'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2012, 09:47
Default How to interpolate 'mesh.V()'
  #1
New Member
 
Lun Yu
Join Date: Aug 2012
Posts: 8
Rep Power: 14
victorconan is on a distinguished road
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.
victorconan is offline   Reply With Quote

Old   August 3, 2012, 03:44
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
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?
Bernhard is offline   Reply With Quote

Old   August 3, 2012, 05:25
Default
  #3
New Member
 
Lun Yu
Join Date: Aug 2012
Posts: 8
Rep Power: 14
victorconan is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
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~
victorconan is offline   Reply With Quote

Reply

Tags
interpolate


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
Interpolate in some points ivan_cozza OpenFOAM Post-Processing 2 April 22, 2009 09:58
Interpolate a boundary condition Xabi OpenFOAM Pre-Processing 0 April 9, 2009 05:23
overflow when interpolate initial result richard CFX 1 June 11, 2008 08:36
interpolate with batch file Claudia CFX 13 June 21, 2007 09:30
interpolate error of boundary profile justin FLUENT 5 June 5, 2007 05:01


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