Changes between Version 32 and Version 33 of VisItBasics


Ignore:
Timestamp:
05/31/11 13:49:39 (14 years ago)
Author:
Brandon Shroyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • VisItBasics

    v32 v33  
    6464One of the most common and useful plots at our disposal is the ''pseudocolor'' plot, which presents the intensity of a scalar attribute as a color spectrum.  In two dimensions, this is fairly straightforward; in three dimensions an additional slice operation (see below) is usually required to get any useful information.
    6565
     66To practice creating pseudocolor plots, we will be using a 2D field
     67
    6668To create a pseudocolor plot:
    6769
    68 1.  Open a Chombo file or group of Chombo files (see above).
     701.  Enter the command
     71{{{
     72cp /home/bshroyer/FieldLoopAdvection_2D_documentation_test}}} <home_directory>
     73cd <home_directory>FieldLoopAdvection_documentation_test
     74}}}
     75This copies a 2D field loop advection problem to your home directory and moves into that directory as well.
    6976
    70 2.  Under {{{Plots}}}, click {{{Add->Pseudocolor->}}}''fieldname''.
     772.  Open a Chombo file or group of Chombo files (see above).
     78
     793.  Under {{{Plots}}}, click {{{Add->Pseudocolor->}}}''fieldname''.  In the case of the field loop problem, we'll be using the {{{Bx}}} field.
    7180
    7281[[Image(VisItPseudocolorMenu.png)]]
    7382
    74 3.  Click the Draw button.  This will draw a pseudocolor image in the !VisIt window to the right of the control window.  For high-resolution images, this may take several minutes.
     834.  Click the Draw button.  This will draw a pseudocolor image in the !VisIt window to the right of the control window.  For high-resolution images, this may take several minutes.
    7584
    7685[[Image(Bx2Dscreengrab.png)]]
     
    7988
    8089[[BR]]
    81 === 3D Plots and the Slice Operator ===
     90== 3D Plots and the Slice Operator ==
    8291
    8392Pseudocolor plots are opaque by default.  This means that if you try to create a pseudocolor plot of a 3D dataset, you will get a large colored block.  The boundary conditions of the dataset will be visible, but you will probably want to see some of the interior.  This is where the ''slice operator'' comes in.
     
    8796The slice operator creates a 2D plot by taking a planar slice of a 3D one.  This is especially effective for problems with some kind of axial symmetry, where a cross section of a coordinate plane will give you a pretty good idea of what's going on throughout the simulation.
    8897
    89 To try out a slice operation on a 3D pseudocolor plot:
     98To try out a slice operation on a 3D pseudocolor plot on clover:
    9099
    911001.  Enter the command
     
    96105This copies a 3D field loop advection problem to your home directory and moves into that directory as well.
    97106
    98 1.  Create a 3D pseudocolor plot (see "Creating a Pseudocolor Plot" above).
     1072.  Create a 3D pseudocolor plot (i.e., steps 2-4 "Creating a Pseudocolor Plot" above).
    99108
    100 2.  Under {{{Plots}}}, select {{{Operators->Slicing-Slice}}}.  You have now attached a Slice operator to your plot.
     1093.  Under {{{Plots}}}, select {{{Operators->Slicing-Slice}}}.  You have now attached a Slice operator to your plot.
    101110
    102111[[Image(SliceOperatorSelect.png)]]
    103112
    104 3.  In the {{{Plots}}} display, click on the arrow next to your plot to expand it.  Then double-click on {{{Slice}}} to open the attributes window.
     1134.  In the {{{Plots}}} display, click on the arrow next to your plot to expand it.  Then double-click on {{{Slice}}} to open the attributes window.
    105114
    106115[[Image(SliceOperatorApplied.png)]]
    107116
    108 4.  Select your intercept option in the {{{Normal}}} box.  This indicates the axis perpendicular to the slice.  Choosing the {{{Z-Axis}}} option, for instance, will create a slice along the {{{xy}}}-plane.
     1175.  Select your intercept option in the {{{Normal}}} box.  This indicates the axis perpendicular to the slice.  Choosing the {{{Z-Axis}}} option, for instance, will create a slice along the {{{xy}}}-plane.
    109118
    110 5.  Select the {{{Intercept}}} option in the {{{Origin}}} box.  This indicates the point along your selected axis from which you will start slicing.  For the 3D field loop problem, we will use {{{0.5}}} as an intercept.
     1196.  Select the {{{Intercept}}} option in the {{{Origin}}} box.  This indicates the point along your selected axis from which you will start slicing.  For the 3D field loop problem, we will use {{{0.5}}} as an intercept.
    111120
    112121 '''Note''':  By default, !VisIt uses 0 as the left boundary of the display.  This means that problems centered on the origin will find their display coordinates shifted; the field loop problem, for instance, has its coordinates changed from {{{[-1, 1], [-.5, .5], [-.5, .5]}}} to {{{[0, 2], [0, 1], [0, 1]}}}.  This is why the intercept is {{{.5}}}--because {{{.5}}} is the new origin for the z-axis.
     
    114123[[Image(SliceOperatorAttributes.png)]]
    115124
    116 6.  Once you have modified your attribute settings to taste, click {{{Apply}}}.  This will apply the slice operator to your 3D pseudocolor plot.  Be aware that the slice operator might not slice ''precisely'' along the designated intercept.  This is because the spatially-valued intercept cannot bisect cells.  When it tries, !VisIt simply rounds up to the nearest whole cell.  This most likely to be a problem on extremely low-resolution problems, but it can cause undue alarm in comparison tests.
     1257.  Once you have modified your attribute settings to taste, click {{{Apply}}}.  This will apply the slice operator to your 3D pseudocolor plot.  Be aware that the slice operator might not slice ''precisely'' along the designated intercept.  This is because the spatially-valued intercept cannot bisect cells.  When it tries, !VisIt simply rounds up to the nearest whole cell.  This most likely to be a problem on extremely low-resolution problems, but it can cause undue alarm in comparison tests.
    117126
    118127[[Image(Bx3Dsliced.png)]]