poICFD SetStreamLineDecimation
Specifies whether decimation should be applied to the streamlines in the CFD Plot/Streamlines panel, in order to reduce the memory footprint.
Syntax
poICFD_handle SetStreamLineDecimationdecimation_on
Application
HyperView Tcl Modify
Description
This command specifies whether or not to apply decimation to the streamlines obtained by the integration process. Decimation will effectively reduce the memory footprint and improve graphic performance afterwards, however it is important to note that the streamlines could become less smooth and decimation process itself takes some time. After decimation is turned on, you can further specify decimation criterion based on max break angle, max speed variation, and max line segment length by calling the following commands: SetMaxBreakAngle, SetMaxSpeedVariation, and SetMaxLineSegmentLength.
Inputs
- decimation_on
- The boolean value turning decimation on or off.
Example
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
hwi CloseStack
Error
Returns false if no integrator exists.