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

How to interpolate 'mesh.V()'

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2012, 08:47
Default How to interpolate 'mesh.V()'
  #1
New Member
 
Lun Yu
Join Date: Aug 2012
Posts: 8
Rep Power: 5
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, 02:44
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
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, 04:25
Default
  #3
New Member
 
Lun Yu
Join Date: Aug 2012
Posts: 8
Rep Power: 5
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

Thread Tools
Display Modes

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


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