CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Mapping Lagrangian particles (

gschaider March 31, 2009 10:59

Mapping Lagrangian particles
1 Attachment(s)
Version: 1.5.x

Description: when mapping a case with lagrangian particles to a smaller mesh some of the particles keep the cell number (in the positions-file) from the old mesh which are a) wrong b) may be outside of the range of the new mesh which causes all kinds of trouble (during decomposePar, trackToFace etc)

Fix: the attached patch. For the particles in question it overwrites the celli_ with the index of the found cell (which was calculated anyway). In order to do this a write-access-method for celli_ had to be introduced

Attachment 113

mattijs April 1, 2009 05:05

Nice one. I put it in.

All times are GMT -4. The time now is 03:39.