FLUENT allows you to plot contour lines or profiles superimposed on the physical domain. Contour lines are lines of constant magnitude for a selected variable (isotherms, isobars, etc.). A profile plot draws these contours projected off the surface along a reference vector by an amount proportional to the value of the plotted variable at each point on the surface. Sample plots are shown in Figures 28.1.11 and 28.1.12.
See also Section 28.1.5 for information about displaying contours or profiles on a surface that sweeps through the domain.
Steps for Generating Contour and Profile Plots
You can plot contours or profiles using the Contours panel (Figure 28.1.13).
The basic steps for generating a contour or profile plot are as follows:
If you want to select several surfaces of the same type, you can select that type in the Surface Types list instead. All of the surfaces of that type will be selected automatically in the Surfaces list (or deselected, if they are all selected already).
Another shortcut is to specify a Surface Name Pattern and click Match to select surfaces with names that match the specified pattern. For example, if you specify wall*, all surfaces whose names begin with wall (e.g., wall-1, wall-top) will be selected automatically. If they are all selected already, they will be deselected. If you specify wall?, all surfaces whose names consist of wall followed by a single character will be selected (or deselected, if they are all selected already).
These parameters can be used to create fuller profiles when you need to display the variation in a variable which is small compared to the absolute value of the variable. Consider, for example, the display of temperature profiles when the temperature range in the domain is from 300 K to 310 K. The 10 K range in the temperature will be hard to detect when profiles are drawn using the default scaling (which will be based on the absolute magnitude of 310 K). To create a fuller profile, you can set the Reference Value to 300 and the profile Scaling Factor to 5 (for example) to magnify the display of the remaining 10 K range. In subsequent display of the profiles, the reference value of 300 will be effectively subtracted from the data before display so that the temperatures of 300 K will not be offset from the baselines. The profiles will then reflect only the variation of temperature from 300 K.
The resulting display will include the specified number of contours or profiles of the selected variable, with the magnitude on each one determined by equally incrementing between the values shown in the Min and Max fields.
Contour and Profile Plot Options
The options mentioned in the procedure above include drawing color-filled contours/profiles (instead of the default line contours/profiles), specifying a range of values to be contoured or profiled, including portions of the grid in the contour or profile display, choosing node or cell values for display, and storing the contour or profile plot settings.
Drawing Filled Contours or Profiles
Color-filled contour or profile plots show a contour or profile display containing a continuous color display (see Figure 28.1.15), instead of just drawing lines representing specific values. (Note that a color-filled profile display is often referred to as a "carpet plot''.) To generate a filled contour or profile plot, turn on the Filled option in the Contours panel during step 5 above.
To display smoothly shaded filled contours, you must turn on lighting and select a lighting interpolation method other than Flat in the Display Options panel or the Lights panel. Note that you will not get smooth shading of filled contours if the Clip to Range (see below) option is turned on. Smooth shading of filled profiles is not available.
Specifying the Range of Magnitudes Displayed
By default, the minimum and maximum values contoured or profiled are set based on the range of values in the entire domain. This means that the color scale will start at the smallest value in the domain (shown in the Min field) and end at the largest value (shown in the Max field). If you are plotting contours or profiles on a subset of the domain (i.e., on a surface), your plot may cover only the midrange of the color scale. For example, if blue corresponds to 0 and red corresponds to 10, and the values on your surface range only from 4 to 6, your plot will contain mostly green contours or profiles, since green is the color at the middle of the default color scale.
If you want to focus in on a smaller range of values, so that blue corresponds to 4 and red to 6, you can manually reset the range to be displayed. (You can also use the minimum and maximum values on the selected surfaces--rather than in the entire domain--to determine the range, as described below.) Another reason to manually set the range is if you are interested only in certain values. For example, if you want to determine the region where pressure exceeds a certain value, you can increase the minimum value for display so that the lower pressure values are not displayed.
To manually set the contour/profile range, turn off the Auto Range option in the Contours panel. The Min and Max fields will become editable, and you can enter the new range of values to be displayed. To show the default range at any time, click the Compute button and the Min and Max fields will be updated.
If you are drawing filled contours or profiles (as described above) you can control whether or not values outside the prescribed Min/ Max range are displayed. To leave areas in which the value is outside the specified range empty (i.e., draw no contours or profiles), turn on the Clip to Range option. This is the default setting. If you turn Clip to Range off, values below the Min value will be colored with the lowest color on the color scale, and values above the Max value will be colored with the highest color on the color scale. Figures 28.1.16 and 28.1.17 show the results of enabling/disabling the Clip to Range option.
You can also choose to base the minimum and maximum values on the range of values on the selected surfaces, rather than in the entire domain. To do this, turn off the Global Range option in the Contours panel. The Min and Max values will be updated when you next click Compute or Display.
Including the Grid in the Contour Plot
For some problems, especially complex 3D geometries, you may want to include portions of the grid in your contour or profile plot as spatial reference points. For example, you may want to show the location of an inlet and an outlet along with the contours. This is accomplished by turning on the Draw Grid option in the Contours panel. The Grid Display panel will appear automatically when you turn on the Draw Grid option, and you can set the grid display parameters there. When you click Display in the Contours panel, the grid display, as defined in the Grid Display panel, will be included in the contour or profile plot.
Choosing Node or Cell Values
In FLUENT you can choose to display the computed cell-center values or values that have been interpolated to the nodes. By default, the Node Values option is turned on, and the interpolated values are displayed. For line contours or profiles, node values are always used. If you are displaying filled contours or profiles and you prefer to display the cell values, turn the Node Values option off. Filled contours/profiles of node values will show a smooth gradation of color, while filled contours/profiles of cell values may show sharp changes in color from one cell to the next.
If you are plotting contours to show the effect of a porous medium or fan, to depict a shock wave, or to show any other discontinuities or jumps in the plotted variable, you should use cell values; if you use node values in such cases, the discontinuity will be smeared by the node averaging for graphics and will not be shown clearly in the plot.
Storing Contour Plot Settings
For frequently used combinations of contour variables and options, you can store the information needed to generate the contour plot by specifying a Setup number and setting up the desired information in the Contours panel. When you click on the Display button, the settings for Options, Contours of, Min, Max, and Surfaces will be saved. You can then change the Setup number to an unused value (i.e., an ID for which no information has been saved) and generate a different contour plot. To generate a plot using the saved setup information, change the Setup number back to the value for which you saved contour information and click Display. You can save up to 10 different setups.
| Note that the number of contour
Levels, the surfaces selected for display in the
Grid Display panel (when the
Draw Grid option is activated), and the settings for profiles in the
Profile Options panel (when the
Draw Profiles option is activated) will
not be saved in the
Setup, nor will the
Setups be saved in the case file.