LDDS

Tutorial 12: Integration Time & Grid Resolution for Lagrangian descriptor Simulations

In this tutorial notebook we demonstrate how the integration time (number of iterations for discrete systems) and grid resolution used to calculate Lagrangian descriptors are two fundamental parameters of the method that should be explored in detail when analyzing the phase space structures governing the dynamics of any system. We illustrate the relevance of this parameters by applying this technique to two model systems: the double gyre flow as an example of a continuous dynamical system, and Arnold's cat map for a discrete-time system

Arnold's Cat Map

This map is defined by the following difference equations:

\begin{cases} x_{n+1} = 2x_n + y_n \; \text{mod } 1 \\[.2cm] y_{n+1} = x_n + y_n \; \text{mod } 1 \end{cases}

and the inverse map is given by:

\begin{cases} x_{n} = x_{n+1} - y_{n+1} \; \text{mod } 1 \\[.2cm] y_{n} = -x_{n+1} + 2y_{n+1} \; \text{mod } 1 \end{cases}

Define the Map

Define the Inverse Map

Define Grid to Calculate LDs and LD parameters

We will use first a very small number of iterations for the map

Calculate and Plot Lagrangian Descriptors (Iterations $N = 2$)

Calculate and Plot Lagrangian Descriptors (Iterations $N = 5$)

Calculate and Plot Lagrangian Descriptors (Iterations $N = 15$)

Lagrangian Descriptors for Different Grid Sizes (Fixed Number of Iterations $N = 5$)

The Double Gyre Flow

The double gyre flow is described by the following system of ODEs:

\begin{cases} \dfrac{dx}{dt} = -\pi A \sin\left(\dfrac{\pi f(x,t)}{s}\right)\cos\left(\dfrac{\pi y}{s}\right) - \mu x \\[.2cm] \dfrac{dy}{dt} = \pi A \cos\left(\dfrac{\pi f(x,t)}{s}\right)\sin\left(\dfrac{\pi y}{s}\right)\dfrac{\partial f}{\partial x}\left(x,t\right) - \mu y \end{cases}

and we have that:

$$ f(x,t) = \varepsilon \sin(\omega t + \phi) x^2 + \left[1-2\varepsilon\sin(\omega t + \phi)\right] x $$

Define the vector field

Define the 2D Grid to Compute LDs

Define Parameters for Lagrangian Descriptors

Calculate LDs ($\tau = 5$)

Calculate LDs ($\tau = 15$)

Calculate LDs ($\tau = 40$)

Change Grid Size to Calculate LDs