Re: Changing the snapshot file after each timestep

From: Evgeny Kurbatov <>
Date: Tue, 31 Jul 2007 10:34:56 +0400

Hi, Christopher!

I think, you can write a procedure increasing an acceleration of some
particles. You can call this procedure just after hydro_force in
accel.h. I will be MUCH faster than continuous restarting of gadget.

Best witches,

Christopher Erick Moody wrote:
> Hi,
> I'd like to run a simulation where, after each timestep, I increase
> the velocities of a small set of particles. It seems to me that the best
> way to do this is to somehow pause GADGET-2 after each timestep has
> completed, modify the snapshot file to increase the velocities, and
> restart GADGET. In that case, is there a way to instruct GADGET to quit
> after only one timestep? If so, I think I can create a script repeatedly
> calling GADGET followed by a small snapshot-modification program.
> Is this indeed the best way?
> Thanks for any and all help,
> Chris
Received on 2007-07-31 09:40:01

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:30 CET