AstroGrav iconAstroGrav Help /Tutorial /Exercise 7 - Adding New Families of ObjectsVersion 5.2.1

AstroGrav icon    Exercise 7 - Adding New Families of Objects

This exercise teaches you how to add new families of objects, and should take about 30 minutes to complete.

Creating a New Simulation

In previous exercises, you have been using the Tutorial simulation, but in this exercise, you are going to create a simulation from scratch. Go through the following steps to create a new simulation to work on.

  1. If you don't already have AstroGrav running, double-click on the AstroGrav application icon (AstroGrav icon) to start it running.
  2. Cancel the Open Simulation file chooser dialog, because you are going to create a new simulation rather than open an existing one.
  3. If AstroGrav doesn't automatically created a new simulation with a table window titled Untitled: Table, create it manually by choosing the File / New menu item (or the 'File / New' icon tool).
  4. If you have any AstroGrav windows open other than Untitled: Table, close them to get them out of the way.

You will now have AstroGrav running with just a single window titled Untitled: Table, and with just a single object named 'Star' present in the table.

Adding a New Family with Quick Setup

Go through the following steps to learn how to easily create an entire family of objects using the Quick Setup option.

  1. Choose the Edit / Add Family... menu item, which will result in the New Family dialog being displayed. At the top-left corner of this dialog are fields for entering the parent and the number of objects that you want in the new family, and below this are two large boxes labelled Physical Elements and Orbital Elements. Each of the data elements occupies a single row, and has two fields for specifying the minimum and maximum values, together with a bias slider for specifying the distribution of values, and a checkbox for specifying whether the values are to be distributed evenly or randomly. Figuring out how to fill in this dialog in order to achieve a desired effect is far from simple, so a selection of Quick Setup options are provided in the top-center of this dialog to make things easier.
  2. In the Quick Setup popup menu, select '2D Protoplanetary Disk', and notice how the fields, sliders, and checkboxes are changed automatically to reflect your choice.
  3. Make the radii of the new objects ten times as big by adding one to the exponents of the two 'Radius' fields. This is necessary to ensure that collisions are reasonably common when the simulation is evolved.
  4. Accept the dialog, and notice how the 400 new objects are added to the table.
  5. Choose the Window / New View menu item (or the 'Window / New View' icon tool), and notice how a new Untitled: View window appears.
  6. Experiment with the 3D model, particularly by rotating it, and by moving your viewpoint towards and away from the system. If you show the orbits, you will probably notice that the 3D model is less responsive than before, because of the time it takes AstroGrav to display the orbits.

Evolving the New Simulation

Go through the following steps to see what happens when you start the new simulation running.

  1. Choose the Evolve / Settings... menu item (or the 'Evolve / Settings...' icon tool), which will result in the Evolve Settings input dialog being displayed.
  2. In the 'Collisions' popup menu, select 'Combine', and then accept the dialog. This is so that when the simulation is run forward, colliding protoplanets will be combined to form larger protoplanets, and eventually whole planets.
  3. Now, choose the Evolve / Run Forward menu item (or the 'Evolve / Run Forward' icon tool), which will start the simulation running forward in time.
  4. Watch how the simulation evolves while experimenting with the 3D model, particularly by rotating it, and by moving your viewpoint towards and away from the system. You should find that collisions between the objects in your new family slowly result in the formation of a smaller number of larger objects.
  5. Now, choose the Evolve / Settings... menu item (or the 'Evolve / Settings...' icon tool), which will result in the Evolve Settings input dialog being displayed.
  6. Make the time step ten times as big, accept the dialog, and notice how the simulation now runs much more quickly.
  7. Experiment with other settings for the time step. The optimum value will depend on both your computer and your personal preferences, as well as on the number of objects that are left in the simulation. You will notice that the simulation runs faster and faster as the number of objects gets smaller and smaller, because AstroGrav has fewer and fewer calculations to perform for each time step. You can also speed up the simulation by closing the Untitled: Table window, so that AstroGrav only has the one window to keep updated.
  8. Finally, when you have tired of watching the simulation, stop it running by using the Evolve / Stop menu item (or the 'Evolve / Stop' icon tool).

Adding a New Family Manually

The protoplanetary disk that you have just experimented with was created with objects whose masses were less that the mass threshold in the evolver settings, which means that when evolving, the mutual gravitational attraction of the protoplanets was not taken into account. Go through the following steps to learn how to create a more realistic family of objects by filling in the New Family for 'Star' dialog manually.

  1. Choose the File / New menu item (or the 'File / New' icon tool), which will result in a new simulation being created with a table window showing a single object named 'Star'. If the single row is not selected, click on any one of its cells to select it.
  2. Choose the Edit / Add Family... menu item, which will result in the New Family dialog being displayed.
  3. In the Quick Setup popup menu, select '2D Protoplanetary Disk', and notice how the fields, sliders, and checkboxes are changed automatically to reflect your choice.
  4. Click on the 'Copy' button between the two 'Color' fields, and notice how the right-hand field changes to the same color as the left-hand field. Having the two fields the same ensures that all objects in the new family will have the same color.
  5. Edit the left-hand 'Mass' field to 8.0e24.
  6. Click on the 'Copy' button between the two 'Mass' fields, and notice how the right-hand field changes to the same value as the left-hand field. Having the two fields the same ensures that all objects in the new family will have the same mass.
  7. Edit the left-hand 'Radius' field to 1.0e8.
  8. Click on the 'Copy' button between the two 'Radius' fields, and notice how the right-hand field changes to the same value as the left-hand field. Having the two fields the same ensures that all objects in the new family will have the same radius.
  9. Accept the dialog, and notice how the 400 new objects are added to the table, all with the same color, and all with a mass of 8.0e24kg.
  10. Choose the Window / New View menu item (or the 'Window / New View' icon tool), and notice how a new view window appears.
  11. Experiment with the 3D model, particularly by rotating it, and by moving your viewpoint towards and away from the system.
  12. Now, choose the Evolve / Settings... menu item (or the 'Evolve / Settings...' icon tool), which will result in the Evolve Settings input dialog being displayed. As with the previous simulation, select 'Combine' in the 'Collisions' popup menu, and then accept the dialog.
  13. Finally, start the simulation running and experiment with it in the same way that you experimented with the previous simulation. You can repeatedly increase the time step as the number of objects decreases, in order to speed up the evolution. If you run the simulation forward far enough, you should find that it evolves to have just a few objects (planets) orbiting the central 'Star', rather like the Solar System.

Whenever you choose the Edit / Add Family... menu item, the dialog will show the same settings that you last accepted. This makes it easy to experiment with creating new families by repeating the following sequence until you achieve the desired affect.

Next: What To Do Next

You've now completed Exercise 7, and are ready to move on to Exercise 8, which teaches you what to do next.


AstroGrav iconExercises |Previous |Next

Valid HTML 4.01!Valid CSS!