ファイル:Poincare (stroboscopic) map forced pendulum chaos and torus.png

提供: testwiki
ナビゲーションに移動 検索に移動
    元のファイル (575 × 435 ピクセル、ファイルサイズ: 47キロバイト、MIME タイプ: image/png)

    このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。

    概要

    解説
    English: Poincare map (stroboscopic map) of the following ODE of periodically forced pendulum:
    dxdt=y
    dydt=−sin⁡x+Bsin⁡Ωt

    x is the angle of pendulum and y is the angular velocity. B and Ω are parameters and B = 0.1 and Ω = 1 were used in this calculation. The graph includes the plots of various initial conditions (x0, y0) = (0, −2.4), (0, −1.9), ... (0, 2.6). The plot of each color corresponds to one orbit (solution) of the ODE for each initial condition. The solutions were obtained numerically, then the values of x and y at time intervals of 2π/Ω were plotted.

    日本語: 下記の周期的な外力を受ける単振り子の系のポアンカレ写像(ストロボ写像)
    dxdt=y
    dθdt=−sin⁡x+Bsin⁡Ωt
    ここで、変数 x と y は振り子の角度と角速度を、パラメータ B と Ω は周期的な外力の強さと角速度を意味する。Ω = 1, B = 0.1 の場合。それぞれの色のプロットが別々の初期値から出発する1本の解軌道に対応する。数値計算で解いて、時間 2π/Ω ごとの x, y の値をプロットした。
    日付
    原典 投稿者自身による著作物
    作者 Yapparina
    Python source
    InfoField
    import numpy as np
    from scipy.integrate import odeint
    import matplotlib.pyplot as plt
    
    #微分方程式を定義、単振り子に周期的な外力が働く非減衰保存系、x=x[0]は角度、y=x[1]は角速度、井上・秦 1999, p. 118.参考
    def forced_pend(x: np.ndarray, t:float) -> np.ndarray:
        dx = x[1]
        dy = -np.sin(x[0]) + B * np.sin(Omega*t)
        return(np.array([dx, dy]))
    
    # パラメータ
    B = 0.1
    Omega = 1
    
    divnum = 100                # 計算時間刻み幅を2piの何等分にするか
    dt = 2*np.pi/Omega/divnum   # 計算時間刻み幅
    t0 = 0                      # 初期時刻
    totalnum = 200000           # 計算繰り返し数
    T = dt * totalnum           # 計算総時間
    times = np.arange(t0, T, dt)
    
    xin = 0                     # xの初期値の初期値
    yin = -2.4                  # yの初期値の初期値
    
    stroboID=np.arange(0, totalnum, divnum) # ストロボ写像で抜き出す分のリスト番号(t = 2pi x 自然数 に相当するリスト番号))を定義
    
    # グラフの用意
    fig, ax = plt.subplots()
    xlabel = 'x'
    ylabel = 'y'
    ax.set_xlabel(xlabel,fontsize=14, fontstyle="italic")
    ax.set_ylabel(ylabel,fontsize=14, fontstyle="italic")
    
    # プロットカラーのリストの用意
    color_list = ["red","blue","orange","green", "pink", "gray", "purple", "teal", "brown", "black", "gold"]    
    colornum = 0 
    
    while yin <= 3:  
        # x,yの初期値    
        x0 = [xin, yin]
    
        # 微分方程式を解き、ストロボ写像の点を抽出
        orbit = odeint(forced_pend, x0, times)
        strobo_orbit = orbit[stroboID]
    
        # xをθ([-pi, pi]のあいだの数値)に変換
        theta_int = np.trunc(strobo_orbit[:,0] /np.pi)
        numb=len(theta_int)
        twopi_num = []
        for i in range(numb):
            if theta_int[i] % 2 == 0:
                ev=theta_int[i]/2
                twopi_num.append(ev)
            else:
                if theta_int[i] >= 0:
                    op = (theta_int[i]+1)/2
                    twopi_num.append(op)
                else:
                    on=(theta_int[i]-1)/2
                    twopi_num.append(on)
        theta_strobo_pre = strobo_orbit[:,0]/ (2*np.pi) - twopi_num
        theta_strobo_orbit = theta_strobo_pre * 2*np.pi
    
        # 1つの軌道のストロボ写像の点をプロット
        ax.plot(theta_strobo_orbit, strobo_orbit[:,1], '.', markersize=1, color=color_list[colornum])
    
        yin += 0.5
        colornum +=1
    
    plt.show()
    

    ライセンス

    この作品の著作権者である私は、この作品を以下のライセンスで提供します。
    Creative Commons CC-Zero このファイルはクリエイティブ・コモンズ CC0 1.0 全世界 パブリック・ドメイン提供のもとで利用可能にされています。
    ある作品に本コモンズ証を関連づけた者は、その作品について世界全地域において著作権法上認められる、その者が持つすべての権利(その作品に関する権利や隣接する権利を含む。)を、法令上認められる最大限の範囲で放棄して、パブリック・ドメインに提供しています。

    この作品は、たとえ営利目的であっても、許可を得ずに複製、改変・翻案、配布、上演・演奏することが出来ます。

    キャプション

    このファイルの内容を1行で記述してください

    このファイルに描写されている項目

    題材

    10 5 2025

    47,748 バイト

    435 ピクセル

    575 ピクセル

    0da568726647b03eec29e943605cc822b01d2ce3

    ファイルの履歴

    過去の版のファイルを表示するには、その版の日時をクリックしてください。

    日時サムネイル寸法利用者コメント
    現在の版2025年5月10日 (土) 14:172025年5月10日 (土) 14:17時点における版のサムネイル575 × 435 (47キロバイト)wikimediacommons>YapparinaUploaded own work with UploadWizard

    このファイルを使用しているページはありません。