AbstractSaveRoutineο
- class plasmapy.simulation.particle_tracker.save_routines.AbstractSaveRoutine( )[source]ο
Bases:
ABCAbstract base class containing the necessary methods for a
ParticleTrackersave routine.The save routine class is responsible for defining the conditions and hooks for saving.
- Parameters:
Notes
After every push, the
post_push_hookmethod is called with the respectiveParticleTrackerobject passed as a parameter. Then, the hook callssave_nowto determine whether or not the simulation state should be saved.Attributes Summary
Return if this save routine requires a synchronized time step.
Return the results of the simulation.
Determine if to save on the current push step.
Return the
ParticleTrackerobject for this stop condition.Methods Summary
Function called after a push step.
save()Save the current state of the simulation to memory.
Attributes Documentation
- require_synchronized_dtο
Return if this save routine requires a synchronized time step.
- resultsο
Return the results of the simulation. The quantities returned depend on those defined in the body of the save routine.
- save_nowο
Determine if to save on the current push step.
- trackerο
Return the
ParticleTrackerobject for this stop condition.
Methods Documentation