Thanks for your reply Rob, but I didnt get your meaning. What I would like to do is set the middle surface as porous jump boundary condition. for DPM, when big particles hit it, reflect, when small particle hit it, pass through.    if it's not "DEFINE_DPM_BC", what udf should I use? Thanks!