poICFD SetDataType

Sets the data type used for the streamline creation in the CFD Plot/Streamlines panel.

Syntax

poICFD_handle SetDataType data_type_name

Application

HyperView Tcl Modify

Description

This command sets the data type to be used for the streamline creation in the CFD Plot/Streamlines panel. Although in most cases nodal velocity vector data is the only sensible data type which can be used to create streamlines properly, HyperView does allow you to select all the nodal vector data types available in the result file for the purpose of streamline creation. If the data type name has spaces in it, then the name has to be specified inside double quotes (for example, “Velocity Field”). You can get this list from the result control by using the GetDataTypeList command with the CFD argument.

Inputs

data_type_name
The name of the data type to be set.

Example

To set the data type to "Velocity Field":
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 SetDataType "Velocity Field"
hwi CloseStack

Error

This command always returns success, even if the data type name does not exist in the available data type list. In the case of an invalid data type, the CFD Plot/Streamlines panel will simply refuse to create streamlines. If no results were attached, the CFD handle is not retrievable, thus this command will not be called.