# Interpolation from particles (points) to vol

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

 June 15, 2012, 09:51 Interpolation from particles (points) to vol #1 New Member   Join Date: Mar 2010 Posts: 27 Rep Power: 9 Sponsored Links 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!

 June 15, 2012, 14:25 #2 Senior Member   Mahdi Hosseinali Join Date: Apr 2009 Location: NB, Canada Posts: 271 Rep Power: 11 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

 June 18, 2012, 04:50 #3 New Member   Join Date: Mar 2010 Posts: 27 Rep Power: 9 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. 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?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post hartinger OpenFOAM Running, Solving & CFD 12 March 7, 2016 14:08 bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38 ajkratos FLUENT 5 March 3, 2015 22:33 hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36 max91 CFX 1 July 29, 2008 20:28