FDA’s Device Center Office of Science and Engineering Laboratories performs research which sometimes involves development of source code. This software is public domain and freely available. Currently available are X-ray imaging simulation code and also scripts to model evolution of chemical and physical inhomogeneities. Full information is at their webpage at the link provided.