Modgen is a command-line application which allows user process modules to be added to DSAM. It takes as its input a description of the process and uses it to generate a code module which can be compiled and used with DSAM. Once compiled with DSAM the user user process can then be used within simulation scripts as the standard DSAM library processes are used.