Questions about the run mode of MFiX

Hello, developers. Where can I find the underlying code for the DEM and CGP models? Also, if I don’t want to use MFiX in the GUI interface, how can I run MFiX in code form on a Linux system?
Best wishes!

Building and running the MFiX solver outside MFiX GUI (“Batch mode”) is covered in the documentation here

DEM and CGP code is spread across many source files in MFiX, mostly in the des subdirectory, e.g. des/calc_force_dem.f Code that deals with CGP is labeled as CGDEM internally, for example

$ grep -ir cgdem
des/write_des_data.f:      IF(CGDEM) THEN
``

Thank you for your patient reply.