About the rock breakage test we gave in the paper, it should be exactly that demo: Fracture_Box. Run it and it should give you what we had in the paper.
To answer your other questions...
1. This is not strictly a DEME question, nor an easy one necessarily. DEME only cares about the position and radius of the initial spheres, and how you generate them is in itself a research problem that you have to solve yourself. It's even more complex considering it's not just about filling a volume represented by a mesh, but you need the interior spheres' overlapping pattern to become an appropriate apparatus for representing the initial internal force. I might have read about some other people's elegant solutions but they are not off the top of my head. If I were to do it, I'd probably write a script that uses planes to intersect the mesh of the rock, then fill the intersection with spheres until the volume is completely filled layer by layer.
2. The rest are CMake questions. For now, if you just wish to easily compile your own script and without worrying about the potential co-simulations, then adding a demo is fine. Put the script in the demo folder, add its name to the CMakeList.txt in the demo folder, and then recompile (make or ninja) the project.
3. Same as above. Note that modifying and supplying a custom force model does not necessarily require you to rebuild the project, if the custom model is loaded from a file. When the executable is run, the content of that file will be read and executed, so simply modifying that file and then run the executable is fine. This however, applies to a force model file located in a location that you know and control (you may want to supply the full path to that file in your script), not the force model files in the source code! The ones in the source code are not read when a demo is run, as the solver reads the files in the build folder by default, or whatever location you tell it to read. If you supply your force model with a string in the demo itself like I did in an example, then obviously you have to recompile the project every time you modify that demo script.
I'd also appreciate it if you post a new thread to ask further questions, since the discussion has moved well beyond what the title suggests already.
Thank you,
Ruochun