modeling projectile motion subject to drag forces phys 361 spring, 2011
TRANSCRIPT
![Page 1: Modeling projectile motion subject to drag forces PHYS 361 Spring, 2011](https://reader036.vdocument.in/reader036/viewer/2022071808/56649edc5503460f94bed86c/html5/thumbnails/1.jpg)
Modeling projectile motion subject to drag forces
PHYS 361Spring, 2011
![Page 2: Modeling projectile motion subject to drag forces PHYS 361 Spring, 2011](https://reader036.vdocument.in/reader036/viewer/2022071808/56649edc5503460f94bed86c/html5/thumbnails/2.jpg)
projectile equations of motion
€
dvx
dt=
Fnet,x
m
2-D motion subject to gravity and drag forces
€
Fnet,x = Fdrag cosθ = −b2 v vx
Separate differential equations of motion
€
dvy
dt=
Fnet,y
m
x component
y component
€
Fnet,y = Fdrag sinθ − mg = −b2 v vy − mg
q
€
rv
€
vx€
vy
If we want to solve for position, also... we need two more equations
€
dx
dt= vx
€
dy
dt= vy
![Page 3: Modeling projectile motion subject to drag forces PHYS 361 Spring, 2011](https://reader036.vdocument.in/reader036/viewer/2022071808/56649edc5503460f94bed86c/html5/thumbnails/3.jpg)
Euler method
€
dx
dt≈
Δx
Δt=
x i+1 − x i
Δt
x-position
y-position
x-velocity
y-velocity€
dvx
dt=
−b2 v vx
m
€
dvy
dt=
−b2 v vy − mg
m
€
dx
dt= v
€
dy
dt= w €
x i+1 = x i + v iΔt
€
y i+1 = y i + wiΔt
€
v i+1 = v i − Δtb2
mv i v i
2 + wi2
€
wi+1 = wi + Δt −g −b2
mwi v i
2 + wi2 ⎛
⎝ ⎜
⎞
⎠ ⎟
first-order approximation of derivative
![Page 4: Modeling projectile motion subject to drag forces PHYS 361 Spring, 2011](https://reader036.vdocument.in/reader036/viewer/2022071808/56649edc5503460f94bed86c/html5/thumbnails/4.jpg)
programming efficiencies
€
x i+1 = x i + v iΔt
€
y i+1 = y i + wiΔt
€
v i+1 = v i − Δtb2
mv i v i
2 + wi2
€
wi+1 = wi + Δt −g −b2
mwi v i
2 + wi2 ⎛
⎝ ⎜
⎞
⎠ ⎟
1. pre-define constants that get used in for/while loops
2. rename lengthy expressions that have a particular significance
€
f =b2
mv i v i
2 + wi2