mirror of
https://github.com/nasa/trick.git
synced 2025-03-10 22:44:25 +00:00
Merge branch 'master' of https://github.com/nasa/trick
This commit is contained in:
commit
f2400f8d23
@ -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
|
||||
'''
|
||||
```
|
||||
|
||||

|
||||
|
@ -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
|
||||
'''
|
||||
```
|
||||

|
||||
|
@ -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
|
||||
'''
|
||||
```
|
||||
|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user