File:LuChenAttractorModified3D.svg

Original file(SVG file, nominally 720 × 540 pixels, file size: 19.8 MB)

Summary

Description
English: Modified Lu Chen attractor
Date
Source Own work
Author Shiyu Ji

Python/Matplotlib Code

# A 3D Euler method based simulation of the Modified Lu Chen system with d2 = 0.
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as pl
import numpy as np

t0 = 0.0
dt = 0.001
t_final = 100
T = np.arange(t0, t_final, dt)
a, b, c, d0, d1, d2, tau = 35, 3, 28, 1, 1, 0, 0.2
ax = pl.figure().add_subplot(111, projection='3d')
ax.set_xlim([-40, 40])
ax.set_ylim([-30, 30])
ax.set_zlim([0, 40])
ax.set_xticks(np.arange(-40,40,10))
ax.set_yticks(np.arange(-30,30,10))
ax.set_zticks(np.arange(0,50,10))
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')

x, y, z = 1, 1, 14
from collections import deque
Z = deque([z]) # queue of z's at tau time ago
for t in T:
    f = d0*z + d1*Z[0] - d2*np.sin(Z[0])
    new_x = x + a*(y-x) * dt
    new_y = y + ((c-a)*x - x*f + c*y) * dt
    new_z = z + (x*y - b*z) * dt
    ax.plot([x, new_x], [y, new_y], [z, new_z], 'b-', linewidth=0.5)
    x, y, z = new_x, new_y, new_z
    Z.append(z)
    if t>tau: Z.popleft()

pl.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

11 November 2016

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:21, 11 November 2016Thumbnail for version as of 09:21, 11 November 2016720 × 540 (19.8 MB)Shiyu JiUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata