poITensorCtrl SetDataType

Sets the data type for the tensor control.

Syntax

tensor_handle SetDataType data_type_name

Application

HyperView Tcl Modify

Description

This command sets the data type to be applied for a tensor plot (for example, Stress, Strain, etc.). If the data type name contains spaces, then the name must be specified inside double quotes (for example, "Effective plastic strain"). The data type name must exist in the list of available data types in the results file in order to display a proper tensor plot. You can obtain a list of valid data types from the result control by using the GetDataTypeList command.

Inputs

data_type_name
The name of the data type to be set.

Example

To set the data type in a tensor plot to "Strain" for a result file containing the following data type list {"Displacement" "Strain" "Effective plastic strain"}:
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 GetTensorCtrlHandle tensor_handle
tensor_handle SetDataType Strain
hwi CloseStack

Errors

This command always returns a 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 contour plot will display a gray color only. In the case of an invalid data type, the tensor plot will not display anything.