Skip to content

Particle flow animation with the trajectories of the particles being computed using the function odeint from scipy.integrate.

License

Notifications You must be signed in to change notification settings

artmenlope/flow-animation-with-scipy-odeint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flow-animation-with-scipy-odeint

This script has been created just for fun. It creates an animation of a flow of particles (or points) whose trajectory has been calculated using the odeint function from the scipy.integrate sub-package.

The following animation can be obtained using the default acceleration field definition from the script.

The acceleration field that acts on each particle and generates the animation above is given by

$$ \vec{a} = (a_x, a_y) \quad \longrightarrow \quad \begin{array}{c} a_x = -\cos(y)\sin(x)\\ a_y=-\sin(y)\cos(x) \end{array} $$

For the making of the script the following references have been consulted:

  1. Docs.scipy.org. 2020. Scipy.Integrate.Odeint — Scipy V1.5.2 Reference Guide. [online]

  2. Correoso, K., 2014. Microentrada: Rendimiento De Scatterplots En Matplotlib – Pybonacci. [online] Pybonacci.org.

About

Particle flow animation with the trajectories of the particles being computed using the function odeint from scipy.integrate.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages