Modeling a Simple Toy Alex Bame email: - - PowerPoint PPT Presentation

modeling a simple toy
SMART_READER_LITE
LIVE PREVIEW

Modeling a Simple Toy Alex Bame email: - - PowerPoint PPT Presentation

Student Projects in Differential Equations http://online.redwoods.edu/instruct/darnold/deproj/index.htm 1/19 Modeling a Simple Toy Alex Bame email: alexbame@yahoo.com The Model 2/19 R b


slide-1
SLIDE 1

1/19

  • Student Projects in Differential Equations

http://online.redwoods.edu/instruct/darnold/deproj/index.htm

Modeling a Simple Toy

Alex Bame

email: alexbame@yahoo.com

slide-2
SLIDE 2

2/19

  • The Model

R b θ φ

  • θ is the angle off the vertical axis
  • φ is the angle off the positive x axis
slide-3
SLIDE 3

3/19

  • The Model (cont.)

R b θ φ

  • The length of a single rod is R
  • A spring is attached some distance b along the rod
slide-4
SLIDE 4

4/19

  • The Lagrangian
  • L = K − V

⋆ K is the kinetic energy of the system ⋆ V is the potential energy

  • f the system
  • To solve:

∂L ∂θ − d dt ∂L ∂ ˙ θ = 0 ∂L ∂φ − d dt ∂L ∂ ˙ φ = 0

slide-5
SLIDE 5

5/19

  • The Kinetic Energy
  • There are two possible rotations, in θ and φ
  • Kinetic energy for rotation:

⋆ K = 1

2Iω2

⋆ I is the moment of inertia in the plane of rotation ⋆ ω is the rotational velocity

  • Kθ = 1

2I ˙

θ2

  • Kφ = 1

2I sin2(θ) ˙

φ2

  • So the total kinetic energy of the system is:

K = Kθ + Kφ = 1 2I ˙ θ2 + 1 2I sin2(θ) ˙ φ2

slide-6
SLIDE 6

6/19

  • The Potential Energy
  • Two components: gravitational and spring
  • Gravitational:

VG = mgh = mg1 2R cos(θ)

  • Spring:

VS = 1 2kx2 = 1 2k( √ 2b sin(θ))2 = kb2 sin2(θ)

slide-7
SLIDE 7

7/19

  • The Potential Energy (cont.)
  • The total potential energy is:

V = VS + VG = kb2 sin2(θ) + 1 2mgR cos(θ)

slide-8
SLIDE 8

8/19

  • Solving The Lagrangian
  • The Lagrangian for all 4 rods:

L = K − V = 2I( ˙ θ2 + ˙ φ2 sin2(θ)) − 4kb2 sin2(θ) − 2mgR cos(θ)

slide-9
SLIDE 9

9/19

  • Solving The Lagrangian (cont.)
  • Finding ¨

θ: ∂L ∂θ − d dt ∂L ∂ ˙ θ = 0 4I ˙ φ2 sin(θ) cos(θ) − 8kb2 sin(θ) cos(θ) + 2mgR sin(θ) − 4I ¨ θ = 0

  • Finding ¨

φ: ∂L ∂φ − d dt ∂L ∂ ˙ φ = 0 − d dt( ˙ φ sin2(θ)) = 0 −4¨ φ sin2(θ) − 8 ˙ φ ˙ θ sin(θ) cos(θ) = 0

slide-10
SLIDE 10

10/19

  • Setting Up Our DEs
  • Solve the previous equations for ¨

θ and ¨ φ: ¨ θ = mgR 2I sin(θ) − 2kb2 I sin(θ) cos(θ) + ˙ φ2 sin(θ) cos(θ) ¨ φ = −2 ˙ φ ˙ θ sin(θ) cos(θ) sin2(θ)

  • Variable substitution to get a system of first order equations:

x1 = θ x2 = ˙ θ x3 = φ x4 = ˙ φ

slide-11
SLIDE 11

11/19

  • Setting Up Our DEs (cont.)
  • The previous substitutions lead to the following system in the usual

manner: ˙ x1 = x2 ˙ x2 = mgR 2I sin(x3) − 2kb2 I sin(x3) cos(x3) + (x4)2 sin(x3) cos(x3) ˙ x3 = x4 ˙ x4 = −2x4x2 sin(x1) cos(x1) sin2(x1)

slide-12
SLIDE 12

12/19

  • Analyzing Behavior of the Model
  • System is non-linear and we are interested in behavior over a large

reigon, so linearization is not an option.

  • A numeric solver will be user to model the motion of the system
  • Behavior of the system will be analyzed via the effective potential
slide-13
SLIDE 13

13/19

  • Effective Potential
  • Take the total energy of the system and throw out any terms that

vary with velocity.

  • This is, in effect, adopting the refrence frame of the object we are

studying.

slide-14
SLIDE 14

14/19

  • Effective Potential (cont.)
  • Energy of our system:

E = K + V = 2I ˙ θ2 + 2I ˙ φ2 sin2(θ) + 2mgR cos(θ) + 4kb2 sin2(θ)

  • It would seem that the ˙

θ and ˙ φ terms have to go. However, if we recall from earlier: d dt( ˙ φ sin2(θ) = 0 Integrating both sides with respect to t yields: ˙ φ sin2(θ) = h Where h is some constant.

slide-15
SLIDE 15

15/19

  • Effective Potential (cont.)
  • Thus the energy equation becomes:

E(θ, ˙ θ) = 2I ˙ θ2 + 2Ih2 sin2(θ) + 2mgR cos(θ) + 4kb2 sin2(θ)

  • And the effective potential is:

U(θ) = 2Ih2 sin2(θ) + 2mgR cos(θ) + 4kb2 sin2(θ)

slide-16
SLIDE 16

16/19

  • Effective Potential (cont.)

0.5 1 1.5 2 4 6 8 x 10

−3

Centrifugal Gravitational Spring Total

  • Note that if the spring term is too small the ”bowl” in the graph

will be very shallow, if it is too large the ”bowl” will be very steep. We want it in between these two extremes.

slide-17
SLIDE 17

17/19

  • Effective Potential (cont.)

0.5 1 1.5 2 4 6 8 x 10

−3

θ U(θ) 0.5 1 1.5 2 −150 −100 −50 50 100 150 θ dθ/dt

  • The relative minimum of U(θ)

yields the value of θ around which the system will oscillate.

  • The relative maximum of U(θ)

yields the maximum energy for which the system will oscillate.

slide-18
SLIDE 18

18/19

  • OK, So Let’s See It!
  • Seeing is believing :)