Density setting of the fluid phase

Yes. You need a UDF to calculate the density. The simplest way is to search where the EOS function is called and replace that part with your own density function. check Code Structure of CFD-DEM in MFiX

If the density change is small, a constant density should also work.