Single particle scattering
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 (2024). Single particle scattering (https://www.mathworks.com/matlabcentral/fileexchange/82235-single-particle-scattering), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Single_particle_scattering
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |