CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Interpolation from particles (points) to vol

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

LinkBack Thread Tools Display Modes
Old   June 15, 2012, 09:51
Default Interpolation from particles (points) to vol
New Member
Join Date: Mar 2010
Posts: 27
Rep Power: 9
astein is on a distinguished road
Dear Foamers,

I am looking for a possibility to interpolate values from lagrangian particles to the mesh volumes. Each parctile holds a separate value, such as a weight or whatever. What I need is an area-weighted field of all particles (many of them!).

One possibilty would be to loop over all cells (or particles) and just average the values of all particles within one cell. However, the area-weighting is lost by doing this. As far as I see it, the class pointVolInterpolation "only" interpolates from a full pointMesh to a volMesh and cannot be used for my problem. Am I right?

Any ideas? Thanks in advance!
astein is offline   Reply With Quote

Old   June 15, 2012, 14:25
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 271
Rep Power: 11
anishtain4 is on a distinguished road
I'm new with foam programming too, so maybe my words does not make sense for in this aspect
I think you should define an fvMesh which is moving and can be updated using .update() method, this would be your lagrangian mesh, and a stationary mesh which is your eulerian mesh. to have a area weighted average you shoudl use .Sf() and to use volume weighted .V(), a mass weighted would then be easy by multiplying .V() and rho
anishtain4 is offline   Reply With Quote

Old   June 18, 2012, 04:50
New Member
Join Date: Mar 2010
Posts: 27
Rep Power: 9
astein is on a distinguished road
Hi all,

what I am looking for is a pointVolInterpolation which interpolates values from lagrangian particles to the cell centeres (not from mesh points to cell centeres as the existing pointVolInterpolation). So, the input needs to be a list of coordinates and scalars, output should be a volField<scalar>. As an alternative, a pointPointInterpolation would also help, meaning an interpolation from particles to mesh points.

Any ideas or hints for classes that could be adopted? Or can the existing pointVolInterpolation be used for that?
astein is offline   Reply With Quote


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
Interpolation between faces and points of a polyPatch hartinger OpenFOAM Running, Solving & CFD 12 March 7, 2016 14:08
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
trying to simulate two-phase jet flow with particles in surface injection ajkratos FLUENT 5 March 3, 2015 22:33
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
Natural convection - Inlet boundary condition max91 CFX 1 July 29, 2008 20:28

All times are GMT -4. The time now is 18:20.