How to define a particle releasing line in a 2D DEM simulation?

There is nothing specific you need to define for the DEM domain, it will be the same as the fluid domain. You can release the particles along the same plane as the inlet plane on the left.