Difference between revisions of "Visualizing AWP-ODC Output"

From SCECpedia
Jump to navigationJump to search
Line 42: Line 42:
 
== Load datasets ==
 
== Load datasets ==
  
 +
Once the job starts on Titan, you can begin loading data.
  
 
=== Velocity data ===
 
=== Velocity data ===
 +
 +
To load velocity data, go to File->Open and select the XDMF file you previously made.  It will appear in the 'Pipeline Browser' window in the upper left.  You may need to click on the eye next to it to get it to display. Additionally, the data is rendered on the Y/Z plane (there is a reason I had to set it up this way, but now I forget why), so click on the '-X' icon to the right of the Slice pull-down in the toolbar.  You should see the rectangle defined by your simulation region.  You can change the timestep you're looking at by changing the value in the 
  
  

Revision as of 19:27, 30 April 2018

This page documents a procedure to visualize AWP-ODC velocity output, using remote Paraview. So far, this procedure has only been tested on Titan using Paraview 4.4.0.

Configure the simulation

When running the AWP-ODC simulation, make sure it is configured to produce velocity output.

Take note of the following parameters:

  • NX, NY, NZ (and NBGX, NEDX, NGBY, NEDY, NGBZ, NEDZ if specified)
  • WRITE_STEP
  • NSKPX, NSKPY, NSKPZ
  • NTISKP

They'll be needed when producing the output.

Create a Paraview XDMF file

Once the simulation is complete, we must create a configuration file which tells Paraview how the velocity data is laid out in memory.

For this, run the script create_timeseries_file.py.

Usage: ./create_timeseries_file.py <X dim in output> <Y dim in output> <grid decimation> <NT in sim> <DT of sim> <NTISKP> <timesteps output per file> <prefix> <output file>

Based on this, a XDMF (XML) file is produced which can serve as input to Paraview.

Create traces

Often, other visual references are needed to make the visualization meaningful. The approach outlined uses a Cartesian grid projection to display the velocity results. This means that to display other data, we have to convert the data from (lat, lon) into (X index, Y index).

To do this, use the code get_grid_values.c .


Use local Paraview to connect to remote nodes

The easiest way to visualize the data is to leave it on the remote system, and use the client/server functionality of Paraview. In this mode, Paraview connects to a remote system and uses the remote cluster to drive the rendering.

Follow the instructions at Titan's Paraview guide, under "Interactive Mode", to create a connection.

Load datasets

Once the job starts on Titan, you can begin loading data.

Velocity data

To load velocity data, go to File->Open and select the XDMF file you previously made. It will appear in the 'Pipeline Browser' window in the upper left. You may need to click on the eye next to it to get it to display. Additionally, the data is rendered on the Y/Z plane (there is a reason I had to set it up this way, but now I forget why), so click on the '-X' icon to the right of the Slice pull-down in the toolbar. You should see the rectangle defined by your simulation region. You can change the timestep you're looking at by changing the value in the


Traces

Modify visuals

Add timestamp

Change plot colors

Create series of PNGs

Create movie