AllParticlesOffGridTerminationConditionο
- class plasmapy.simulation.particle_tracker.termination_conditions.AllParticlesOffGridTerminationCondition(fraction_exited_threshold: float = 0.99)[source]ο
Bases:
AbstractTerminationConditionTermination condition corresponding to stopping the simulation when a specified proportion of particles have entered and exited the grids.
- Parameters:
fraction_exited_threshold (float, optional) β The fraction of particles that must leave the grids to terminate the simulation. This does not include particles that have never entered the grids.
Attributes Summary
Check to see if the proportion of particles that have entered and exited the grid meet thresholds.
The progress of the simulation is defined in the context of how many particles are on the grids.
The termination condition tracks the number of particles remaining in the grids.
The termination condition does not require a synchronized time step.
The progress of the simulation is compared to the number of particles tracked.
Return the
ParticleTrackerobject for this termination condition.The termination condition tracks particles.
Attributes Documentation
- is_finishedο
Check to see if the proportion of particles that have entered and exited the grid meet thresholds.
- progressο
The progress of the simulation is defined in the context of how many particles are on the grids.
- progress_descriptionο
The termination condition tracks the number of particles remaining in the grids.
- require_synchronized_dtο
The termination condition does not require a synchronized time step.
- totalο
The progress of the simulation is compared to the number of particles tracked.
- trackerο
Return the
ParticleTrackerobject for this termination condition.
- units_stringο
The termination condition tracks particles.