Ascent Actions Examples

An example of the contour filter with a single iso value.

YAML actions:

#An example of the contour filter with a single iso value.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "braid"
          iso_values: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_single_contour_3d"

Resulting image:

../_images/tout_single_contour_3d100.png

An example of rendering a point field with constant radius.

YAML actions:

#An example of rendering a point field with constant radius.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          points: 
            radius: 1.0
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_points_const_radius"

Resulting image:

../_images/tout_render_3d_points_const_radius100.png

An example of creating a mesh plot.

YAML actions:

#An example of creating a mesh plot.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "mesh"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_mesh"

Resulting image:

../_images/tout_render_3d_mesh100.png

An example of using the volume (unstructured grid) extract.

YAML actions:

#An example of using the volume (unstructured grid) extract.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "volume"
      params: 
        field: "radial"
        filename: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_rover_volume"

Resulting image:

../_images/tout_rover_volume100.png

An example if using the vector component filter to extract a scalar component of a vector field.

YAML actions:

#An example if using the vector component filter  to extract a scalar component of a vector field.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "vector_component"
        params: 
          field: "vel"
          component: 0
          output_name: "my_vec_comp"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "my_vec_comp"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_vector_component"

Resulting image:

../_images/tout_vector_component100.png

An example of creating a render, specifying all camera parameters.

YAML actions:

#An example of creating a render, specifying all camera parameters.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "volume"
          field: "braid"
          color_table: 
            name: "blue"
            control_points: 
              - 
                type: "rgb"
                position: 0.0
                color: [1.0, 0.0, 0.0]
              - 
                type: "rgb"
                position: 0.5
                color: [0.0, 1.0, 0.0]
              - 
                type: "rgb"
                position: 1.0
                color: [1.0, 1.0, 1.0]
              - 
                type: "alpha"
                position: 0.0
                alpha: 0.0
              - 
                type: "alpha"
                position: 1.0
                alpha: 1.0
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/render_0"
      renders: 
        r1: 
          image_width: 512
          image_height: 512
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/render_0"
        r2: 
          image_width: 400
          image_height: 400
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/render_1"
          camera: 
            look_at: [1.0, 1.0, 1.0]
            position: [0.0, 25.0, 15.0]
            up: [0.0, -1.0, 0.0]
            fov: 60.0
            xpan: 0.0
            ypan: 0.0
            zoom: 1.0
            azimuth: 10.0
            elevation: -10.0
            near_plane: 0.1
            far_plane: 100.1

Resulting image:

../_images/render_0100.png

An example rendering a 2d field.

YAML actions:

#An example rendering a 2d field.

- 
  action: "add_scenes"
  scenes: 
    scene1: 
      plots: 
        plt1: 
          type: "pseudocolor"
          field: "braid"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_2d_default_runtime"

Resulting image:

../_images/tout_render_2d_default_runtime100.png

An example of using the log filter.

YAML actions:

#An example of using the log filter.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "vector_magnitude"
        params: 
          field: "vel"
          output_name: "mag"
      f2: 
        type: "log"
        params: 
          field: "mag"
          output_name: "log_mag"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "log_mag"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_log_field"

Resulting image:

../_images/tout_log_field100.png

An example of rendering with no background (alpha channel = 0)

YAML actions:

#An example of rendering with no background (alpha channel = 0)

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_no_bg"
          render_bg: "false"

Resulting image:

../_images/tout_render_3d_no_bg100.png

An example of changing the azimuth of the camera.

YAML actions:

#An example of changing the azimuth of the camera.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
      renders: 
        r1: 
          camera: 
            azimuth: 1.0
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_azimuth"

Resulting image:

../_images/tout_render_3d_azimuth100.png

An example of the contour filter with a number of evenly spaced levels.

YAML actions:

#An example of the contour filter with a number of evenly spaced levels.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "braid"
          levels: 5
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_multi_contour_levels"

Resulting image:

../_images/tout_multi_contour_levels100.png

An example an inverted sphere clip using a center and radius

YAML actions:

#An example an inverted sphere clip using a center and radius

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip"
        params: 
          invert: "true"
          sphere: 
            radius: 11.0
            center: 
              x: 0.0
              y: 0.0
              z: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_inverted_sphere"

Resulting image:

../_images/tout_clip_inverted_sphere100.png

An example of creating a transfer function for volume rendering.

YAML actions:

#An example of creating a transfer function for volume rendering.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "braid"
          iso_values: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
        p2: 
          type: "volume"
          field: "braid"
          min_value: -0.5
          max_value: 0.5
          color_table: 
            name: "rainbow desaturated"
            control_points: 
              - 
                type: "alpha"
                position: 0.0
                alpha: 0.0
              - 
                type: "alpha"
                position: 1.0
                alpha: 0.5
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_multi_default_runtime"

Resulting image:

../_images/tout_render_3d_multi_default_runtime100.png

An example of the interconnecting pipelines.

YAML actions:

#An example of the interconnecting pipelines.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "vector_magnitude"
        params: 
          field: "vel"
          output_name: "mag"
    pl2: 
      pipeline: "pl1"
      f1: 
        type: "log"
        params: 
          field: "mag"
          output_name: "log_mag"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "log_mag"
          pipeline: "pl2"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_pipelines"

Resulting image:

../_images/tout_pipelines100.png

An example of using the gradient filter and plotting the magnitude.

YAML actions:

#An example of using the gradient filter and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "vorticity"
        params: 
          field: "vel"
          output_name: "vel_vorticity"
          use_cell_gradient: "false"
      f1: 
        type: "vector_magnitude"
        params: 
          field: "vel_vorticity"
          output_name: "mag_vorticity"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag_vorticity"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_vorticity_vel"

Resulting image:

../_images/tout_vorticity_vel100.png

An example of the three slice filter.

YAML actions:

#An example of the three slice filter.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "3slice"
        params: 
          x_offset: 1.0
          y_offset: 0.0
          z_offset: -1.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_3slice_3d"

Resulting image:

../_images/tout_3slice_3d100.png

An example of using the volume (unstructured grid) extract with min and max values.

YAML actions:

#An example of using the volume (unstructured grid) extract with min and max values.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "volume"
      params: 
        field: "radial"
        min_value: -1.0
        emission: "radial"
        precision: "double"
        filename: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_rover_volume_min_max"

Resulting image:

../_images/tout_rover_volume_min_max100.png

An example of using the gradient filter on a element centered fieldand plotting the magnitude.

YAML actions:

#An example of using the gradient filter on a element centered fieldand plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "gradient"
        params: 
          field: "radial"
          output_name: "radial_gradient"
      f1: 
        type: "vector_magnitude"
        params: 
          field: "radial_gradient"
          output_name: "mag_grad"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag_grad"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_gradient_mag_radial"

Resulting image:

../_images/tout_gradient_mag_radial100.png

An example of the contour filter with a multiple iso values.

YAML actions:

#An example of the contour filter with a multiple iso values.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "braid"
          iso_values: [-0.4, 0.2, 0.4]
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_multi_contour_3d"

Resulting image:

../_images/tout_multi_contour_3d100.png

An example of the slice filter with a single plane.

YAML actions:

#An example of the slice filter with a single plane.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "slice"
        params: 
          point: 
            x: 0.0
            y: 0.0
            z: 0.0
          normal: 
            x: 0.0
            y: 0.0
            z: 1.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_slice_3d"

Resulting image:

../_images/tout_slice_3d100.png

An example of creating a mesh plot of a contour.

YAML actions:

#An example of creating a mesh plot of a contour.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "braid"
          iso_values: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
        p2: 
          type: "mesh"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_multi_mesh"

Resulting image:

../_images/tout_render_3d_multi_mesh100.png

An example of using inverted clip with field.

YAML actions:

#An example of using inverted clip with field.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip_with_field"
        params: 
          field: "braid"
          clip_value: 0.0
          invert: "true"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_with_field_inverted"

Resulting image:

../_images/tout_clip_with_field_inverted100.png

An example if using the vector magnitude filter.

YAML actions:

#An example if using the vector magnitude filter.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "vector_magnitude"
        params: 
          field: "vel"
          output_name: "mag"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_vec_mag"

Resulting image:

../_images/tout_vec_mag100.png

An example of using the log filter and clamping the min value. This can help when there are negative values present.

YAML actions:

#An example of using the log filter and clamping the min value. This can help when there are negative values present.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "vector_magnitude"
        params: 
          field: "vel"
          output_name: "mag"
      f2: 
        type: "log"
        params: 
          field: "mag"
          output_name: "log_mag"
          clamp_min_value: 2.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "log_mag"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_log_field_clamp"

Resulting image:

../_images/tout_log_field_clamp100.png

An example of the slice filter with a single plane (off-axis).

YAML actions:

#An example of the slice filter with a single plane (off-axis).

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "slice"
        params: 
          point: 
            x: 1.0
            y: 1.0
            z: 1.0
          normal: 
            x: 0.0
            y: 0.0
            z: 1.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_slice_3d_off_axis"

Resulting image:

../_images/tout_slice_3d_off_axis100.png

An example of the slice filter with a single plane.

YAML actions:

#An example of the slice filter with a single plane.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "exaslice"
        params: 
          point: 
            x: 0.0
            y: 0.0
            z: 0.0
          normal: 
            x: 0.0
            y: 0.0
            z: 1.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_exaslice_3d"

Resulting image:

../_images/tout_exaslice_3d100.png

An example of creating a plot specifying the min and max values of the scalar range.

YAML actions:

#An example of creating a plot specifying the min and max values of the scalar range.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          min_value: -0.5
          max_value: 0.5
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_ascent_min_max"

Resulting image:

../_images/tout_render_3d_ascent_min_max100.png

An example a plane clip defined with a point and a normal

YAML actions:

#An example a plane clip defined with a point and a normal

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip"
        params: 
          plane: 
            point: 
              x: 0.0
              y: 0.0
              z: 0.0
            normal: 
              x: 1.0
              y: 0.0
              z: 0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_plane"

Resulting image:

../_images/tout_clip_plane100.png

An example of using clip with field.

YAML actions:

#An example of using clip with field.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip_with_field"
        params: 
          field: "braid"
          clip_value: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_with_field"

Resulting image:

../_images/tout_clip_with_field100.png

An example if using the re-center filter (to vertex).

YAML actions:

#An example if using the re-center filter (to vertex).

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "recenter"
        params: 
          field: "radial"
          association: "vertex"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_recenter_element"

Resulting image:

../_images/tout_recenter_element100.png

An example of rendering with no annotations.

YAML actions:

#An example of rendering with no annotations.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_no_annotations"
          annotations: "false"

Resulting image:

../_images/tout_render_3d_no_annotations100.png

An example of rendering custom background and foreground colors.

YAML actions:

#An example of rendering custom background and foreground colors.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_bg_fg_colors"
          bg_color: [1.0, 1.0, 1.0]
          fg_color: [0.0, 0.0, 0.0]

Resulting image:

../_images/tout_render_3d_bg_fg_colors100.png

An example of using the isovolume filter.

YAML actions:

#An example of using the isovolume filter.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "isovolume"
        params: 
          field: "braid"
          min_value: 5.0
          max_value: 10.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_iso_volume"

Resulting image:

../_images/tout_iso_volume100.png

An example if using the re-center filter (to element).

YAML actions:

#An example if using the re-center filter (to element).

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "recenter"
        params: 
          field: "braid"
          association: "element"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_recenter_vertex"

Resulting image:

../_images/tout_recenter_vertex100.png

An example of using the gradient filter and plotting the magnitude.

YAML actions:

#An example of using the gradient filter and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "divergence"
        params: 
          field: "vel"
          output_name: "vel_divergence"
          use_cell_gradient: "false"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "vel_divergence"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_divergence_vel"

Resulting image:

../_images/tout_divergence_vel100.png

An example of the slice filter with a single plane.

YAML actions:

#An example of the slice filter with a single plane.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "slice"
        params: 
          point: 
            x_offset: 0.0
            y_offset: -0.5
            z_offset: 0.0
          normal: 
            x: 1.0
            y: 1.0
            z: 1.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_slice_offset_3d"

Resulting image:

../_images/tout_slice_offset_3d100.png

An example of using the gradient filter and plotting the magnitude.

YAML actions:

#An example of using the gradient filter and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "qcriterion"
        params: 
          field: "vel"
          output_name: "vel_qcriterion"
          use_cell_gradient: "false"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "vel_qcriterion"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_qcriterion_vel"

Resulting image:

../_images/tout_qcriterion_vel100.png

Example of rendering multiple topologies

YAML actions:

#Example of rendering multiple topologies

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          color_table: 
            name: "Inferno"
        p2: 
          type: "pseudocolor"
          field: "point_braid"
          points: 
            radius: 0.5
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_multi_topo"
          annotations: "false"
          camera: 
            azimuth: 30
            elevation: 11

Resulting image:

../_images/tout_multi_topo100.png

An example of creating a render specifying the image size.

YAML actions:

#An example of creating a render specifying the image size.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "rank_ele"
      renders: 
        r1: 
          image_width: 512
          image_height: 512
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_domain_overload"
          camera: 
            azimuth: 45.0

Resulting image:

../_images/tout_render_3d_domain_overload100.png

An example a blox clip

YAML actions:

#An example a blox clip

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip"
        params: 
          box: 
            min: 
              x: 0.0
              y: 0.0
              z: 0.0
            max: 
              x: 10.01
              y: 10.01
              z: 10.01
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_box"

Resulting image:

../_images/tout_clip_box100.png

An example of creating a custom color map.

YAML actions:

#An example of creating a custom color map.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          color_table: 
            control_points: 
              - 
                type: "rgb"
                position: 0.0
                color: [0.23, 0.08, 0.08]
              - 
                type: "rgb"
                position: 0.5
                color: [0.48, 0.23, 0.04]
              - 
                type: "rgb"
                position: 1.0
                color: [0.99, 1.0, 0.96]
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/milk_chocolate"
      renders: 
        r1: 
          image_width: 512
          image_height: 512
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/milk_chocolate"

Resulting image:

../_images/milk_chocolate100.png

An example if using the composite vector filter to compose three scalar fields into a vector.

YAML actions:

#An example if using the composite vector filter  to compose three scalar fields into a vector.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "composite_vector"
        params: 
          field1: "braid"
          field2: "braid"
          field3: "braid"
          output_name: "my_vec"
      f2: 
        type: "vector_magnitude"
        params: 
          field: "my_vec"
          output_name: "my_vec_mag"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "my_vec_mag"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_composite_vector"

Resulting image:

../_images/tout_composite_vector100.png

An example a sphere clip using a center and radius

YAML actions:

#An example a sphere clip using a center and radius

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "clip"
        params: 
          sphere: 
            radius: 11.0
            center: 
              x: 0.0
              y: 0.0
              z: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "radial"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_clip_sphere"

Resulting image:

../_images/tout_clip_sphere100.png

Example of adding 1 ghost field with 2 topologies

YAML actions:

#Example of adding 1 ghost field with 2 topologies

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
        p2: 
          type: "pseudocolor"
          field: "point_braid"
          points: 
            radius: 0.5
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_multi_topo_single_ghost"
          annotations: "false"
          camera: 
            azimuth: 30
            elevation: 11

Resulting image:

../_images/tout_multi_topo_single_ghost100.png

An example of using the gradient filter and plotting the magnitude.

YAML actions:

#An example of using the gradient filter and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "gradient"
        params: 
          field: "braid"
          output_name: "braid_gradient"
          use_cell_gradient: "true"
      f1: 
        type: "vector_magnitude"
        params: 
          field: "braid_gradient"
          output_name: "mag_grad"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag_grad"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_cell_gradient_mag_braid"

Resulting image:

../_images/tout_cell_gradient_mag_braid100.png

An example of rendering a point field with variable radius.

YAML actions:

#An example of rendering a point field with variable radius.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          points: 
            radius: 0.25
            radius_delta: 2.0
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_points_variable_radius"

Resulting image:

../_images/tout_render_3d_points_variable_radius100.png

An example of using the threshold filter.

YAML actions:

#An example of using the threshold filter.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "threshold"
        params: 
          field: "braid"
          min_value: -0.2
          max_value: 0.2
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_threshold_3d"

Resulting image:

../_images/tout_threshold_3d100.png

A more complex trigger example using several functions that evaluate positons on the mesh.

YAML actions:

#A more complex trigger example using several functions that evaluate positons on the mesh.

- 
  action: "add_triggers"
  triggers: 
    t1: 
      params: 
        condition: "magnitude(max(field('braid')).position - vector(0,0,0)) > 0"
        actions_file: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/complex_trigger_actions"

Resulting image:

../_images/tout_complex_trigger_actions100.png

Example of adding multple ghosts with 2 topologies

YAML actions:

#Example of adding multple ghosts with 2 topologies

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
        p2: 
          type: "pseudocolor"
          field: "point_braid"
          points: 
            radius: 0.5
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_multi_topo_ghosts"
          annotations: "false"
          camera: 
            azimuth: 30
            elevation: 11

Resulting image:

../_images/tout_multi_topo_ghosts100.png

An example of using the gradient filter and plotting the magnitude.

YAML actions:

#An example of using the gradient filter and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "gradient"
        params: 
          field: "braid"
          output_name: "braid_gradient"
      f1: 
        type: "vector_magnitude"
        params: 
          field: "braid_gradient"
          output_name: "mag_grad"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag_grad"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_gradient_mag_braid"

Resulting image:

../_images/tout_gradient_mag_braid100.png

An example of using the gradient filter using cell gradients on a element centered field and plotting the magnitude.

YAML actions:

#An example of using the gradient filter using cell gradients on a element centered field and plotting the magnitude.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f2: 
        type: "gradient"
        params: 
          field: "radial"
          output_name: "radial_gradient"
          use_cell_gradient: "true"
      f1: 
        type: "vector_magnitude"
        params: 
          field: "radial_gradient"
          output_name: "mag_grad"
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "mag_grad"
          pipeline: "pl1"
      image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_cell_gradient_mag_radial"

Resulting image:

../_images/tout_cell_gradient_mag_radial100.png

An example of using the xray extract.

YAML actions:

#An example of using the xray extract.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "xray"
      params: 
        absorption: "radial"
        filename: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_rover_xray_params"
        image_params: 
          min_value: 0.00600000005215406
          max_value: 1.0
          log_scale: "true"
        unit_scalar: 0.00100000004749745

An example of using a relay extract to save a subset of the data.

YAML actions:

#An example of using a relay extract to save a subset of the data.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "relay"
      params: 
        path: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_relay_serial_extract_subset"
        protocol: "blueprint/mesh/hdf5"
        fields: 
          - "braid"
          - "radial"
- 
  action: "execute"

A more complex trigger example using several functions that evaluate positons on the mesh.

YAML actions:

#A more complex trigger example using several functions that evaluate positons on the mesh.

- 
  action: "add_triggers"
  triggers: 
    t1: 
      params: 
        condition: "magnitude(max(field('braid')).position - vector(0,0,0)) > 0"
        actions_file: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/trigger_extract_actions"

An example of using the xray extract.

YAML actions:

#An example of using the xray extract.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "xray"
      params: 
        absorption: "radial"
        emission: "radial"
        filename: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_rover_xray"

An example of rendering to a filename using format specifiers.

YAML actions:

#An example of rendering to a filename using format specifiers.

- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots: 
        p1: 
          type: "pseudocolor"
          field: "braid"
      renders: 
        r1: 
          image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_3d_name_format%04d"
          annotations: "false"

An example of quiering the current cycle.

YAML actions:

#An example of quiering the current cycle.

- 
  action: "add_queries"
  queries: 
    q1: 
      params: 
        expression: "cycle()"
        name: "cycle"

An example of using devil ray for pseudocolor plot.

YAML actions:

#An example of using devil ray for pseudocolor plot.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "dray_3slice"
      params: 
        field: "density"
        min_value: 0.99
        max_value: 1.0
        log_scale: "false"
        image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_dray_3slice"
        camera: 
          azimuth: -30
          elevation: 35
        x_offset: 0.0
        y_offset: 0.0
        z_offset: 0.0

An example of using devil ray for pseudocolor plot.

YAML actions:

#An example of using devil ray for pseudocolor plot.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "dray_volume"
      params: 
        field: "density"
        min_value: 0.98
        max_value: 1.04
        log_scale: "false"
        image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_dray_volume"
        camera: 
          azimuth: -30
          elevation: 35
        samples: 100

An example of using devil ray for pseudocolor plot.

YAML actions:

#An example of using devil ray for pseudocolor plot.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "dray_pseudocolor"
      params: 
        field: "density"
        min_value: 0.99
        max_value: 1.0
        log_scale: "false"
        image_prefix: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_dray_surface"
        camera: 
          azimuth: -30
          elevation: 35
        draw_mesh: "true"
        line_thickness: 0.1
        line_color: [0.0, 0.0, 0.0, 1.0]

An example of using an relay extract to save the results of a pipeline to the file system.

YAML actions:

#An example of using an relay extract to save the results of  a pipeline to the file system.

- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "contour"
        params: 
          field: "radial_vert"
          iso_values: 250.0
- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "relay"
      pipeline: "pl1"
      params: 
        path: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_hd5f_iso"
- 
  action: "execute"

An example of using an relay extract to save the published mesh to the file system.

YAML actions:

#An example of using an relay extract to save the published mesh to the file system.

- 
  action: "add_extracts"
  extracts: 
    e1: 
      type: "relay"
      params: 
        path: "/Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_hd5f_mesh"
        protocol: "blueprint/mesh/hdf5"
- 
  action: "execute"

An example of quiering the maximum value of a field from the result of a pipeline.

YAML actions:

#An example of quiering the maximum value of a field from the result of a pipeline.

- 
  action: "add_queries"
  queries: 
    q1: 
      params: 
        expression: "max(field('braid'))"
        name: "max_braid"
      pipeline: "pl1"
- 
  action: "add_pipelines"
  pipelines: 
    pl1: 
      f1: 
        type: "slice"
        params: 
          point: 
            x: 0.0
            y: 0.0
            z: 0.0
          normal: 
            x: 0.0
            y: 0.0
            z: 1.0

YAML actions:

-
  action: add_scenes
  scenes:
        s1:
          plots:
            p1: 
              type: pseudocolor
              field: braid
          renders:
            r1:
              image_prefix: /Users/larsen30/research/test_builds/devil_ray/ascent/build/tests/_output/tout_render_actions_img_yaml

An example of quiering the maximum value of a field.

YAML actions:

#An example of quiering the maximum value of a field.

- 
  action: "add_queries"
  queries: 
    q1: 
      params: 
        expression: "max(field('braid'))"
        name: "max_braid"