File:DoubleScrollAttractor3D.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 768 × 576 pixels, file size: 642 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Double Scroll attractor from Guanrong Chen and Ueta's paper (1999).
    Date
    Source Own work
    Author Shiyu Ji

    Python/Matplotlib Code

    # A 3D Euler method based simulation of the Double Scroll system.
    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 = 40, 3, 28
    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 = -0.1, 0.5, -0.6
    for t in T:
        new_x = x + a*(y-x) * dt
        new_y = y + ((c-a)*x - x*z + 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
    
    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

    5 November 2016

    image/svg+xml

    657,734 byte

    5c7158f5e5077346cba262fd3422278c930c1804

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current23:32, 29 May 2022Thumbnail for version as of 23:32, 29 May 2022768 × 576 (642 KB)wikimediacommons>SemperVincoPut plot into a single path

    There are no pages that use this file.