LDDS

Tutorial 10: Lagrangian descriptors for Stochastic Dynamical Systems

In this tutorial notebook we demonstrate how to calculate Lagrangian descriptors for two-dimensional stochastic dynamical systems with additive noise. We do so by applying it to three simple examples: the linear saddle, the Duffing oscillator and the Double Gyre flow.

Noisy Saddle

The stochastic dynamical system representing the linear saddle is described by the following SDEs:

\begin{cases} d X_t = X_t \, dt + \sigma_1 dW_t^1 \\[.2cm] d Y_t = -Y_t \, dt + \sigma_2 dW_t^2 \end{cases}

where $W^1$ and $W^2$ are Wiener processes.

Define the linear saddle deterministic vector field

Define the 2D Grid to Compute LDs

Construct iterative solution map using Euler-Maruyama scheme

Define Lagrangian Descriptor

Compute LDs and Plot Results

Several experiments

Stochastic Lagrangian descriptors can be calculated for several random experiments and the output obtained is the expectation value of all trials

Noisy Duffing Oscillator

The stochastic Duffing oscillator is described by the system of SDEs:

\begin{cases} d X_t = Y_t \, dt + \sigma_1 d W_t^1 \\[.2cm] d Y_t = \left(\alpha X_t - \beta X_t^3 \right) \, dt + \sigma_2 d W_t^2 \end{cases}

Define the deterministic part of the vector field

Define the 2D Grid to Compute LDs

Construct iterative solution map using Euler-Maruyama scheme

Define the Lagrangian Descriptor

Compute LDs and Plot Results

Several experiments

Noisy Double Gyre

The stochastic dynamical system corresponding to the double gyre flow is described by the following SDEs:

\begin{cases} d X_t = \left(-\pi A \sin\left(\dfrac{\pi f(X_t,t)}{s}\right)\cos\left(\dfrac{\pi Y_t}{s}\right) - \mu X_t\right) \, dt + \sigma_1 \, dW_t^1 \\[.2cm] d Y_t = \left(\pi A \cos\left(\dfrac{\pi f(X_t,t)}{s}\right)\sin\left(\dfrac{\pi Y_t}{s}\right)\dfrac{\partial f}{\partial x}\left(X_t,t\right) - \mu Y_t\right) \, dt + \sigma_2 \, dW_t^2 \end{cases}

where $W^1$ and $W^2$ are Wiener processes and we have that:

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

Define the deterministic part of the vector field

Define the 2D Grid to Compute LDs

Construct iterative solution map using Euler-Maruyama scheme

Define the Lagrangian Descriptor

Compute LDs and Plot Results

Several experiments