Viewing Omega3P Results
=======================

With the computed results downloaded to the local filesystem, you can use the interactive ParaView features to construct visualization pipelines and display the data. An easy way to do that is using the SLACTools plugin for ParaView.

.. rst-class:: step-number

12\. Load SLACTools Plugin

If the SLACTools toolbar is not visible, open the "Tools" menu and select the "Manage Plugins..." item to open the Plugin Manager dialog. Find and click on the ``SLACTools`` item in the dialog and then click the "Load Selected" button. You can also open the ``SLACTools`` item and check the "Auto Load" option if desired. When you close the Plugin Manager, you will see the SLACTools toolbar.

.. rst-class:: step-number

13\. Open a Second RenderView

In the "Layout #1" toolbar, find the "Split Vertical Axis" button and click that to open a second RenderView window. In the sidebar, the select the "Resources" tab and click the eyeball next to the "pillbox-rtop4" item in the "Resource" list, to hide the model from the second view. You can optionally close the "Output Messages" view to give more space to the RenderView panels.

.. image:: images/second-renderview.png
    :align: center


.. rst-class:: step-number

14\. Load the Mesh and Mode Files

The steps to load results data will be simplified in the future, but for now, click on the "Simulation Jobs" tab and select the first item in the list so that you can see the "Download Directory" field in the details widget. This is the folder where the Omega3P results are stored. Then click on the SLACTools icon to open the data manager dialog. For the "Mesh File" field, navigate to the ``pillbox4-rtop.ncdf`` file; it is in a "download" subdirectory under the path displayed in the job details widget. For the "Mode File" field, navigate to the "download/omega3p_results" subdirectory and select the first mode file; the name should be similar to ``omega3p.l0.m0000.1.3138100e+09.mod``. In the main dialog, click the "OK" button and the second RenderView will now display the EM data with default settings.

.. image:: images/slactools-first.png
    :align: center


.. rst-class:: step-number

15\. Link the Render Views

For convenience, you can link the camera for the two RenderView panels. Right-click on the upper RenderView and in the context menu, select the "Link Camera..." item. Then click on the lower RenderView and the two views will respond in sync to mouseview actions in either view.

.. figure:: images/paraview-toolbutton.png
    :figwidth: 25%
    :align: right



.. rst-class:: step-number

16\. Enable ParaView Features

By default, ModelBuilder for ACE3P hides the ParaView pipeline inspector and related toolbars and filters. To see them, find and click the toolbar button with a gray ParaView icon. Once clicked, the button will change to display the familiar red-green-blue logo and the "Pipeline Browser" will display in the sidebar.


.. rst-class:: step-number

17\. Show Properties View

In the "View" menu, enable the "Properties". You can arrange the views as you like, and close those you no longer need. Here we have docked the Properties view as a tab in the left sidebar and docked the Pipeline Browser as the right-hand sidebar. At this point, you can use all of the ParaView and SLACTools features to visualize the fields generated by the Omega3P simulation.

.. image:: images/results-view.png
    :align: center
