You set the result of the particle passing a location, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v221/en/flu_udf/flu_udf_sec_define_dpm_bc.html not the boundary condition on a surface. Remember DPM is tracked in the Lagrangian frame, not the Euler.