Rob
Ansys Employee

You may want to update to 2023R2. 

Make sure you use the Help in the specific version of Fluent as some of the DPM calls were adjusted. They should be covered in some of the UDF Manual examples.