File:Inclinedthrow.gif
Wikimedia Commons থেকে
পরিভ্রমণে চলুন
অনুসন্ধানে চলুন
Inclinedthrow.gif (৪০০ × ২৮৮ পিক্সেল, ফাইলের আকার: ৩৭৪ কিলোবাইট, এমআইএমই ধরন: image/gif, লুপকৃত, ১০২ ফ্রেম, ১০ সে)
ফাইলের তথ্য
কাঠামোবদ্ধ উপাত্ত
ক্যাপশনসমূহ
সারাংশ
[সম্পাদনা]বিবরণInclinedthrow.gif |
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 | এই GIF গ্রাফিক্সটি 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)
|
লাইসেন্স প্রদান
[সম্পাদনা]আমি, এই কাজের স্বত্বাধিকারী, এতদ্দ্বারা আমি এই কাজকে নিম্ন বর্ণিত লাইসেন্সের আওতায় প্রকাশ করলাম:
এই ফাইলটি ক্রিয়েটিভ কমন্স অ্যাট্রিবিউশন-শেয়ার অ্যালাইক ৩.০ আনপোর্টেড লাইসেন্সের আওতায় লাইসেন্সকৃত।
- আপনি স্বাধীনভাবে:
- বণ্টন করতে পারেন – এ কাজটি অনুলিপি, বিতরণ এবং প্রেরণ করতে পারেন
- পুনঃমিশ্রণ করতে পারেন – কাজটি অভিযোজন করতে পারেন
- নিম্নের শর্তাবলীর ভিত্তিতে:
- স্বীকৃতিপ্রদান – আপনাকে অবশ্যই যথাযথ স্বীকৃতি প্রদান করতে হবে, লাইসেন্সের একটি লিঙ্ক সরবরাহ করতে হবে এবং কোনো পরিবর্তন হয়েছে কিনা তা নির্দেশ করতে হবে। আপনি যেকোনো যুক্তিসঙ্গত পদ্ধতিতে এটি করতে পারেন। কিন্তু এমন ভাবে নয়, যাতে প্রকাশ পায় যে লাইসেন্সধারী আপনাকে বা আপনার এই ব্যবহারের জন্য অনুমোদন দিয়েছে।
- একইভাবে বণ্টন – আপনি যদি কাজটি পুনঃমিশ্রণ, রুপান্তর, বা এর ওপর ভিত্তি করে নতুন সৃষ্টিকর্ম তৈরি করেন, তবে আপনাকে অবশ্যই আপনার অবদান একই লাইসেন্স বা একই রকমের লাইসেন্সের আওতায় বিতরণ করতে হবে।
ফাইলের ইতিহাস
যেকোনো তারিখ/সময়ে ক্লিক করে দেখুন ফাইলটি তখন কী অবস্থায় ছিল।
তারিখ/সময় | সংক্ষেপচিত্র | মাত্রা | ব্যবহারকারী | মন্তব্য | |
---|---|---|---|---|---|
বর্তমান | ১৬:১০, ২১ অক্টোবর ২০২০ | ৪০০ × ২৮৮ (৩৭৪ কিলোবাইট) | Geek3 (আলোচনা | অবদান) | adjusted friction coefficients such to make terminal velocity of both trajectories equal. In this case, the Newton projectile moves further. | |
১২:৫৭, ২১ অক্টোবর ২০০৯ | ৪০০ × ২৮৮ (৪৫৩ কিলোবাইট) | AllenMcC. (আলোচনা | অবদান) | added Newton drag | ||
০০:৪০, ২২ ডিসেম্বর ২০০৮ | ৪০০ × ২৯৯ (৩৯৩ কিলোবাইট) | 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 | ||
২০:১২, ১৮ ডিসেম্বর ২০০৮ | ৪০০ × ২৯৯ (৩৯৩ কিলোবাইট) | 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 | ||
০৪:০৭, ১৫ ডিসেম্বর ২০০৮ | ৭০০ × ৫১৯ (৬৩৬ কিলোবাইট) | 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 |
আপনি এই ফাইলটি প্রতিস্থাপন করতে পারবেন না।
ফাইলের ব্যবহার
এই ফাইল ব্যবহার করে এমন কোনো পাতা নেই।
ফাইলের বৈশ্বিক ব্যবহার
নিচের অন্যান্য উইকিগুলো এই ফাইলটি ব্যবহার করে:
- af.wikipedia.org-এ ব্যবহার
- ar.wikipedia.org-এ ব্যবহার
- be.wikipedia.org-এ ব্যবহার
- bg.wikipedia.org-এ ব্যবহার
- bn.wikipedia.org-এ ব্যবহার
- bs.wikipedia.org-এ ব্যবহার
- ca.wikipedia.org-এ ব্যবহার
- cv.wikipedia.org-এ ব্যবহার
- da.wikipedia.org-এ ব্যবহার
- de.wikipedia.org-এ ব্যবহার
- el.wikipedia.org-এ ব্যবহার
- en.wikipedia.org-এ ব্যবহার
- Wave–particle duality
- Trajectory
- Ballistics
- Drag (physics)
- Talk:Field line
- Wikipedia talk:Requests for arbitration/Tang Dynasty
- Wikipedia:Requests for arbitration/Tang Dynasty/Workshop
- User:Enkyo2/Sandbox-L
- Talk:Senkaku Islands/Archive 5
- Bouncing ball
- Wikipedia:Arbitration/Requests/Clarification and Amendment/Archive 34
- User:Eelaraa/Drag (physics)
- eo.wikipedia.org-এ ব্যবহার
- es.wikipedia.org-এ ব্যবহার
- eu.wikipedia.org-এ ব্যবহার
- fa.wikipedia.org-এ ব্যবহার
- fi.wikipedia.org-এ ব্যবহার
- ga.wikipedia.org-এ ব্যবহার
- he.wikipedia.org-এ ব্যবহার
- hi.wikipedia.org-এ ব্যবহার
- hr.wikipedia.org-এ ব্যবহার
- ht.wikipedia.org-এ ব্যবহার
- hu.wikipedia.org-এ ব্যবহার
- hy.wikipedia.org-এ ব্যবহার
এই ফাইলের অন্যান্য বৈশ্বিক ব্যবহার দেখুন।