0% found this document useful (0 votes)
26 views2 pages

PRGA Revised Coursework Assignment

This document provides instructions for a programming assignment involving numerically solving differential equations describing a football's trajectory during a free kick considering factors like air resistance, spin, and gravity. Students are asked to solve the equations in MATLAB and Simulink, plot the results, and consider how decreasing air resistance would change the solution.

Uploaded by

Curtis Thomas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

PRGA Revised Coursework Assignment

This document provides instructions for a programming assignment involving numerically solving differential equations describing a football's trajectory during a free kick considering factors like air resistance, spin, and gravity. Students are asked to solve the equations in MATLAB and Simulink, plot the results, and consider how decreasing air resistance would change the solution.

Uploaded by

Curtis Thomas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Programming and Simulation (PRGA2001, PGSM210B) Assignment (40%)

Instructions

1) Solve the problem below and email the files to the instructor ([email protected]) by
November 26, 2012.
2) Include your student ID as part of the file name for every file you send, e.g. you may wish to
title your files f_50000.m, ID_50000.m, ID_50000.mws, etc if your ID# is 50000.
3) Only use alpha-numeric characters and underscores in your file title – no special characters,
punctuation or spaces.
4) The files you send must contain the programming code necessary to solve the given problem,
i.e. when executed, they must return the answers to the questions. Write your matlab
programs in such a way that they do not display unnecessary data.

Problem

A footballer attempts to score a goal directly from a free kick. The ball is placed 20m away from
the goal post as shown below. A wall is placed 9m from the ball. Considering air resistance, side
spin (curl) and gravity, the following differential equations describe the path of the ball.

dVx k
= − Vx − cVy
dt m
dVy k
= − Vy + cVx
dt m
dVz k
= − Vz − g
dt m

where V = [Vx Vy Vz] is the velocity vector of the ball (m/s)


k = 0.17 Ns/m (air resistance factor)
m = 0.43 kg (mass of the ball)
c = 0.24 /s (curl factor)
t = time measured from the moment the ball is kicked (sec)

At time, t = 0, the initial components of velocity are:


Vx(0) = V0 cosθ cosα
Vy(0) = -V0 cosθ sinα
Vz(0) = V0 sinθ

where V0 = 28 m/s (initial speed at which the ball is kicked)


α = 6° (angle between x-axis and horizontal projection of the kick)
θ = 16° (angle of elevation of kick)
(20,0,2.4) crossbar (20,-7.2,2.4)
post post
(20,0,0) goal line (20,-7.2,0)

x
z – vertical
(out of page)
ball trajectory y

(9,0,0) wall

α
V0

θ – angle of
elevation

(0,0,0) – initial position of ball

Assignments

1) Solve numerically in Matlab up to t = 1 second (use a time step of 0.01 seconds). [15 pts]
a. What are the values of y and z when the ball reaches the goal line (x = 20)?
b. What are the values of y and z when the ball reaches the wall (x = 9)?
c. Is the goalkeeper required to make a save?
d. How long does the ball take to reach the goal line (x = 20)?

2) Plot z vs x, y vs x, and y vs z on a single figure (2x2 workspace). Label appropriately. [5 pts]

3) Solve the same problem using Simulink. [15 pts]

4) Use scope outputs to plot x vs t, y vs t and z vs t. [5 pts]

5) Recently there has been a move to develop new footballs which offer lower air resistance. If
we decrease k to 0.05 Ns/m, how would the answers to question 1 change? [Bonus 5 pts]

You might also like