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.
Zikang Xie (2021). Single particle scattering (https://www.mathworks.com/matlabcentral/fileexchange/82235-single-particle-scattering), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!