  We present a local detection method for dissipative particle dynamics (DPD)
involving arbitrarily shaped geometric three-dimensional domains. By
introducing an indicator variable of boundary volume fraction (BVF) for each
fluid particle, the boundary of arbitrary-shape objects is detected on-the-fly
for the moving fluid particles using only the local particle configuration.
Therefore, this approach eliminates the need of an analytical description of
the boundary and geometry of objects in DPD simulations and makes it possible
to load the geometry of a system directly from experimental images or
computer-aided designs/drawings. Wall penetration is inferred from the value of
the BVF and prevented by a predictor-corrector algorithm. The no-slip boundary
condition is achieved by employing effective dissipative coefficients for
liquid-solid interactions. Quantitative evaluations of the new method are
performed for the plane Poiseuille flow, the plane Couette flow and the Wannier
flow in a cylindrical domain and compared with their corresponding analytical
solutions and (high-order) spectral element solution of the Navier-Stokes
equations. We verify that the proposed method yields correct no-slip boundary
condition for velocity and generates negligible fluctuations of density and
temperature in the vicinity of the wall surface. Moreover, we construct a very
complex 3D geometry - the "Brown Pacman" microfluidic device - to explicitly
demonstrate how to construct a DPD system with complex geometry directly from
loading a graphical image. In addition to stationary arbitrary-shape objects,
the new method is particularly useful for problems involving moving and
deformable boundaries, because it only uses local information of neighboring
particles and satisfies the desired boundary conditions on-the-fly.
