poICFD SetNumOfStreamLineColors

Specifies the number of colors in the color map used to color the individual streamlines in the CFD Plot/Streamlines panel (when the 'color-by mode' is set to "seed").

Syntax

poICFD_handle SetNumOfStreamLineColors num_streamline_colors

Application

HyperView Tcl Modify

Description

This command specifies the number of colors in the color map used to color the individual streamlines in the CFD Plot/Streamlines panel. This command will only take effect when the 'colored-by mode' is set to “seed”. The valid range of num_streamline_colors is from 1 to 14. Note that if the number of streamlines belonging to the same rake exceeds the number of the colors set by this command, the colors will be recycled. This command will be ignored if a contour plot is enabled.

Inputs

Num_streamline_colors
The number of colors in the color map used for streamline coloring to be set.

Example

To specify the number of colors used for streamline coloring (when the 'colored-by mode' of the streamlines is set to "seed"):
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetCFDCtrlHandle CFD_handle
CFD_handle SetStreamLineColoredByMode seed
CFD_handle SetNumOfStreamLineColors 14
hwi CloseStack

Error

Returns HW_InvalidArgs if the specified number of colors is outside of the valid range (1-14).