Skip to content

extractEulerianParticles does not work correctly if it targets a faceZone on a boundary with patchID of zero

Summary

All particles are discarded if target faceZone is on a boundary with patchID of zero.

Steps to reproduce

  1. Copy the tutorials of 'multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection'.
  2. Move the boundary entry of the 'bottom' patch to first in system/blockMesh dictionary.
  3. Exexute Allrun.

Example case

eulerianInjection.tar.gz

Environment information

  • OpenFOAM version : v2212

Possible fixes

diff extractEulerianParticlesTemplates.C extractEulerianParticlesTemplates.C_fixed 
46c46
<         if (patchi != 0)
---
>         if (patchi != -1)