/SIM-practice1-ex2

Exercise 2 of practice 1 of the simulation subject within the Multimedia Engineering degree (ETSE - University of Valencia).

Primary LanguageProcessing

Simulation. Practice 1, exercice 2: the artillery cannon.

Simulation subject within the Multimedia Engineering degree from the ETSE - Universitat de València. March 2022. Practice 1, exercise 2. Rating 8.5. An artillery cannon located in a coastal fort must be simulated.

🎞️ Video with the result: https://www.youtube.com/watch?v=UhIxfp2Bars

Descriptive image of the exercise.

ENGLISH

Consider an artillery cannon located in a coastal fort. The cannon launches a ballistic projectile of mass 𝑚, which is launched from a fixed elevated position with the aim of hitting a ship at a distance 𝐷, although it can also fall into the sea. The projectile is fired with speed 𝑣0 and with an angle 𝜃 with respect to the horizontal. In addition to gravity 𝑔, there will be friction with the air that we will assume is linearly proportional to the speed (although this is a simplification of what happens in reality), with a proportionality factor that we will call 𝐾𝑑𝑎. If the projectile falls into water, there will also be friction (greater than with air) and the friction constant will be 𝐾𝑑𝑤.

ESPAÑOL

Considera un cañón de artillería situado en un fuerte costero. El cañón lanza un proyectil balístico de masa 𝑚, que se lanza desde una posición elevada fija con el objetivo de alcanzar un barco a una distancia 𝐷, aunque también puede caer en el mar. El proyectil se dispara con velocidad 𝑣0 y con un ángulo 𝜃 respecto de la horizontal. Además de la gravedad 𝑔 , existirá una fricción con el aire que supondremos que es linealmente proporcional a la velocidad (aunque esto es una simplificación de lo que sucede en la realidad), con un factor de proporcionalidad que llamaremos 𝐾𝑑𝑎. Si el proyectil cae al agua, también existirá fricción (mayor que con el aire) y la constante de fricción será 𝐾𝑑𝑤.