Yes I understand what you want to do. If this is part of master thesis: that would be hard. As PhD our research work you can then try doing that.
To get started (other idea) have a look into the customization manual especially to DEFINE_DPM_SPRAY_COLLIDE