*vectorplot

Creates a vector plot from results data.

Syntax

*vectorplot title vector_size mesh_color full_size constant_size

Type

HyperMesh Tcl Modify Command

Description

Creates a vector plot from results data. The results file must be loaded before executing this command. The *freesimulation command clears the plot.

Inputs

title
The title to use for the plot.
vector_size
The size of the vectors. If constant_size is set to 0, this defines a scale factor for the vectors. If constant_size is set to 1, this defines the size in model units
mesh_color
The color used to plot the mesh. Valid values are 1 through 64.
  • -1 - Uses the elements color.
  • 0 - Uses the background color.
full_size
Determines whether the contour plot fills the entire screen. Valid values are:
0 - Use normal size.
1 - Use full screen. Press a mouse button to return.
constant_size
Set to 1 to plot all vectors with a constant length, otherwise set to 0.

Example

To load the result file named C:/my_results/test.res and generate a vector plot for Subcase 1 with Displacements data type, a vector model size of 2.5, a mesh color of black, and normal plot size:

*analysisfileset C:/my_results/test.res
*inputsimulation "Subcase 1" "Displacements"
*vectorplot "" 2.5 0 0 0
*freesimulation

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}