image thumbnail

Single particle scattering

version 1.0.0 (1.13 MB) by Zikang Xie
Calculate the single particle scattering orbit and draw the animation under the given potential field.

14 Downloads

Updated 04 Nov 2020

View License

Calculate the single particle scattering orbit and draw the animation under the given potential field.

main.m : input the expression V of the potential field, the particle velocity vi at infinity, and the aiming distance d (the distance from the center of the potential field to the asymptote).

calculate_r.m : Use ode45 to calculate the radius of the particle relative to the center of the potential field in the polar coordinate system.

calculate_phi.m : Calculate the azimuth angle of the particle relative to the center of the potential field in the polar coordinate system.

animation_plot_fun.m: Draw particle motion animation, if_export_gif=1, output demonstration animation in gif format.

Cite As

Zikang Xie (2021). Single particle scattering (https://www.mathworks.com/matlabcentral/fileexchange/82235-single-particle-scattering), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!