artmenlope / flow-animation-with-scipy-odeint

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%