DoNotSaveSaveRoutine

class plasmapy.simulation.particle_tracker.DoNotSaveSaveRoutine[source]

Bases: AbstractSaveRoutine

The default save routine for the ParticleTracker class.

This save routine is a placeholder and will not save the state of the particle tracker.

Attributes Summary

require_synchronized_dt

The do not save save routine does not require a synchronized time step.

save_now

The do not save save routine will never save by definition.

tracker

Return the ParticleTracker object for this stop condition.

Methods Summary

post_push_hook([force_save])

Function called after a push step.

save()

Save the current state of the simulation to disk or memory based on whether the output directory was set.

Attributes Documentation

require_synchronized_dt

The do not save save routine does not require a synchronized time step.

save_now

The do not save save routine will never save by definition.

tracker

Return the ParticleTracker object for this stop condition.

Methods Documentation

post_push_hook(force_save=False) None

Function called after a push step.

This function is responsible for handling two steps of save routine, namely:
  • Deciding to save on the current time step

  • How the simulation data is saved (i.e. to disk or memory)

save() None

Save the current state of the simulation to disk or memory based on whether the output directory was set.