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

Interpolate scalars on boundary faces

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2010, 19:05
Default Interpolate scalars on boundary faces
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi Foamers,
I need to write a b.c. for a scalar field for which the boundary field must be an accurate interpolation of the internal field.
Is there any ready to use interpolation tool?
I'm managing to use linearInterpolation(), like in phi construction, but does it use only linear scheme? What I have to do to use higher order schemes (cubic)?

Thanks, Ivan
ivan_cozza is offline   Reply With Quote

Old   February 3, 2010, 13:37
Default
  #2
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 9
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Ok, yesterday I wrote down some errors (the stuff about linearInterpolate).

Now my question is: is possible using fvc::interpolate() to extrapolate the boundary field of a volScalarField starting from the internal field values?

To add some infos, I need to do it as in a piece of my codes there's a scalar field that's not a solution of a PDE, but is just evaluated algebrically, and I need some good extimation of its boundary values in order to do some other calculations (zeroGradient b.c. it's not enough and the field is time-varying, so I cannot impose at the beginnig the value).

Thank for the help!!!
Ivan
ivan_cozza is offline   Reply With Quote

Old   April 19, 2011, 13:22
Default
  #3
New Member
 
Ali Q Raeini
Join Date: Feb 2010
Posts: 21
Rep Power: 7
aliqasemi is on a distinguished road
This is an old post but:

for any field X, the function fvc::interpolate(X) should consider the boundary conditions specified for X to interpolate it to boundary faces. i.e. if you assign a correct boundary condition it will evaluate the values at boundary faces correctly. I am not so good at the boundary conditions to help you in choosing the correct BC. By default, it uses zeroGradient BC, I think.
aliqasemi is offline   Reply With Quote

Reply

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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
extending boundary layer to mesh faces kb FLUENT 0 September 28, 2007 03:26
Solver error message!!! IoSa CFX 1 September 14, 2006 04:48
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54


All times are GMT -4. The time now is 11:57.