Create README for SIM_cannon_analytic

This commit is contained in:
John M. Penn 2015-09-05 15:42:41 -05:00
parent d558dbd73d
commit 9035286609
7 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,48 @@
#SIM\_cannon\_analytic
---
This is first of eight Trick-based simulations that one builds in the Trick
Tutorial (Section 3). It's purpose is to introduce the fundamentals of building
a Trick simulation.
Here we simulate the flight of a cannon ball, given an initial position, and
velocity subject to the following assumptions and limitations:
* The **only** force acting on the cannon ball is gravity.
* The acceleration of gravity (g) is constant and equal to -9.81 meters per
second squared.
* The ground is flat, and here, defined as where y=0.
![X(t) = Vx * t + X0](images/CannonInit.png)
--
### Approach
Since this problem has a closed-form solution, that's what we use :
![X(t) = Vx * t + X0](images/solution_x.png)
![Y(t) = (1/2)gt^2 + Vy * t + Y0](images/solution_y.png)
The time when the cannon ball impacts the ground is:
![](images/time_of_impact.png)
--
### Inputs
Variable | Type | Units
-----------------------|----------------|-------
dyn.cannon.pos0 | double[2] | m
dyn.cannon.init\_angle | double | r
dyn.cannon.init\_speed | double | m/s
The initial velocity is :
![Vx = speed * cos(angle)](images/initial_vel_x.png),
![Vy = speed * sin(angle)](images/initial_vel_y.png)
--
### Outputs
Variable | Type | Units
-----------------------|----------------|--------
dyn.cannon.pos | double[2] | m
dyn.cannon.vel | double[2] | m/s

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB