sarkas.processes.Simulation.evolve_loop_threading#

Simulation.evolve_loop_threading(phase, thermalization, it_start, it_end, dump_step)#

Evolve the system forward in time. This method is similar to sarkas.processes.Process.evolve_loop() with the only difference that it uses threading for saving data, it starts a new thread to save the data. In the case of small number of particles this can slow down the simulation, therefore it must be chosen by setting the parameters threading = True in the input file or in the sarkas.core.Parameters class.

Parameters
  • phase (str) – Indicates the stage of the simulation used for saving dumps in the right directory.

    Choices = (“equilibration”, “production”, “magnetization”)

  • thermalization (bool) – Indicates whether to apply the thermostat or not.

  • it_start (int) – Initial timestep of the loop.

  • it_end (int) – Final timestep of the loop.

  • dump_step (int) – Interval for dumping data.