This commit is contained in:
Penn, John M 047828115 2020-09-27 23:21:59 -05:00
commit f2400f8d23
3 changed files with 14 additions and 13 deletions

View File

@ -2,10 +2,10 @@
This is an example of using the RK2Integrator to create a simple cannon ball simulation.
'''
```
$ make
$ ./CannonBall > cannon.csv
$ python plot_trajectory.py
'''
```
![Cannon](images/Cannon.png)

View File

@ -1,22 +1,23 @@
# MassSpringDamper
This program uses the SemiImplicitEuler integrator to simulate a simple mass-spring-damper.
This program uses the SA::EulerCromerIntegrator to simulate a simple mass-spring-damper.
Generate the results as follows:
'''
```
$ make
$ ./MassSpringDamper > msd.csv
'''
```
Plot the results as follows:
'''
```
$ python plot_position.py
'''
```
and
'''
```
$ python plot_velocity.py
'''
```
![MSD](images/MSD.png)

View File

@ -3,15 +3,15 @@
This program uses the *SemiImplicitEuler* integrator to simulate the orbit of an Earth satellite.
Generate the results as follows:
'''
```
$ make
$ ./Orbit > orbit.csv
'''
```
Plot the results as follows:
'''
```
$ python plot_position.py
'''
```
![Orbit](images/Orbit.png)