reactor simulation