% -- Default physical parameters for ball shooting problem --

g    = 9.8;     % Gravity
rhob = 7874;    % Density of iron (kg/m^3)
rho  = 1.22521; % Density of air at sea level at 15 C
Cd   = 0.47;    % Drag coefficient for a sphere

r  = 0.05;      % 10 cm ball
ri = 0.045;     % Half centimeter thick
 
m = 4/3*rhob*pi*(r^3-ri^3);    % Mass
A = pi*r^2;                    % Reference area for a sphere
c = Cd*rho*A/2/m;              % Drag on a sphere / mass

s = 20;         % Launch velocity
w = -2.5;       % Wind velocity

% -- Fill in values --

opt.c = c;
opt.w = w;
opt.g = g;
opt.s = s;
