- CANNONBALL STRIKE
Introduction:
While designing the structure and fluids mechanically, two different ways are followed: The first is the mesh-based
method, the second is the particle-based method. In particle-based methods, particles determine their routes and
move forward with the forces coming from their environment. The path of the particle is created by advancing it in a
finite time interval.
Real Cases:
Moving liquid particles in particle-based liquid analysis methods.
Problem Definition:
Develop matlab code that calculates the angle required for a cannonball fired at a certain force to reach a certain
range?
Height
Fy
Range
Figure I Cannonball route
Details:
Coordinates of the firing point of the cannonball (0,0)
Mass of cannonball 1kg
Gravitational acceleration 9.81m/s²
F = 1000N
?t = 0.1s (finite time interval)
Additional knowledge:
F = m. a
a_i = F/m
a_{t+1} = a_i - (0.5. v. ?t)/m
a_{c} = a_{t+1}
v_{t+1} = v_t + \frac{1}{2}(a_t + a_{t+1})
x_{t+1} = x_t + v_t.?t + \frac{?t^2}{4}(a_t + a_{t+1})
(calculation of initial acceleration)
(loss of acceleration due to wind force)
(calculation of new acceleration)
(calculation of new speed)
(calculation of the new position)