Generates the model code to simulate mechanical deformation of media and cells contained within the media