ファイル:Poincare(Stroboscopic)Map ForcedDampedPendulum Strange.png

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

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

    概要

    解説
    English: Example of Poincare map (stroboscopic map) of the following ODE of periodically forced damped pendulum:
    dxdt=y
    dydt=−γy−sin⁡x+Bcos⁡Ωt
    x is the angle of pendulum and y is the angular velocity. γ, B and Ω are parameters; γ = 0.25, B = 1.5 and Ω = 2/3 were used in this calculation. The calculated values of x and y at time intervals of 2π/Ω were plotted in the figure. The lower figure is an enlarged view of square area in the upper figure.
    日付
    原典 投稿者自身による著作物
    作者 Yapparina
    Python source
    InfoField
    import numpy as np
    from scipy.integrate import odeint
    import matplotlib.pyplot as plt
    
    #微分方程式を定義
    def forced_pend(x: np.ndarray, t:float) -> np.ndarray:
        dx = x[1]
        dy = - gamma * x[1] -np.sin(x[0]) + B * np.cos(Omega*t)
        return(np.array([dx, dy]))
    
    # パラメータ
    gamma = 0.25
    B = 1.5
    Omega = 2/3
    
    divnum = 100                # 計算時間刻み幅を2piの何等分にするか
    dt = 2*np.pi/Omega/divnum   # 計算時間刻み幅
    t0 = 0                      # 初期時刻
    totalnum = 10000000           # 計算繰り返し数
    T = dt * totalnum           # 計算総時間
    times = np.arange(t0, T, dt)
    
    
    xin = 0                # xの初期値の初期値
    yin = 1                # yの初期値の初期値
    x0 = [xin, yin]
    
    stroboID=np.arange(0, totalnum, divnum) # ストロボ写像で抜き出す分のリスト番号(t = 2pi x 自然数 に相当するリスト番号))を定義
    
    
    # 微分方程式を解き、ストロボ写像の点を抽出
    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
    
    # 過渡的な最初の50回分を切り捨て
    astime = 50
    astheta = theta_strobo_orbit[astime:]
    asomega = strobo_orbit[astime:,1]
    
    # 1つの軌道のストロボ写像の点をプロット
    fig, ax = plt.subplots(2,1)
    
    # ax[0].set_xlabel ('x',fontsize=14, fontstyle="italic")
    ax[0].set_ylabel ('y',fontsize=14, fontstyle="italic")
    ax[0].plot(astheta, asomega, '.', markersize=0.1)
    
    ax[1].set_xlabel ('x',fontsize=14, fontstyle="italic")
    ax[1].set_ylabel ('y',fontsize=14, fontstyle="italic")
    ax[1].plot(astheta, asomega, '.', markersize=0.5)
    ax[1].set_xlim(1.70, 2.00)
    ax[1].set_ylim(1.65, 1.75)
    
    plt.show()
    

    ライセンス

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

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

    キャプション

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

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

    題材

    31 5 2025

    ファイルの履歴

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

    日時サムネイル寸法利用者コメント
    現在の版2025年5月31日 (土) 10:222025年5月31日 (土) 10:22時点における版のサムネイル509 × 496 (66キロバイト)wikimediacommons>YapparinaUploaded own work with UploadWizard

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