Docsity

Homework 2 Problems for Computational Physics | PHYS 305, Assignments of Physics

Toggle sidebar
bg1
Phys 305 – Computational Physics, Spring 2008
Homework #2
Due Date: Friday February 29, 5pm
Notes:
•Submit your homeworks (programs in C, sample output files, and files with explanations)
using the turnin program on faraday.physics.arizona.edu
•Homework problems will get full credit only if: (a) the C programs compile successfully,
(b) the programs have self-explanatory comments and variable names, and (c) the programs
have proper indentation.
•No credit will be give to late homeworks.
1. Forced Harmonic Oscillator: The equation of motion for
afree pendulum is
ld2θ
dt2=−gθ , (1)
where θis the angular displacement of the pendulum from the
vertical, gis the gravitational acceleration, and lis the length
of the cord. If we force the pendulum with a sinusoidal external
force per unit mass of Fe=Al sin(ωt) and submerge it in a
fluid with resistance that is proportional to the velocity, i.e.,
Fr=−bv =−bl(dθ/dt), the equation of motion for this forced
pendulum becomes:
ld2θ
dt2=−gθ +Al sin(ωt)−bl dθ
dt .(2)
(a) Rewrite the equation of motion of the forced pendulum, i.e., equation (2), using only
dimensionless variables. How many parameters do you need to solve the problem?
(b) Try solutions of the form
θ=B1sin(t0) + B2cos(t0),(3)
in the dimensionless equation, where t0is the dimensionless time and B1and B2are constants
and calculate analytically the ratio of the amplitude of the oscillations of the forced pendulum
(given by B=qB2
1+B2
2) to the amplitude of the forcing, i.e, calculate B/A.
(c) Plot the ratio B/A, which is called the response of the forced oscillator, as a function of
the frequency ω, for a system with g= 9.81 m/s2and l= 1m, and for two different values
of the resistance b= 0.1 s−1and b= 10 s−1
(d) Which equation do you need to solve in order to find the frequency at which the response
B/A becomes maximum? This is the condition for resonance!
(e) Use the bisection method to solve the equation you derived in (b) and compare the
resulting (resonance) frequency with the oscillation frequency of the free pendulum ω0=
qg/l. Did you need to use the computer to solve this problem?

Partial preview of the text

Download Homework 2 Problems for Computational Physics | PHYS 305 and more Assignments Physics in PDF only on Docsity!

Phys 305 – Computational Physics, Spring 2008

Homework

Due Date: Friday February 29, 5pm

Notes:

  • Submit your homeworks (programs in C, sample output files, and files with explanations) using the turnin program on faraday.physics.arizona.edu
  • Homework problems will get full credit only if: (a) the C programs compile successfully, (b) the programs have self-explanatory comments and variable names, and (c) the programs have proper indentation.
  • No credit will be give to late homeworks.
  1. Forced Harmonic Oscillator: The equation of motion for a free pendulum is

l

d^2 θ dt^2

= −gθ , (1)

where θ is the angular displacement of the pendulum from the vertical, g is the gravitational acceleration, and l is the length of the cord. If we force the pendulum with a sinusoidal external force per unit mass of Fe = Al sin(ωt) and submerge it in a fluid with resistance that is proportional to the velocity, i.e., Fr = −bv = −bl(dθ/dt), the equation of motion for this forced pendulum becomes:

l

d^2 θ dt^2

= −gθ + Al sin(ωt) − bl

dθ dt

(a) Rewrite the equation of motion of the forced pendulum, i.e., equation (2), using only dimensionless variables. How many parameters do you need to solve the problem? (b) Try solutions of the form

θ = B 1 sin(t′) + B 2 cos(t′) , (3)

in the dimensionless equation, where t′^ is the dimensionless time and B 1 and B 2 are constants and calculate analytically the ratio of the amplitude of the oscillations of the forced pendulum

(given by B =

√ B^21 + B 22 ) to the amplitude of the forcing, i.e, calculate B/A. (c) Plot the ratio B/A, which is called the response of the forced oscillator, as a function of the frequency ω, for a system with g = 9.81 m/s^2 and l = 1m, and for two different values of the resistance b = 0.1 s−^1 and b = 10 s−^1 (d) Which equation do you need to solve in order to find the frequency at which the response B/A becomes maximum? This is the condition for resonance! (e) Use the bisection method to solve the equation you derived in (b) and compare the resulting (resonance) frequency with the oscillation frequency of the free pendulum√ ω 0 =

g/l. Did you need to use the computer to solve this problem?