MotionGenesis: F=ma Software, textbooks, training, consulting.      Projectile motion examples

  Projectile motion with air-resistance     Advanced Tutorial: Bouncing ball     Advanced Tutorial: Coin flip     Advanced Tutorial: Tennis ball  
MotionGenesis Projectile motion with air-resistance MotionGenesis: Bouncing Ball Simulation
  Event handling in MATLAB®
MotionGenesis: Coin flip simulation with event handling
  Event handling in MATLAB®
MotionGenesis: Tennis Ball Simulation
  On/off contact forces

A baseball (particle Q) is hit from home plate (point No) over flat Earth
(Newtonian frame N).   Variables x and y are the Nx> (horizontally-right)
and  Ny> (vertically-upward)  measures of Q's position from No.

Mass of baseball   m = 145 g   (5.1 ozm)
Gravity force is   -m*g*Ny>   where   g = 9.8 m/s^2
Aerodynamic drag is   -b*v   where   v   is Q's velocity in N.
With air-resistance  b = 0.05 N*s/m   whereas without  b = 0.
Form/solve equations of motion with MotionGenesis™
F = m*a Program responses
Kane's method (generalized speeds) Program responses

MotionGenesis Baseball projectile motion results .jpg
Simulation data   is plotted with   MotionGenesis plotting   (or MATLAB®, Excel®, etc.)
which saves plot in various graphics formats (.jpg, .png, .gif, .eps, .ps, etc.).

Problem statement (.pdf)   improved drag model, US units
F = m*a Program responses
Kane's method (generalized speeds) Program responses
MotionGenesis Baseball projectile motion results .jpg

Optional:   Modify the MotionGenesis script so it writes a MATLAB® .m file with an input launch angle.
Modify the MATLAB® .m file so it detect the instant the ball hits the ground.
The modified   MotionGenesis script,   for MATLAB® event handling required:
1.  
Add    Constant thetaDegrees
Change    ODE() MGBaseballTrajectoryFma
to    ODE() MGBaseballTrajectoryFma.m( thetaDegrees )
2.   Edit the MATLAB®   .m file   to set the initial values of x' and y'.
xp = 100*cosd(thetaDegrees);
yp = 100*sind(thetaDegrees);
3.   Edit the MATLAB®   .m file   using these  event-handling instructions   (five very small changes).
4.   At the MATLAB® command prompt, type:    [t, state] = MGBaseballTrajectoryFma