Rob
Ansys Employee

You should have a mixture for gas phase & particle material: general comment. 

Otherwise, there's the example in the manual, and I can't comment on that: I don't do much with UDFs and it's heading into the can't/don't bit of the support remit.