MultiFlash Modeling Code