Lorenz 96 model

Last updated

The Lorenz 96 model is a dynamical system formulated by Edward Lorenz in 1996. [1] It is defined as follows. For :

Contents

where it is assumed that and and . Here is the state of the system and is a forcing constant. is a common value known to cause chaotic behavior.

It is commonly used as a model problem in data assimilation. [2]

Python simulation

Plot of the first three variables of the simulation Lorenz 96.svg
Plot of the first three variables of the simulation
frommpl_toolkits.mplot3dimportAxes3Dfromscipy.integrateimportodeintimportmatplotlib.pyplotaspltimportnumpyasnp# These are our constantsN=5# Number of variablesF=8# ForcingdefL96(x,t):"""Lorenz 96 model with constant forcing"""# Setting up vectord=np.zeros(N)# Loops over indices (with operations and Python underflow indexing handling edge cases)foriinrange(N):d[i]=(x[(i+1)%N]-x[i-2])*x[i-1]-x[i]+Freturndx0=F*np.ones(N)# Initial state (equilibrium)x0[0]+=0.01# Add small perturbation to the first variablet=np.arange(0.0,30.0,0.01)x=odeint(L96,x0,t)# Plot the first three variablesfig=plt.figure()ax=fig.gca(projection="3d")ax.plot(x[:,0],x[:,1],x[:,2])ax.set_xlabel("$x_1$")ax.set_ylabel("$x_2$")ax.set_zlabel("$x_3$")plt.show()

Julia simulation

usingDynamicalSystems,PyPlotPyPlot.using3D()# parameters and initial conditionsN=5F=8.0u₀=F*ones(N)u₀[1]+=0.01# small perturbation# The Lorenz-96 model is predefined in DynamicalSystems.jl:ds=Systems.lorenz96(N;F=F)# Equivalently, to define a fast version explicitly, do:structLorenz96{N}end# Structure for size typefunction(obj::Lorenz96{N})(dx,x,p,t)where{N}F=p[1]# 3 edge cases explicitly (performance)@inboundsdx[1]=(x[2]-x[N-1])*x[N]-x[1]+F@inboundsdx[2]=(x[3]-x[N])*x[1]-x[2]+F@inboundsdx[N]=(x[1]-x[N-2])*x[N-1]-x[N]+F# then the general casefornin3:(N-1)@inboundsdx[n]=(x[n+1]-x[n-2])*x[n-1]-x[n]+Fendreturnnothingendlor96=Lorenz96{N}()# create structds=ContinuousDynamicalSystem(lor96,u₀,[F])# And now evolve a trajectorydt=0.01# sampling timeTf=30.0# final timetr=trajectory(ds,Tf;dt=dt)# And plot in 3D:x,y,z=columns(tr)plot3D(x,y,z)

Related Research Articles

In mathematics, the Laplace transform, named after its inventor Pierre-Simon Laplace, is an integral transform that converts a function of a real variable to a function of a complex variable . The transform has many applications in science and engineering because it is a tool for solving differential equations. In particular, it transforms linear differential equations into algebraic equations and convolution into multiplication.

Attractor Concept in dynamical systems

In the mathematical field of dynamical systems, an attractor is a set of states toward which a system tends to evolve, for a wide variety of starting conditions of the system. System values that get close enough to the attractor values remain close even if slightly disturbed.

Geometric Brownian motion

A geometric Brownian motion (GBM) is a continuous-time stochastic process in which the logarithm of the randomly varying quantity follows a Brownian motion with drift. It is an important example of stochastic processes satisfying a stochastic differential equation (SDE); in particular, it is used in mathematical finance to model stock prices in the Black–Scholes model.

Autonomous system (mathematics) Math

In mathematics, an autonomous system or autonomous differential equation is a system of ordinary differential equations which does not explicitly depend on the independent variable. When the variable is time, they are also called time-invariant systems.

Gaussian integral Integral of the Gaussian function, equal to sqrt(π)

The Gaussian integral, also known as the Euler–Poisson integral, is the integral of the Gaussian function over the entire real line. Named after the German mathematician Carl Friedrich Gauss, the integral is

Model predictive control (MPC) is an advanced method of process control that is used to control a process while satisfying a set of constraints. It has been in use in the process industries in chemical plants and oil refineries since the 1980s. In recent years it has also been used in power system balancing models and in power electronics. Model predictive controllers rely on dynamic models of the process, most often linear empirical models obtained by system identification. The main advantage of MPC is the fact that it allows the current timeslot to be optimized, while keeping future timeslots in account. This is achieved by optimizing a finite time-horizon, but only implementing the current timeslot and then optimizing again, repeatedly, thus differing from a linear–quadratic regulator (LQR). Also MPC has the ability to anticipate future events and can take control actions accordingly. PID controllers do not have this predictive ability. MPC is nearly universally implemented as a digital control, although there is research into achieving faster response times with specially designed analog circuitry.

Dirichlet integral Integral of sin(x)/x from 0 to infinity.

In mathematics, there are several integrals known as the Dirichlet integral, after the German mathematician Peter Gustav Lejeune Dirichlet, one of which is the improper integral of the sinc function over the positive real line:

Rössler attractor Attractor for chaotic Rössler system

The Rössler attractor is the attractor for the Rössler system, a system of three non-linear ordinary differential equations originally studied by Otto Rössler in the 1970s. These differential equations define a continuous-time dynamical system that exhibits chaotic dynamics associated with the fractal properties of the attractor.

Phase plane

In applied mathematics, in particular the context of nonlinear system analysis, a phase plane is a visual display of certain characteristics of certain kinds of differential equations; a coordinate plane with axes being the values of the two state variables, say, or etc.. It is a two-dimensional case of the general n-dimensional phase space.

In calculus, the Leibniz integral rule for differentiation under the integral sign, named after Gottfried Leibniz, states that for an integral of the form

Ikeda map

In physics and mathematics, the Ikeda map is a discrete-time dynamical system given by the complex map

Lorenz system System of ordinary differential equations with chaotic solutions

The Lorenz system is a system of ordinary differential equations first studied by mathematician and meteorologist Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. In particular, the Lorenz attractor is a set of chaotic solutions of the Lorenz system. In popular media the "butterfly effect" stems from the real-world implications of the Lorenz attractor, i.e. that in any physical system, in the absence of perfect knowledge of the initial conditions, our ability to predict its future course will always fail. This underscores that physical systems can be completely deterministic and yet still be inherently unpredictable even in the absence of quantum effects. The shape of the Lorenz attractor itself, when plotted graphically, may also be seen to resemble a butterfly.

In Itô calculus, the Euler–Maruyama method is a method for the approximate numerical solution of a stochastic differential equation (SDE). It is an extension of the Euler method for ordinary differential equations to stochastic differential equations. It is named after Leonhard Euler and Gisiro Maruyama. Unfortunately, the same generalization cannot be done for any arbitrary deterministic method.

In mathematics, the Milstein method is a technique for the approximate numerical solution of a stochastic differential equation. It is named after Grigori N. Milstein who first published the method in 1974.

The PROPT MATLAB Optimal Control Software is a new generation platform for solving applied optimal control and parameters estimation problems.

In mathematics, the slow manifold of an equilibrium point of a dynamical system occurs as the most common example of a center manifold. One of the main methods of simplifying dynamical systems, is to reduce the dimension of the system to that of the slow manifold—center manifold theory rigorously justifies the modelling. For example, some global and regional models of the atmosphere or oceans resolve the so-called quasi-geostrophic flow dynamics on the slow manifold of the atmosphere/oceanic dynamics, and is thus crucial to forecasting with a climate model.

In dynamical systems, a branch of mathematics, an invariant manifold is a topological manifold that is invariant under the action of the dynamical system. Examples include the slow manifold, center manifold, stable manifold, unstable manifold, subcenter manifold and inertial manifold.

Multiscroll attractor

In the mathematics of dynamical systems, the double-scroll attractor is a strange attractor observed from a physical electronic chaotic circuit with a single nonlinear resistor. The double-scroll system is often described by a system of three nonlinear ordinary differential equations and a 3-segment piecewise-linear equation. This makes the system easily simulated numerically and easily manifested physically due to Chua's circuits' simple design.

The GEKKO Python package solves large-scale mixed-integer and differential algebraic equations with nonlinear programming solvers. Modes of operation include machine learning, data reconciliation, real-time optimization, dynamic simulation, and nonlinear model predictive control. In addition, the package solves Linear programming (LP), Quadratic programming (QP), Quadratically constrained quadratic program (QCQP), Nonlinear programming (NLP), Mixed integer programming (MIP), and Mixed integer linear programming (MILP). GEKKO is available in Python and installed with pip from PyPI of the Python Software Foundation.

Spectral submanifold

In dynamical systems, a spectral submanifold (SSM) is the unique smoothest invariant manifold serving as the nonlinear extension of a spectral subspace of a linear dynamical system under the addition of nonlinearities. SSM theory provides conditions for when invariant properties of eigenspaces of a linear dynamical system can be extended to a nonlinear system, and therefore motivates the use of SSMs in nonlinear dimensionality reduction.

References

  1. Lorenz, Edward (1996). "Predictability – A problem partly solved" (PDF). Seminar on Predictability, Vol. I, ECMWF.
  2. Ott, Edward; et al. (2002). "A Local Ensemble Kalman Filter for Atmospheric Data Assimilation". arXiv: physics/0203058 .