CAstCitizen Astronomy All tutorials

Cluster Flow

CAst for Windows with OpenGL 3.3 support. The simulation builds its own gas volume. You can start without any telescope images.

Open the lab and look around Step 01

Open Cluster Flow

Start here Start Citizen Astronomy (CAst). If another workspace is open, choose Mode → Choose Mode… to reach the mode picker.

  1. Scroll down to Simulations. Click the Cluster Flow card outlined in the screenshot.
The Simulations row of the CAst launcher with the Cluster Flow card outlined and numbered. Enlarge screenshot
What you should see

The workspace opens with CLUSTER FLOW above the controls. After the filament network is ready, a glowing gas distribution appears and the simulation time begins to advance.

Open the lab and look around Step 02

Freeze the gas to examine a knot

Start here Open Cluster Flow. If you are in cache replay, return to live.

  1. At the top left, click Pause. Use one bright knot where several filaments meet as your landmark.
  2. Read Time below the button. When you want gas to move again, click the same button, now labeled Resume.
Live cluster density view with the Pause button marked beside the running gas volume. Enlarge screenshot
What you should see

Pausing holds the simulated gas and its time at the current state. You can orbit or change the displayed field while it is paused. Restart rebuilds the initial gas distribution using the current Scene settings.

Open the lab and look around Step 03

Turn the volume and look inside

Start here A live or recorded volume is visible. Pause the gas if you want to follow the same knot as the camera moves.

  1. Place the pointer in the marked area of the picture. Hold the left mouse button, drag sideways, then release to orbit the cube.
  2. Keep the pointer over the picture and roll the wheel to move closer or farther away. Hold the right mouse button and drag to shift a knot toward the center.
  3. To get back to the opening view, expand View if needed, scroll the left panel, and click Reset camera.
An outlined drag area on the live cluster image to the right of the camera controls. Enlarge screenshot
What you should see

Foreground and background filaments shift relative to one another as you orbit. Zooming changes how close you are to the existing structures.

Open the lab and look around Step 04

Rotate the camera automatically

Start here Open View → Camera motion in the left panel. Camera controls also work on a replayed recording.

  1. Drag Horizontal speed (deg/s) a little to the right of the center for a positive speed. The center is zero.
  2. Tick Rotate horizontally and watch the view turn around its focus. A negative speed turns it the other way.
  3. Click Stop camera motion when a filament is at the angle you want to keep.
Camera motion controls with Horizontal speed, Rotate horizontally, and Stop camera motion numbered in order. Enlarge screenshot
What you should see

The camera can circle the cluster even while the gas is paused. Stopping the motion keeps the current angle.

Choose what the picture shows Step 05

Switch from density to temperature

Start here Open View in a live or replayed run. Click the Camera motion heading to collapse it if you need more room.

  1. Click the arrow beside Display field and select Temperature. Compare the pattern with Gas density, which shows where gas collects.
  2. If the field is too dim to inspect, move Exposure to the right a little. In the same menu, try Gas speed to see how fast gas moves or Compression / shocks to see where flows converge.
Display field set to Temperature and the Exposure slider marked beside the resulting gas image. Enlarge screenshot
What you should see

The selected field name changes in the dropdown and the picture redraws immediately. The temperature image shown here highlights a different pattern within the same gas volume. Exposure changes the image brightness.

Choose what the picture shows Step 06

Cut a thin slab through the cube

Start here Open View and scroll the left panel until you see Slice thickness. Select Gas density under Display field to match the example.

  1. Drag Slice thickness left from its full-width setting to about 0.40. The Slice position slider appears underneath.
  2. Drag Slice position slowly in either direction to move the slab through the cube. To restore the whole volume, drag Slice thickness fully right.
Gas density rendered as a slab with Slice thickness and Slice position highlighted. Enlarge screenshot
What you should see

Some filaments disappear when they fall outside the slab. As you move the slab, different knots enter the picture.

Choose what the picture shows Step 07

Save the view as a PNG

Start here Frame the picture you want in a live or replayed run. Expand View, then scroll the controls below Ray samples.

  1. Click Save image.... In the file dialog, choose a folder, enter a filename such as cluster-density.png, and click Save.
  2. Open the PNG from the folder you chose to inspect the exported view.
Save image button marked at the bottom of the View controls beside the density image. Enlarge screenshot
What you should see

The PNG contains the rendered gas at the viewport’s dimensions. The chosen camera angle, display field, and slice are visible in the image.

Experiment with live physics Step 08

Change the speed of evolution and cooling

Start here Use the live Cluster flow model. Click Resume if the gas is paused. Collapse View and expand Physics.

  1. Drag Evolution pace left to ask the solver to advance less simulated time per second. Watch the Time readout above the panel.
  2. For a cooling experiment, note the current Cooling rate, then drag its slider a little to the right. Use the Temperature field to watch how the gas changes as time advances.
Physics section open with Evolution pace and Cooling rate highlighted beside the cluster. Enlarge screenshot
What you should see

The slider readouts change immediately. Cooling affects the evolving cluster gas, so give the simulation time to show the difference. Drag a slider back to its earlier value to restore that setting.

Experiment with live physics Step 09

Trigger one outburst

Start here Choose the live Cluster flow model and let the run advance. Expand Physics → Outbursts. The Temperature field makes local heating easier to follow.

  1. Clear Automatic outbursts to control when the next event happens.
  2. Check that Outflow strength is above zero. Leave the other outburst settings at their defaults for this trial.
  3. Click Trigger outburst once and watch the gas around the two central halos over the next few simulation steps. Tick Automatic outbursts again to restore repeated events.
Outbursts controls with Automatic outbursts, Outflow strength, and Trigger outburst marked. Enlarge screenshot
What you should see

The model injects heat and motion near the centers. How clearly a change shows up depends on the display field, time elapsed, and outburst strength.

Experiment with live physics Step 10

Choose how finely the solver steps

Start here In a live run, expand Physics → Timestep & solver. Collapse Outbursts or scroll the panel to reach it.

  1. Open Preset and choose Fine timesteps to ask for smaller advances in simulated time. Read Last step below the controls while the run is advancing.
  2. For manual control, drag Maximum timestep left. The preset changes to Custom. You can select Balanced from the preset menu to switch back to a preset.
Timestep and solver controls with Preset and Maximum timestep highlighted. Enlarge screenshot
What you should see

The preset and timestep readouts reflect the new settings. Shorter steps can take more computing time to cover the same span of simulated time.

Build a starting scene Step 11

Set the size and detail of a cluster

Start here Use a live run. Collapse View and Physics, then expand Scene. If a recording is open, return to live first.

  1. Set Model to Cluster flow. This model draws gas along filaments into fixed dark halos.
  2. Drag Cluster cube size (code units) a little to the right. Read the estimated number of clumps and cell size immediately below the slider.
  3. Open Gas grid to choose the number of cells along each side. A larger grid resolves finer structures and uses more memory. Keep the existing grid for a first run, then apply the scene.
Scene settings with Cluster flow, Cluster cube size, and Gas grid numbered next to the current live volume. Enlarge screenshot
What you should see

The scene values update in the panel. As long as the change is pending, the gas in the viewport still belongs to the current run.

Build a starting scene Step 12

Try a cube of the expanding universe

Start here In live mode, collapse View and Physics and open Scene. You can return to live from any recording.

  1. Open Model and choose Cosmological volume. This model follows gas and dark matter as density variations grow in an expanding universe.
  2. Inspect Comoving cube size (Mpc). Keep the displayed size for a first run, or move the slider to choose the width of the simulated region. Leave the remaining cosmology settings at their defaults.
  3. Scroll down within Scene and apply the scene.
Cosmological volume selected and Comoving cube size marked while the prior cluster is still displayed. Enlarge screenshot
What you should see

Cosmology settings appear, including the cell size and starting redshift. The cluster can remain in the picture until you apply and restart.

Build a starting scene Step 13

Apply your settings and start the new scene

Start here You have changed the cluster settings or selected Cosmological volume. Applying starts that live model from its beginning.

  1. Scroll to the bottom of Scene and click Apply scene & restart (marker 1).
  2. Watch the amber Scene changes pending message (marker 2) disappear. Give the new grid time to appear. If Resume is showing at the top, click it to advance the new run.
Apply scene and restart button and its amber pending-change message at the bottom of Scene. Enlarge screenshot
What you should see

The pending message disappears. The live display uses the new scene. A cluster shows Time and Box side at the top. The expanding-universe model shows Elapsed and z.

Build a starting scene Step 14

Read time and redshift in cosmology mode

Start here Select Cosmological volume and apply the scene, then scroll the control panel to the top.

  1. Find the marked two-line readout under the playback controls. Elapsed gives time since the starting redshift in billions of years (Gyr). z gives the redshift.
  2. If Resume appears, click it and watch the numbers as the run advances. a is the scale factor, a measure of how far the model universe has expanded. Box gives the width in comoving megaparsecs.
The time, redshift, comoving box width, and scale factor marked above a freshly initialized cosmological volume. Enlarge screenshot
What you should see

As elapsed time increases, the scale factor increases and redshift falls. The example starts at z = 9 with a scale factor of 0.100.

Record, replay, or export Step 15

Set up a short practice recording

Start here In a live run, scroll to Bake and click its heading to expand it. A bake computes a run from its starting conditions and stores selected states as frames.

  1. Drag Evolution duration left for a short trial. The cluster example uses about 0.35 in simulation units. In the cosmological model the label shows Gyr.
  2. Drag Cached frames near the left end to save roughly 20 states. Set Cached volume grid and Cached tracers lower for a smaller file. You can use nearby values.
  3. Read Estimated cache before choosing a file. More frames give you more moments to replay. A larger cached grid preserves more detail in each frame.
Evolution duration, Cached frames, and the estimated cache size numbered in the live Bake section. Enlarge screenshot
What you should see

The estimate updates as you change the settings. The example stores 20 frames at 32 cubed with 8,000 tracers for about 0.01 GB.

Record, replay, or export Step 16

Bake the run to a .cflow file

Start here Open Bake and choose recording settings. A bake uses the current Scene and Physics settings, including any pending scene changes.

  1. Click Bake from start.... Choose a folder, enter a new filename such as filaments.cflow, and click Save.
  2. Wait for the cached-frame count to finish. If you need to stop early, click Cancel bake (keep frames) to retain the frames already computed.
The Bake from start button marked below the estimate for a 20-frame practice run. Enlarge screenshot
What you should see

After a completed bake, the cache opens for replay. Its filename and frame count appear in Bake, along with a Cached frame slider.

Record, replay, or export Step 17

Open a recording you already have

Start here You have a .cflow file from an earlier bake. Open Cluster Flow and expand Bake in the left panel.

  1. Click Open cache.... Navigate to the folder containing your recording, select the .cflow file, and click Open.
The Open cache button marked in the Bake section of the live workspace. Enlarge screenshot
What you should see

The selected filename and number of cached frames appear. Use the replay controls to visit a frame or play the recording.

Record, replay, or export Step 18

Find a frame or play the recording

Start here A recording is open under Bake. Open an existing file or bake a run to get here.

  1. If the recording is playing, click Pause replay above the panel. Drag Cached frame (marker 1) to inspect a single saved state.
  2. Click Play replay (marker 2) to advance through the frames. Use Playback frames / second in the Bake section to set the preview speed.
  3. Tick Loop replay (marker 3) to play repeatedly. To return to the first frame and pause, click To start beside the playback button.
Recording named filaments.cflow with Cached frame, Play replay, and Loop replay numbered. Enlarge screenshot
What you should see

The timeline moves through saved frames. You can still orbit the image and switch display fields while inspecting the same recording.

Record, replay, or export Step 19

Turn a recording into an MP4

Start here Bake a run or open a .cflow file, then expand Bake and scroll to the bottom of its replay controls.

  1. Choose Movie resolution, such as 1280 x 720.
  2. Set Movie FPS. Each cached frame becomes one video frame. For example, 20 frames at 10 FPS make a two-second video.
  3. Click Export MP4.... Choose a filename with the .mp4 extension and click Save. Wait for the export progress bar to finish before opening the file.
Movie resolution, Movie FPS, and Export MP4 marked in the recording’s Bake section. Enlarge screenshot
What you should see

The chosen folder contains a movie of the recording in your current view. Enabled camera rotation follows movie time during export. Stop export (keep video) finishes a shorter movie if you stop partway through.

Record, replay, or export Step 20

Leave replay and edit the simulation

Start here A cache is open and any movie export has finished. Expand Bake and scroll below Loop replay.

  1. Click Return to live. If you want the gas to advance, scroll to the top and click Resume if that button is showing.
  2. Expand Scene to edit a new starting model, or Physics to change how the current live gas evolves.
Return to live button outlined between the replay and movie controls. Enlarge screenshot
What you should see

The cached timeline and movie controls disappear, and the live physics and scene controls are available again. Your saved .cflow file can be reopened later.

Screenshot