For simulations that include particle flow, you can specify how the particles behave when they encounter the boundaries of the fluid region.
About Lagrangian Particle Boundaries Defining a Particle Boundary