Advanced Multiblock: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: =Introduction= This tutorial covers multiblock processing and data analysis. ==Multiblock - Color two blocks differently== *Color two blocks differently *Open the dataset can.exo. Turn o...)
 
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Introduction=
=Introduction=
This tutorial covers multiblock processing and data analysis.
This tutorial covers multiblock processing.  It also uses the dataset bake.e, which can be found in the ParaView Data downloads from paraview.org.


==Multiblock - Color two blocks differently==
==Block commands onscreen menu==
*Color two blocks differently
Bake.e is a dataset that simulates the heating of a cone in a test facility.  It has numerous blocks.  T (for temperature) is the primary variable of interest.
*Open the dataset can.exo.  Turn on all variables.  Apply.
*Open the dataset bake.exo.  Turn on all variables.  Apply. Your dataset is now colored by block.
*Block 0
*Change vtkBlockColors to TYour dataset is now colored by temperature. Play forward in time, and look into the simulationBe sure to rescale to data range.
**Be sure that can.exo is selected in the Pipeline Browser.
*Change color back to vtkBlockColors.
**Filters/ Alphabetical/ Extract Block.   
**Select Dataset 0.
**Color by ACCL
*Block 1
**Be sure that can.exo is selected in the Pipeline Browser.
**Filters/ Alphabetical/ Extract Block.   
**Select Dataset 1.
**Color by Displ
*Go to the last frame.
*Select ExtractBlock1 in the Pipeline Browser.
*Rescale to dataRange
*Select ExtractBlock2 in the Pipeline Browser.
*Rescale to dataRange
*Go to the first frame, then Animate.




==Multiblock – Select a range of blocks==
Notice that this model has 6 sides, and there are 12 annotation colorsThus, they repeatLets make them random.
*Edit/ Delete All
 
*Open the dataset bake.exoTurn on all variablesApply.
*Properties tab, AdvancedSlide down towards the bottom, and find '''Block Colors Distinct Values'''Change this to '''11'''.
*Open the Selection Inspector(View/ Selection Inspector)
 
*Hold down the control key, and Select Block for the six outside blocks of bake.   
*Right click on a side (a block).  Notice that the bock name and ID are shown.
*Scroll down the list of datasets (blocks) in the Selection Inspector.  Notice that we have selected 122, 123, 124, 125, 126 and 127.
*Right click on a side.  Change the block's color and opacity.
*Go back to the Object Inspector, and turn off blocks 122, 123, 124, 125, 126 and 127.  Accept.
*Right click on a side.  Hide, then unhide the block.
*Notice that you can use the <shift> key to turn on and off groups of blocks.
 


[[Image:advanced_multiblock_1.png|1000px]]
 


==Don't load some blocks==
==Data Analysis - Point Labels==
You can easily change which blocks you load.  This is done through selections.  Here is an example.
*Open the dataset bake.exo.  Turn on all variables.  Apply.  Your dataset is now colored by block.
*Choose the Select Block icon (or hit the '''b''' key), then rubber band select the blocks on the outside edge of bake.  You have selected numerous blocks.
*On the Properties tab, slide down to the section named Blocks.  Click '''Uncheck Selected Blocks'''.  Click '''Apply'''.


*Open the data set can.exo.
*Change the Style Representation to Surface With Edges.
*On the toolbar, push the Select Points On  icon.  This will allow you to manually select a point on your data set and have the id of those points displayed.
*Rubber band select a point (node)
*From the View menu select the menu option Selection Inspector.
*Notice that all of the point indexes are listed.
*On the Selection Inpector panel, scroll down to the bottom and click on the Point Label tab.  Check the Visible check box.  This will display the point IDs on the data set.
*You can also do a lookup in the opposite direction.
*On the Selection Inspector panel, scroll to the top and enter an Index Range or Global ID Range number.  On can.exo, an example is Composite ID 2 (first generic block), and point 100.  It will display on your dataset.
*Try toggling the Select Cells that Include the Selected Point on.
*HINT – change to wireframe to find the points or cells you have selected.
*Extra Credit – Try the same selection steps with cell type data.  For a cell number, try Composite ID 2, cell 100.


[[Image:advanced_multiblock_2.png|1000px]]
    
    
==Data Analysis - Spreadsheet and histogram view==
 
*Open Can.exo.
 
*Split Horizontal
==Load the same dataset twice==
*Split Vertical
*Open the dataset can.exo. Turn all variables on.  Only turn on block ID '''2'''.  '''Apply'''.
*Highlight the can window, and select a cell on the can.
*Open the dataset can.exoTurn all variables on. Only turn on block ID '''1''''''Apply'''.
*In the upper right window, select Spreadsheet View.
*Change the timestep to 1.
*Select the Display tab, and change the Select Attributes to Show to Cell DataReturn it to Point Data.
*Color by '''ACCL'''.
*Select the Show Only Selected Elements check box.
*Select a different cell on the can.
*Highlight the lower right window.
*Filters→Data Analysis→Histogram.  Apply.
*Change Scalars to DISPL.  Apply.
*Animate forward in time one step at a time.
*Play
*Play


   
[[Image:advanced_multiblock_3.png|1000px]]
 
 
==Extract Block and Extract Selection==
Two filters that can also be used to partition your data are the Extract Block and Extract Selection filters. Instead of reading your data in twice, read it in once and Extract Block twice.


   
   
==Data Analysis - Extract Selection==
==Multi-block inspector==
*Open can.exo.
The '''multi-block inspector''' can also be used to toggle visibility, and change colors and opacities of selected blocks.  The '''multi-block inspector''' can be found under the '''View''' menu.
*On the toolbar, push the Select Cells On icon.  This will allow you to manually select a cell on your data set.
*Click on the can in one location, turning on only one cell.
*Filters→Data Analysis→Extract Selections, then click the Copy Active Selection button, and Apply.
*Split Vertical, Spreadsheet View, and turn on the eyeball in front of the ExtractSelection filter.
*You can see Cell data by selecting the ExtractSelection→Display tab and changing the Select Attributes to Show.
*Try animating the data.
*Extra Credit: Turn on visibility of the can, and display it in wireframe.  Change the color of the selected cell to Red(The following picture is including the extra credit.)


=Acknowledgements=
=Acknowledgements=
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000.
Sandia National Laboratories is a multi-mission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA-0003525.

Latest revision as of 20:31, 22 June 2017

Introduction

This tutorial covers multiblock processing. It also uses the dataset bake.e, which can be found in the ParaView Data downloads from paraview.org.

Block commands onscreen menu

Bake.e is a dataset that simulates the heating of a cone in a test facility. It has numerous blocks. T (for temperature) is the primary variable of interest.

  • Open the dataset bake.exo. Turn on all variables. Apply. Your dataset is now colored by block.
  • Change vtkBlockColors to T. Your dataset is now colored by temperature. Play forward in time, and look into the simulation. Be sure to rescale to data range.
  • Change color back to vtkBlockColors.


Notice that this model has 6 sides, and there are 12 annotation colors. Thus, they repeat. Lets make them random.

  • Properties tab, Advanced. Slide down towards the bottom, and find Block Colors Distinct Values. Change this to 11.
  • Right click on a side (a block). Notice that the bock name and ID are shown.
  • Right click on a side. Change the block's color and opacity.
  • Right click on a side. Hide, then unhide the block.


Advanced multiblock 1.png


Don't load some blocks

You can easily change which blocks you load. This is done through selections. Here is an example.

  • Open the dataset bake.exo. Turn on all variables. Apply. Your dataset is now colored by block.
  • Choose the Select Block icon (or hit the b key), then rubber band select the blocks on the outside edge of bake. You have selected numerous blocks.
  • On the Properties tab, slide down to the section named Blocks. Click Uncheck Selected Blocks. Click Apply.


Advanced multiblock 2.png


Load the same dataset twice

  • Open the dataset can.exo. Turn all variables on. Only turn on block ID 2. Apply.
  • Open the dataset can.exo. Turn all variables on. Only turn on block ID 1. Apply.
  • Change the timestep to 1.
  • Color by ACCL.
  • Play

Advanced multiblock 3.png


Extract Block and Extract Selection

Two filters that can also be used to partition your data are the Extract Block and Extract Selection filters. Instead of reading your data in twice, read it in once and Extract Block twice.


Multi-block inspector

The multi-block inspector can also be used to toggle visibility, and change colors and opacities of selected blocks. The multi-block inspector can be found under the View menu.

Acknowledgements

Sandia National Laboratories is a multi-mission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA-0003525.