*analysiscurvecreatecomplex
Creates a curve pair by extracting complex values from a results file.
Syntax
*analysiscurvecreatecomplex entity_type mark_id x_data_type y_data_type x_component y_component
Type
HyperMesh Tcl Modify Command
Description
Creates a curve pair by extracting complex values from a results file. The results file must be loaded before executing this command. The curves must be part of an extended (dual) plot and the y-values are assumed to be complex, either real/imaginary or phase/magnitude.
Inputs
- entity_type
- The type of entities on the mark.
- mark_id
- The ID of the mark that contains the entities. Valid values are 1 and 2.
- x_data_type
- The name of the x data type from which to extract data.
- y_data_type
- The name of the y data type from which to extract data.
- x_component
- The name of the x component to be extracted from the file if the x data type is
displacement. Valid values are:
- complex
- x comp/complex
- y comp/complex
- z comp/complex
- y_component
- The name of the y component to be extracted from the file if the y data type is
displacement. Valid values are:
- complex
- x comp/complex
- y comp/complex
- z comp/complex.
Examples
To create a complex curve from the displacement results for node 12:
*analysisfileset C:/my_results/test.res
*createmark nodes 1 12
*analysiscurvecreatecomplex nodes 1 "displacements" "simulationid" "complex" ""
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}