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
- Copy the tutorials of 'multiphase/interFoam/laminar/vofToLagrangian/eulerianInjection'.
- Move the boundary entry of the 'bottom' patch to first in system/blockMesh dictionary.
- Exexute Allrun.
Example case
Environment information
- OpenFOAM version : v2212
Possible fixes
diff extractEulerianParticlesTemplates.C extractEulerianParticlesTemplates.C_fixed
46c46
< if (patchi != 0)
---
> if (patchi != -1)