Classical Mechanics With MATLAB Applications: Jhasbun@westga - Edu

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Classical Mechanics with MATLAB Applications

Javier E. Hasbun
Available Java Applications
See also the author's website: http://www.westga.edu/~jhasbun/osp/osp.htm

Or send the author an email to jhasbun@westga.edu


These java applications perform the same calculations as the text's Matlab scripts
do. These are provided to enable users to do the text's computations in case Matlab
is not available. The jar file “Hasbun_mechanics.jar” contains the applications
below. To run the jar file, you will need java to be installed on your machine. If java
is intalled, clicking on the jar file will launch the applications. See other notes at the
end of this file.
Chapter1

ch1_ho1App Harmonic Oscillator, position, velocity, acceleration


ch1_ho2App Free fall, air resistance, position, velocity, acceleration
Chapter2

ch2_foftApp Force as a function of time


ch2_ch2_fofxApp Force as a function of position
ch2_fofvApp Force as a function of velocity
Chapter3

ch3_xoftApp Position as a function of time plot


ch3_v_and_fApp Potential and associated force plot
ch3_over_critApp Overdamped and critically dample HO solutions
ch3_under_dampApp Underdampe HO solution
ch3_drive_ampApp Amplitude of the forced HO
Phase difference between driving force and HO
ch3_drive_phaseApp
solution
ch3_drive_solnApp Solution of the forced HO and driving force plot
Power supplied by the driving force to the HO versus
ch3_drive_powerApp
frequency
Chapter4

Coordinate solutions, single mode coupled spring-mass


ch4_inter_spr1App
system
Eigenvalues, eigenvectors of a real symmetric 3X3
ch4_eigenJacobiApp
matrix
Coordinate solutions for single mode coupled spring-
ch4_inter_spr2App
mass system
A1 versus initial angle non-linear approximation of the
ch4_pend0App
pendulum
ch4_pend1App Comparison of pendulum periods
Pendulum solutions for various approximations and
ch4_pend2App
analytic
ch4_molecApp Solution to the two atom melecular potential model
Chapter5

ch5_gradientApp Gradient of a function


ch5_divergenceApp Divergence of a vector
ch5_curlApp Curl of a vector
Chapter6

ch6_parabolaApp Plots parabolas with various curvatures


ch6_projectileApp Plots free fall projectile trajectories
ch6_projectile2App Compares free fall with and without drag.
ch6_cycloid2dApp Charged particle in electric and magnetic fields in 2D.
ch6_cycloid3dmApp Charged particle in electric and magnetic fields in 3D.
Chapter7

ch7_foucaultApp The Foucault pendulum.


Chapter8

ch8_centralApp Solution for a body under a central force.


Time to go from rmin to rmax under a force F(r)=-
ch8_orbit_periodApp
a*r^p.
Solution for a body under a central force of the form -
ch8_centraluApp
a*r^p.
ch8_simple_orbitApp Plots the zero force case orbit u=C*sin(theta)=1/r.
Draws an ellipse of minimum radius rmin and
ch8_ellipseApp
eccentricity e.
Attractive potential, energy, etc., for body under a
ch8_potentialApp
central force.
ch8_kepler3rdApp Kepler's 3rd law for planets in the solar system.
ch8_earthorbApp Draws Earth's elliptical orbit around the sun.
Chapter9

ch9_gaus_sphereApp Plots the gravitational field for a sphere of mass M.


ch9_binary1App Binary star system given the eccentricity.
ch9_binary2App Binary star system solved numerically.
Chapter10

Plots possible conic section curves for various


ch10_conic1App
eccentricities.
Obtains the hyperbolic projectile orbit incident on a
ch10_conic2App
target.
ch10_conic3App Simulates Rutherford scattering with analytic formulas.
Simulates Rutherford scattering alpha particle path
ch10_rutherApp
numerically.
Plots scattering cross-section versus scattering angle,
ch10_ruther_cross1App
fixed target.
ch10_ruther_cross2App Scattering cross-section versus atomic number.
ch10_gm_rutherApp Rutherford scattering compared with experiment.
Chapter11

Linear & angular momenta, energies, forces, and


ch11_particle2App
torques.
Solves the variable mass rocket equation and does
ch11_rocketApp
simulation.
Plots the coordinates of the atoms of a free falling
ch11_molec_muApp
molecule.
Plots the maximum scattering angle theta_1 versus
ch11_theta_maxApp
the m2/m1.
ch11_ecoll_2dApp Velocities in two dimensional collisions.
Plots scattering cross-section versus scattering angle
ch11_ruthercm_crossApp
with recoiling target.
Chapter12

Animates the position of a rod-mass system and


ch12_fixed_axisApp
angular momentum.
Finds the integral of 4*f(x)/pi, where f(x) is
ch12_moment_sdiskApp
associated with the moment of a disk.
Draws a cube with the principal axes based on the
ch12_cube_princ_axApp entered
symmetric inertia tensor.
Uses cartesian coordinates to find a rectangle's inertia
ch12_det_soln2_2dApp
tensor numerically.
Finds the angular momentum of a rigid body about an
ch12_r_energyApp
axis of rotation given the angular speed.
Plots the frequency and angular momentum for torque
ch12_torque_freeApp free motion of a top versus time in the body (S')
frame.
Plots the frequency and angular momentum for torque
ch12_torque_free_sApp free motion of a top versus time in the body (S') frame
as well as in the space frame (S).
Calculates an ellipsoid inertia tensor & mass
ch12_ellipsoApp
numerically.
Solves Euler's equations for an ellipsoid without
ch12_torquef2App
torques.
Shows Euler angles: phi, theta, psi; the planes and the
ch12_euler_angApp
line of nodes.
Solves Euler's equations and produces plots and
ch12_topApp
simulates.
Chapter13

Solve the double pendulum equations of motion


ch13_doublepApp numerically and plots their solutions & animates the
motion.
Simulates Hamilton's Least Action principle for a
ch13_least_actionApp
particle under the action of gravity.
To use these applications on a local computer, download the jar file
“Hasbun_mechanics.jar” to a local directory. The java applications have been
developed using the Open source physics framework. Please refer to the author's
website: http://www.westga.edu/~jhasbun/osp/osp.htm for further information. The
source code is available under the OSP concept from this website, and can be
compiled with Eclipse, an open source developing platform
(http://www.eclipse.org/). Chapter samples from this textbook are available through
the publisher’s website http://www.jbpub.com/catalog/0763746363/.
(Note: Open Source Physics code is being distributed under the GNU GPL [http://www.gnu.org/licenses/gpl.html] license. Also to run
the applications, the Java engine is needed from http://java.sun.com/getjava. To write the actual programs, the OSP framework is
needed: http://www.opensourcephysics.org/download/)

You might also like