LDDS

Tutorial 4: Lagrangian descriptors for a user-defined 1 DoF dynamical system

In this notebook we will show how to calculate Lagrangian descriptors for a 1 DoF dynamical system defined by the user.

We begin by importing the LDDS module, and from it, all the functions necessary to calculate and plot LDs.

The Morse oscillator

The Hamiltonian function that describes the Morse oscillator is:

\begin{equation*} H(x,p_x) = \dfrac{1}{2m}p_x^2 + D\left(1 - e^{-\alpha x}\right)^2 \end{equation*}

where $m$ is the mass, $D$ represents the well depth and $\alpha$ controls the well width. The vector field that defines the dynamical system is given by:

\begin{align} \dot{x} & = \dfrac{\partial H}{\partial p_x} = f_1(x,p_x) = \dfrac{p_x}{m} \\[.2cm] \dot{p}_x & = -\dfrac{\partial H}{\partial x} = f_2(x,p_x) = -2 D\,\alpha \left(e^{-\alpha x} - e^{-2\alpha x}\right) \end{align}

Define the Morse1D function containing the two-dimensional dynamical system

Define 2D grid to compute LDs

Setup vector field and model parameters

Compute and draw LDs at time $t = t_0$

We change next the model parameters:

Compute and draw LDs at time $t = t_0$