updated Simulate_Cosmic_flow