Reconstructed simulate() and revive_simulation() in dose.py