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

Interpolation from volume field onto a surface

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By balkrishna

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2010, 13:44
Default Interpolation from volume field onto a surface
  #1
New Member
 
Daniela
Join Date: Apr 2010
Posts: 7
Rep Power: 16
dasch is on a distinguished road
Hi all,

I'm trying to interpolate the values from a volumeScalarField onto a certain surface patch (this is going to be a coupling between OF and another solver - at some point). Is there a boundary condition for this kind of problem? If not, what do I have to do? I'm really stuck on this.

Thanks a lot for your help
Daniela
dasch is offline   Reply With Quote

Old   September 2, 2010, 23:04
Default
  #2
New Member
 
Stephen Mardson McQuay
Join Date: Nov 2009
Posts: 2
Rep Power: 0
smcquay is on a distinguished road
Daniela --

I'm trying to do something similar to test my interpolation scheme. Did you ever have much luck with this?

I started down the path of implementing my own boundary condition, but am having a hard time figuring out which end to grab the source by. I've got a renamed version of finiteVolume/fields/fvPatchFields/basic/fixedValue in my src dir, and it compiles and runs, but I don't know how to get ahold of the U to start manipulating it according to my interpolation.

Have you had much luck?
smcquay is offline   Reply With Quote

Old   September 2, 2010, 23:39
Default
  #3
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Daniela, I can't understand you want to do at all. Do you want to calculate an average of the volField and take this value for a certain patch?, Do you want to use a the values of closest cells to patch for patch faces? I you want the last one zeroGradient is enough.

Can you explain you question a little bit more?

Bye.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   September 3, 2010, 06:56
Default
  #4
New Member
 
Daniela
Join Date: Apr 2010
Posts: 7
Rep Power: 16
dasch is on a distinguished road
Hi,

the solver I'm implementing is a conjugate heat transfer solver which couples a fluid region and a solid region. In the solid part I want to use my own solver and in the fluid part I'm using the buoyantBoussinesqPisoFoam. A zeroGradient BC will transfer the heat out of the fluid region, but not the other way round. If I'm using fixed Value, the heat from the boundary is transfered into the solid part but the temperature on the boundary is not changing. That's why I thought interpolation from the fluid to the boundary would be a good idea. I hope this makes it more clear.

cheers
Daniela
dasch is offline   Reply With Quote

Old   September 3, 2010, 09:03
Default
  #5
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Daniela,

Quote:
A zeroGradient BC will transfer the heat out of the fluid region, but not the other way round.
with a zeroGradient, your patch will follow the temperature of nearest cells but without flux, because the zero neumann BC.

What kind of BC is that you want, mathematically?

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   September 7, 2010, 02:16
Default
  #6
Senior Member
 
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17
balkrishna is on a distinguished road
You probably are looking for this piece of code :

volScalarField something ;
surfaceScalarField somethingf = fvc::interpolate(something) ;

Go through $FOAM_APP/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H for how it is implemented ... .
Kirils and the_ichthyologist like this.
balkrishna is offline   Reply With Quote

Reply


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
Surface Vector Field Problem at Parallel cwang5 OpenFOAM Bugs 6 July 12, 2010 09:31
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
Morphing deforming surface mesh depend on some sensitivity field sponiar OpenFOAM Running, Solving & CFD 3 August 12, 2008 14:32
Interpolating volume data onto quad surface mesh N.R. CFX 6 June 7, 2007 09:15
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


All times are GMT -4. The time now is 09:56.