*control_sum_print
Outputs a control sum number to the specified text file.
Syntax
*control_sum_print ?<option1>=<value1> <option2>=<value2> ... <optionN>=<valueN>?
Type
HyperMesh Tcl Modify Command
Description
Outputs a control sum number to the specified text file. The control sum value is computed as a certain average using coordinates of the geometry and mesh present in the model.
The options can be specified in any order.
Inputs
- file_name=<value>
- The full path and file name to write the result to. This is a mandatory option.
- comment=<value>
- This specifies an optional comment to be written to the text file prior to the control number.
- method=<value>
- This optional parameter specifies which points are to be used to compute the sum. Valid values are:
- output_format=<value>
- This optional parameter specifies the output format for the control sum number. Valid
values are:
general - Write the output real number in general format
scientific - Write the output real number in scientific format (default)
- shift_to_center=<value>
- This optional parameter specifies whether the coordinates of the points are taken in global coordinate system or shifted to the center of the bounding box containing all the points. Valid values are:
Examples
To write the control number to C:/test/test.txt, taking the sum of coordinates of all nodes present in the model with respect to the global coordinate system, and write the output in scientific notation:
*control_sum_print file_name="C:/test/text.txt" comment="My comment" method=from_nodes shift_to_center=0 output_format=scientific
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2020