31.2.5. Changing the Colormap

The default colormap used by ANSYS Fluent to display graphical data (for example, vectors) ranges from blue (minimum value) to red (maximum value). Additional predefined colormaps are available, and you can also create custom colormaps. To make any changes to the colormap, you will use the Colormap Dialog Box (Figure 31.33: The Colormap Dialog Box).

 Results → Graphics  Colormap...

Figure 31.33:  The Colormap Dialog Box

The Colormap Dialog Box

When you plot contours, you can temporarily modify the number of colors in the colormap by changing the number of contour levels in the Contours Dialog Box; you will only need to use the Colormap Dialog Box if you want to change other characteristics of the colormap.


Important:  Note that if you are using a gray-scale colormap and you want to save a gray-scale picture, you should save a color picture. When you save a gray-scale picture, ANSYS Fluent uses an internal gray scale, not the gray scale specified by the colormap. If you save a color picture, the colormap you selected (that is, your gray scale) will be used.


31.2.5.1. Predefined Colormaps

The following colormaps are automatically available in ANSYS Fluent:

bgr:

Blue represents the minimum value, green the middle, and red the maximum value. Colors in between are interpolated from blue to green, and from green to red. (This is the default colormap.)

bgrb:

Blue represents the minimum and maximum values, and green and red are values 1/3 and 2/3 of the maximum value, respectively. Colors in between are interpolated from blue to green, from green to red, and from red to blue.

blue:

The minimum value is represented by blue-black, and the maximum value by pure blue.

cyan-yellow:

Cyan represents the minimum value and yellow represents the maximum value.

fea:

Blue represents the minimum value and red represents the maximum value. The colors in between are those used in third-party finite element analysis packages.

gray:

Black is used for the minimum value and white for the maximum value.

green:

The minimum value is represented by green-black, and the maximum value by pure green.

purple-magenta:

Purple represents the minimum value and magenta represents the maximum value.

red:

The minimum value is represented by red-black, and the maximum value by pure red.

rgb:

Red represents the minimum value, green the middle, and blue the maximum value. Colors in between are interpolated from red to green, and from green to blue.

The number of colors interpolated between the colors in the scale name (for example, between purple and magenta) will depend on the size of the colormap.

31.2.5.2. Selecting a Colormap

The procedure for selecting a new colormap to be used in graphics displays is as follows:

  1. In the Colormap Dialog Box (Figure 31.33: The Colormap Dialog Box), select the desired colormap in the Currently Defined drop-down list. This list will contain all of the colormaps predefined by ANSYS Fluent as well as any custom colormaps that you have created as described in Creating a Customized Colormap.

  2. Set the colormap size and scale as described in Specifying the Colormap Size and Scale.

  3. Click Apply to update the current graphics display with the new colormap. All future displays will use the newly selected colormap and options.

31.2.5.2.1. Specifying the Colormap Size and Scale

Once you have selected the desired colormap from the Currently Defined list, you may modify the Colormap Size. This value is the number of distinct colors in the color scale.

You can also choose to use a logarithmic scale instead of a decimal scale by turning on the Log Scale option. With a log scale, the color used in the graphics display will represent the log of the value at that location in the domain. The values represented by the colors will, therefore, increase exponentially.

31.2.5.2.2. Changing the Number Format

You can change the format of the labels that define the color divisions at the left of the graphics window using the controls under the Number Format heading in the Colormap Dialog Box.

  • To display the real value with an integral and fractional part (for example, 1.0000), select float in the Type drop-down list. You can set the number of digits in the fractional part by changing the value of Precision.

  • To display the real value with a mantissa and exponent (for example, 1.0e-02), select exponential in the Type drop-down list. You can define the number of digits in the fractional part of the mantissa in the Precision field.

  • To display the real value with either float or exponential form, depending on the size of the number and the defined Precision, choose general in the Type drop-down list.

31.2.5.3. Displaying Colormap Label

You can customize the number of values displayed on the colormap. The default number of labels that appear alongside the colormap depends on the font size and the colormap size (Figure 31.34: The Default Colormap Label Display).

  • To reduce the number of labels that appear alongside the colormap, increase the number of labels skipped. To do so, deselect Show All in the Colormap Dialog Box and set the number of labels to be skipped.

    To demonstrate what effect this command has on the display, enter a value of 4 under Skip (note that the value entered must be an integer). This will result in three intermediate labels being skipped, with the first and the last colormap values always being displayed (Figure 31.35: The Colormap with Skipped Labels).

  • To reset the original colormap display, simply select Show All.

Figure 31.34:  The Default Colormap Label Display

The Default Colormap Label Display

Figure 31.35:  The Colormap with Skipped Labels

The Colormap with Skipped Labels

31.2.5.4. Creating a Customized Colormap

You can create your own colormap by manipulating the “anchor colors” and the colormap size. A color scale is created by linear interpolation between the anchor colors. The color, number, and position of the anchor colors will therefore control the description of the colormap. By increasing the colormap size, you can increase the total number of colors and obtain a color scale that changes more gradually. The procedure is as follows:

  1. In the Colormap Dialog Box, click Edit... to open the Colormap Editor Dialog Box (Figure 31.36: The Colormap Editor Dialog Box).

    Figure 31.36:  The Colormap Editor Dialog Box

    The Colormap Editor Dialog Box

  2. In the Colormap Editor Dialog Box, select a color scale in the Currently Defined list as your starting point. The colors in the scale will be displayed at the top of the dialog box. A white bar below a color is an "anchor point" indicating that this color is an "anchor color".

  3. If you want to add more colors to the color scale, increase the Colormap Size; to use fewer colors, decrease this value. When you use the counter arrows (or type in a value and press Enter), the color scale display at the top of the dialog box will be updated immediately.


    Important:  The total number of colors must not be less than the number of anchor points.


  4. To obtain the desired color scale interpolation, manipulate the anchor colors as needed:

    • To add an anchor point, click any mouse button on the black space directly below the desired anchor color (or click the color itself). A white bar will appear below the color to identify it as an anchor color, and the color will automatically be selected for color-definition modification.

    • To remove an anchor point, click the white bar below the anchor color. The white bar will disappear and the color scale will be updated to reflect the new interpolation.

    • To select a current anchor color in order to modify its color definition, click the color itself at the top of the dialog box.

    • To modify the color of the selected anchor color, you can change either the red/green/blue components (choose RGB, the default) or the hue/saturation/value components (choose HSV). HSV is recommended if you plan to record the graphics display on video, as it enables you to create a more subtle gradation of color and reduce the tendency of bright colors to “bleed”. Move the Red, Green, and Blue or Hue, Saturation, and Value sliders to obtain the desired color. The color scale at the top of the dialog box will be updated automatically to show the effect of your change.


      Important:  It is a good idea to note the original value of a color component before moving the slider so that you will be able to return to it if you change your mind. (See Scales for instructions on using a scale slider.)


    If you make a mistake while modifying the color scale, you can start over by selecting the starting-point colormap in the Currently Defined list.

  5. If you want to change the default name of the new colormap, enter the new name in the Name field. By default, custom colormaps are called cmap-0, cmap-1, and so on.

  6. Click OK to save the new colormap. The colormap name appears in the Currently Defined list in the Colormap Dialog Box and can be selected for use in the graphics display.

Custom colormap definitions will be saved in the case file.


Release 18.2 - © ANSYS, Inc. All rights reserved.