*beamsectioncreatesolidfrompoints

Creates a solid beam section for HyperBeam.

Syntax

*beamsectioncreatesolidfrompoints double_array number_of_doubles order write_to_file section_type base_node calc_var

Type

HyperMesh Tcl Modify Command

Description

Creates a solid beam section for HyperBeam, using a closed loop of point coordinates that form a polygon.

HyperMesh builds a surface through the points and meshes the surface with quads and trias of the specified order (2nd order recommended), with the meshing parameters such as element size calculated in such a way as to produce elements useful to HyperBeam.

Inputs

double_array
The ID of the double array that contains the point coordinates specified in a counter-clockwise direction. The double array is created using the *createdoublearray command. This should always be set to 1.
number_of_doubles
Integer indicating the size (number of doubles) in the double array created using *createdoublearray.
order
The order (1 or 2) of the elements to use.
write_to_file
A flag specifying whether or not the results should be written to a file with name stdsolidbeamdata. This is written to the HyperMesh working directory. Valid values are:
1 - Write to file.
0 - Do not write to file.
section_type
A flag to indicate the type of section. Valid values are:
1 - Hollow section.
0 - Non-hollow section.
base_node
A flag specifying how to calculate the base node. Valid values are:
0 - Choose the base point as the origin (0,0,0).
1 - Choose the base point as the average of the minimum and maximum point values.
calc_var
Variable for holding the results of calculation. By default this value is zero.

Examples

To create a solid section from coordinates (0,0) (1,0) (1,1) and (0,1):
*createdoublearray 8 0 0 1 0 1 1 0 1
*beamsectioncreatesolidfrompoints 1 8 1 0 0 0 0

Errors

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