|
[Sponsors] |
Interpolation from volume field onto a surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 2, 2010, 13:44 |
Interpolation from volume field onto a surface
|
#1 |
New Member
Daniela
Join Date: Apr 2010
Posts: 7
Rep Power: 16 |
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 |
|
September 2, 2010, 23:04 |
|
#2 |
New Member
Stephen Mardson McQuay
Join Date: Nov 2009
Posts: 2
Rep Power: 0 |
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? |
|
September 2, 2010, 23:39 |
|
#3 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
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 |
|
September 3, 2010, 06:56 |
|
#4 |
New Member
Daniela
Join Date: Apr 2010
Posts: 7
Rep Power: 16 |
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 |
|
September 3, 2010, 09:03 |
|
#5 | |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
Daniela,
Quote:
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 |
||
September 7, 2010, 02:16 |
|
#6 |
Senior Member
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17 |
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 ... . |
|
|
|
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 |