poICFD GetNumOfStreamLineColors

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

Syntax

poICFD_handle GetNumOfStreamLineColors

Application

HyperView Tcl Query

Description

This command returns the number of colors in the color map that were used to color the individual stream lines in the CFD Plot/Streamlines panel. This will only take effect when the 'colored-by mode' is set to “seed”. 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.

Example

To get the number of colors in the color map that were used for streamline coloring (with the 'colored-by mode' 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 GetNumOfStreamLineColors
hwi CloseStack

Error

This command always returns the number of colors from the color map that were used for streamline coloring.