ဖိုင်:Inclinedthrow.gif

အခြားဘာသာစကားများဖြင့် စာမျက်နှာအကြောင်းအရာများကို ပံ့ပိုးမထားပါ။
This is a file from the Wikimedia Commons
ဝီကီပီးဒီးယား မှ

Inclinedthrow.gif(၄၀၀ × ၂၈၈ pixels, ဖိုင်အရွယ်အစား - ၃၇၄ KB, MIME အမျိုးအစား image/gif, looped, ၁၀၂ frames, ၁၀ s)

အကျဉ်းချုပ်

ဖော်ပြချက်
English: Trajectories of three objects thrown at the same angle (70°). The black object doesn't experience any form of drag and moves along a parabola. The blue object experiences Stokes' drag, and the green object Newton drag.
ရက်စွဲ
ရင်းမြစ် ကိုယ်ပိုင်ဖန်တီးမှု
စာရေးသူ AllenMcC.
အခြား ဗားရှင်းများ Inclinedthrow2.gif
GIF genesis
InfoField
 
This plot was created with Matplotlib.
ဆို့စ်ကုတ်ဒ်
InfoField

Python code

#!/usr/bin/python3
# -*- coding: utf8 -*-

import os
import inspect
from math import *
import numpy as np
from scipy.integrate import odeint
from scipy.optimize import newton
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import animation

# settings
mpl.rcParams['path.snap'] = False
fname = 'inclinedthrow'
size = 400, 288
l, w, b, h = 22.5/size[0], 1-23/size[0], 22.5/size[1], 1-23/size[1]
nframes = 102
delay = 8
lw = 1.
ms = 6
c1, c2, c3 = "#000000", "#0000ff", "#007100"

def projectile_motion(g, mu, pot, xy0, vxy0, tt):
    # use a four-dimensional vector function vec = [x, y, vx, vy]
    def dif(vec, t):
        # time derivative of the whole vector vec
        v = hypot(vec[2], vec[3])
        vxrel, vyrel = vec[2] / v, vec[3] / v
        return [vec[2], vec[3], -mu * v**pot * vxrel, -g - mu * v**pot * vyrel]

    # solve the differential equation numerically
    vec = odeint(dif, [xy0[0], xy0[1], vxy0[0], vxy0[1]], tt)
    return vec[:, 0], vec[:, 1], vec[:, 2], vec[:, 3]  # return x, y, vx, vy

g = 1.
theta  = radians(70)
v0 = sqrt(g/sin(2*theta))
vinf = 2.1
# use identical terminal velocity vinf for both types of friction
mu_stokes = g / vinf**1
mu_newton = g / vinf**2
x0, y0 = 0.0, 0.0
vx0, vy0 = v0 * cos(theta), v0 * sin(theta)

T = newton(lambda t: projectile_motion(g, 0, 0, (x0, y0), (vx0, vy0), [0, t])[1][1], 2*vy0/g)
nsub = 10
tt = np.linspace(0, T * nframes / (nframes - 1), (nframes - 1) * nsub + 1)

traj_free = projectile_motion(g, 0, 0, (x0, y0), (vx0, vy0), tt)
traj_stokes = projectile_motion(g, mu_stokes, 1, (x0, y0), (vx0, vy0), tt)
traj_newton = projectile_motion(g, mu_newton, 2, (x0, y0), (vx0, vy0), tt)

def animate(nframe, saveframes=False):
    print(nframe, '/', nframes)
    t = T * float(nframe) / nframes
    
    plt.clf()
    fig.gca().set_position((l, b, w, h))
    fig.gca().set_aspect("equal")
    plt.xlim(0, 1)
    plt.ylim(0, (h*size[1]) / (w*size[0]))
    plt.xticks([]), plt.yticks([])
    plt.xlabel('Distance', size=12)
    plt.ylabel('Height', size=12)
    
    plt.plot(traj_free[0][:nframe*nsub+1], traj_free[1][:nframe*nsub+1],
        '-', lw=lw, color=c1)
    plt.plot(traj_free[0][nframe*nsub], traj_free[1][nframe*nsub],
        'ok', color=c1, markersize=ms, markeredgewidth=0)
    
    plt.plot(traj_stokes[0][:nframe*nsub+1], traj_stokes[1][:nframe*nsub+1],
        '-', lw=lw, color=c2)
    plt.plot(traj_stokes[0][nframe*nsub], traj_stokes[1][nframe*nsub],
        'ok', color=c2, markersize=ms, markeredgewidth=0)
    
    plt.plot(traj_newton[0][:nframe*nsub+1], traj_newton[1][:nframe*nsub+1],
        '-', lw=lw, color=c3)
    plt.plot(traj_newton[0][nframe*nsub], traj_newton[1][nframe*nsub],
        'ok', color=c3, markersize=ms, markeredgewidth=0)
    
    if saveframes:
        # export frame
        dig = int(ceil(log10(nframes)))
        fsavename = ('frame{:0' + str(dig) + '}.svg').format(nframe)
        fig.savefig(fsavename)
        with open(fsavename) as f: content = f.read()
        content = content.replace('pt"', 'px"').replace('pt"', 'px"')
        with open(fsavename, 'w') as f: f.write(content)

fig = plt.figure(figsize=(size[0]/72., size[1]/72.))

os.chdir(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))
for i in range(nframes):
    animate(i, True)
os.system('convert -loop 0 -delay ' + str(delay) + ' frame*.svg +dither ' + fname + '.gif')
# keep last frame for two seconds
os.system('gifsicle -k32 --color-method blend-diversity -b ' + fname + '.gif -d' + str(delay) + ' "#0-' + str(nframes-2) + '" -d200 "#' + str(nframes-1) + '"')
for i in os.listdir('.'):
    if i.startswith('frame') and i.endswith('.svg'):
        os.remove(i)

လိုင်စင်သတ်မှတ်ခြင်း

ကျွန်ုပ်၊ ဤလုပ်ဆောင်ချက်၏ မူပိုင်ခွင့်ပိုင်ရှင်အနေဖြင့် ဤနေရာမှ အောက်ပါလိုင်စင်အောက်တွင် ထုတ်လွှင့်ပါသည်:
w:my:Creative Commons
မှတ်ယူနိုင်ခြင်း ထပ်တူမျှဝေ
ဤဖိုင်ကို Creative Commons Attribution-Share Alike 3.0 Unported လိုင်စင်ဖြင့် သတ်မှတ်ထားသည်။
သင်သည် လွတ်လပ်စွာ:
  • မျှဝေရန် – ဖန်တီးမှုကို ကူးယူရန်၊ ဖြန့်ဖြူးရန်နှင့် ထုတ်လွှင့်ရန်
  • ပြန်ရောနှောရန် – ဖန်တီးမှုကို ပြင်ဆင်ညှိနှိုင်းရန်
အောက်ပါ အခြေအနေများတွင်:
  • မှတ်ယူနိုင်ခြင်း – ပြောင်းလဲမှုများ ပြုလုပ်ခဲ့ပါက ဖန်တီးသူ သို့မဟုတ် လိုင်စင်ရှိသူမှ သတ်မှတ်သော အမျိုးအစားကို လိုက်နာရမည် (ဆိုလိုသည်မှာ သင့်အား သို့မဟုတ် သင့်ဖန်တီးမှုတွင် အသုံးပြုခြင်းအား ထောက်ခံချက်ပေးသည်ဟု မဆိုလိုပါ)။
  • ထပ်တူမျှဝေ – ဤဖန်တီးမှုအား ပြင်ဆင်ခြင်း၊ ပြောင်းလဲခြင်း သို့မဟုတ် ထပ်ဆင့် ဖန်တီးခြင်း ပြုလုပ်ပါက ရရှိလာသော ဖန်တီးမှုကို ဤဖန်တီးမှုနှင့် သို့မဟုတ် ဆင်တူသော လိုင်စင်ဖြင့်သာ ဖြန့်ချိသင့်သည်။

ပုံစာများ

ဤဖိုင်၏ဆိုလိုရင်းကို စာတစ်ကြောင်းရှင်းလင်းချက်ဖြင့် ထည့်သွင်းရန်

Items portrayed in this file

depicts အင်္ဂလိပ်

ဖိုင်မှတ်တမ်း

ဖိုင်ကို ယင်းနေ့စွဲ အတိုင်း မြင်နိုင်ရန် နေ့စွဲ/အချိန် တစ်ခုခုပေါ်တွင် ကလစ်နှိပ်ပါ။

နေ့စွဲ/အချိန်နမူနာပုံငယ်မှတ်တမ်း ဒိုင်မန်းရှင်းများအသုံးပြုသူမှတ်ချက်
ကာလပေါ် ၁၆:၁၀၊ ၂၁ အောက်တိုဘာ ၂၀၂၀ ၁၆:၁၀၊ ၂၁ အောက်တိုဘာ ၂၀၂၀ ရက်က မူအတွက် နမူနာပုံငယ်၄၀၀ × ၂၈၈ (၃၇၄ KB)Geek3adjusted friction coefficients such to make terminal velocity of both trajectories equal. In this case, the Newton projectile moves further.
၁၂:၅၇၊ ၂၁ အောက်တိုဘာ ၂၀၀၉ ၁၂:၅၇၊ ၂၁ အောက်တိုဘာ ၂၀၀၉ ရက်က မူအတွက် နမူနာပုံငယ်၄၀၀ × ၂၈၈ (၄၅၃ KB)AllenMcC.added Newton drag
၀၀:၄၀၊ ၂၂ ဒီဇင်ဘာ ၂၀၀၈ ၀၀:၄၀၊ ၂၂ ဒီဇင်ဘာ ၂၀၀၈ ရက်က မူအတွက် နမူနာပုံငယ်၄၀၀ × ၂၉၉ (၃၉၃ KB)AllenMcC.== Summary == {{Information |Description={{en|1=Trajectories of two objects thrown at the same angle. The blue object doesn't experience any drag and moves along a parabola. The black object experiences Stokes' drag.}} |Source=Own work by uploader |Author
၂၀:၁၂၊ ၁၈ ဒီဇင်ဘာ ၂၀၀၈ ၂၀:၁၂၊ ၁၈ ဒီဇင်ဘာ ၂၀၀၈ ရက်က မူအတွက် နမူနာပုံငယ်၄၀၀ × ၂၉၉ (၃၉၃ KB)AllenMcC.== Summary == {{Information |Description={{en|1=Trajectories of two objects thrown at the same angle. The blue object doesn't experience any drag and moves along a parabola. The black object experiences Stokes' drag.}} |Source=Own work by uploader |Author
၀၄:၀၇၊ ၁၅ ဒီဇင်ဘာ ၂၀၀၈ ၀၄:၀၇၊ ၁၅ ဒီဇင်ဘာ ၂၀၀၈ ရက်က မူအတွက် နမူနာပုံငယ်၇၀၀ × ၅၁၉ (၆၃၆ KB)AllenMcC.{{Information |Description={{en|1=Trajectories of two objects thrown at the same angle. The blue object doesn't experience friction and moves along a parabola. The black object experiences Stokes friction.}} |Source=Own work by uploader |Author=[[User:All

ဤဖိုင်ကို အသုံးပြုထားသော စာမျက်နှာများမရှိပါ။

ဂလိုဘယ် ဖိုင်သုံးစွဲမှု

အောက်ပါ အခြားဝီကီများတွင် ဤဖိုင်ကို အသုံးပြုထားသည်-

ဤဖိုင်ကို အခြားနေရာများတွင် အသုံးပြုထားမှုများအား ကြည့်ရှုရန်။