Click Simulation (1). For this example, leave Galaxy merger selected. For another encounter, choose Retrograde merger, where one disk spins against the orbital motion, or Seeded merger, an alternative spiral model.
If you have a scene file instead, click Load scene (2), select the .scene file and click Open. A scene supplies the starting conditions for a new run.
The panel shows Minimal, 400 steps and a sampling interval of 20. This run covers 2 simulation time units, enough to practice playback while the galaxies are still separate.
Expand Parameters, then click the left heading (1), below Softening. This opens the starting conditions for the galaxy named left.
Scroll to Initial arms (2), click its menu and choose Four. Leave the right galaxy unchanged so you can compare them. Scroll back up to Run when ready.
The Initial arms field reads Four. The next run starts the left galaxy with that spiral pattern. Gravity can change its shape as the galaxies interact.
Set up an encounter / Step 05
Run the simulation
Start here An editable scene is loaded. For a quick first attempt, use the 400-step settings.
Scroll to the top of the left panel. Click Run once.
Wait until the progress bar disappears and the playback controls are available. For a long run, use the Stop branch to keep a partial result.
The progress bar returns and advances from the saved step. Choosing Run would start the scene over.
Explore the recording / Step 08
Play, scrub and move the camera
Start here Finish or stop a run, or load a recording. Scroll to Playback and expand the heading if needed.
Click Play (1) to move forward. Click the same button when it says Pause to hold a moment.
While paused, drag Time (2) left or right. The number above the slider is the simulated time at the selected snapshot.
Drag Speed (3) to the right for faster playback. To look around, left-drag in the galaxy view to orbit, right-drag to pan, and scroll to zoom. Click Frame beside Play to bring the encounter back into view.
Dragging Time changes the positions shown on screen. In the 400-step example the time runs from 0 to 2. A longer encounter gives you more of the orbit to explore.
Explore the recording / Step 09
Jump to the closest approach
Start here Use a longer recording to see a close encounter. To reproduce this example, select Galaxy merger, choose Minimal, set dt to 0.005, Steps to 16000 and Sample every to 80, then run to completion.
Pause playback. Open Appearance and set Picture to Optical.
Click First passage (1). CAst frames the galaxies at their first close approach in the recording.
Click After passage (2) to advance to a later view. Use the two buttons above this tutorial screenshot to compare those actual frames.
In this run First passage selects simulation time 40.8, with the two bright centers close together. At 55.2, the later frame shows two more widely separated centers within elongated clouds of light. A shorter recording may end before the galaxies pass.
Explore the recording / Step 10
Turn a galaxy face-on or edge-on
Start herePause a recording. Scroll the left panel to Appearance and expand the heading.
Click the Picture selector (1) and choose Optical to reconstruct light from the recorded particles.
Click Face-on disk (2) to look down on the first disk.
Click Edge-on disk (3) to look along its plane. Click Frame current light above the two buttons to frame the emitting material again.
The smooth picture resolves into colored points. Each point represents a simulation particle. Its displayed size changes while its recorded position stays fixed.
Explore the recording / Step 15
Place stars behind the encounter
Start here A recording is visible. Scroll down to Background and click its heading.
Check Stars (1) to draw a star field behind the galaxies.
Clear Real catalog stars (2) to use generated stars, as shown here. To use Hipparcos positions instead, check it and click Download star catalog if prompted.
Move Star brightness (3) until the points are visible. Clear Stars again to remove them.
Stars appear behind the galaxies. They are a backdrop, independent of the particles in the encounter. Saved images and video include any enabled background.
Save or share / Step 16
Save the simulation for later
Start here You have a finished or stopped calculation. Scroll to the top of the left panel.
Click Save recording. Choose a folder and enter a name such as First encounter.traj. Click Save.
Playback becomes available with the recorded time range. To change physical parameters and calculate a different encounter, select a new scene.
Save or share / Step 18
Save the current frame as a PNG
Start herePause the recording on the view you want to keep. Scroll to Export and click the section heading. Set Format to PNG sequence so Browse selects a folder.
Choose a Preset (1), such as 1920 x 1080, for the saved picture size.
Click Browse (2) and choose an output folder. Choose a fresh folder if you want to keep a previous frame.png.
Set Format (1) to MP4 (ffmpeg). Choose a size under Preset and keep FPS at 30 for this example.
Click Browse (2). Pick a folder, type Galaxy preview.mp4 and click Save.
Enter a starting time in From (3) and an ending time in To (4). For the short preview, use 0 and 2. These are times on the simulation’s playback slider.
Click Export (5). Wait for the export status to report completion, then open the MP4 in a video player.