trace_trajectory¶
- disco.trace_trajectory(config, particle_state, field_model, verbose=1)[source]¶
Calculate particle trajectories.
- Parameters:
- config
disco.TraceConfig Configuration for performing the trace
- particle_state
disco.ParticleState Initial conditions of the particles
- field_model
disco.FieldModelordisco.FieldModelLoader Magnetic and Electric field context
- verboseint
Set to zero to supress print statements
- config
- Returns:
- History of the trajectories as a
ParticleHistoryobject. Ifconfig.output_freqisNone, contains - only the first and last step.
- History of the trajectories as a
Examples
>>> history = disco.trace_trajectory( config, particle_state, field_model ) >>> history.save("trajectories.h5")