poICFD SetMaxBreakAngle

Specifies the threshold value for the break angle between two neighboring streamline segments, which is used to decide if the two line segments should be merged into one, or kept untouched.

Syntax

poICFD_handle SetMaxBreakAnglebreak_angle

Application

HyperView Tcl Modify

Description

This command specifies the threshold value for the break angle between two neighboring streamline segments, which is used to decide if the two line segments should be merged into one, or kept untouched. This command will only take effect when streamline decimation is turned on by calling the SetStreamLineDecimation command. The valid value range for the break_angle is from 0 to 90 degrees.

Inputs

break_angle
The break angle threshold for decimation to be set.

Example

To specify the break angle threshold for streamline decimation to "2 degrees":
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 SetStreamLineDecimation true
CFD_handle SetStreamLineSize 2
hwi CloseStack

Error

Returns HW_InvalidArgs if the specified break_angle is not valid.