*beamsectionsetdatageneric

Updates the data for a generic type beam section.

Syntax

*beamsectionsetdatageneric double_array number_of_doubles string_array number_of_strings beam_sect_id

Type

HyperMesh Tcl Modify Command

Description

Updating a generic beam section requires two commands of which this is the second. This command will update all data for a generic type beam section. The command *beamsectionsetdataroot should precede use of this command.

Beam section data cannot be updated piecemeal with this command; all data must be known for the beam and sent in as arguments.

Inputs

double_array
The ID of the double array that contains the additional input parameters. The double array is created using the *createdoublearray command. This should always be set to 1.
The contents of this array are the results values for the beam section. The values should be in the same order as those listed in the string_array. Any results not given will be set to zero.
number_of_doubles
Integer indicating the size (number of doubles) of the double array created using *createdoublearray.
string_array
The ID of the string array that contains the additional input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
The contents of this array are the identifying names of the results types for a beam section. The correct syntax is required to recognize the results types. The following is a list of all results types. Not all types need to be given, but those that are not will be set to zero.
Results Type Identifier
Area area    
Centroid location centroid [0] centroid [1]  
Max coord ext - centroidal coordExt [0] coordExt[1]  
Max coord ext - principle coordExtP[0] coordExtP[1]  
Elastic Torsional Modulus Emt    
Plastic Torsional Modulus Pmt    
Moment of Inertia - centroidal ICentroid[0] ICentroid[1] ICentroid [2]
Moment of Inertia - principle IPrinciple[0] IPrinciple[1]  
Moment of Inertia - local IUser[0] IUser[1] IUser[2]
Angle theta    
Torsional Constant J    
Warping Constant Gamma    
Radius of Gyration radiusG    
Elastic Sectional Modulus - centroidal S[0] S[1]  
Elastic Sectional Modulus - principle SP[0] SP[1]  
Shear Center - local shearCenter[0] shearCenter[1]  
Shear Center -principle shearCenterP[0] shearCenterP[1]  
Shear Deformation Coefficient ShearDeform[0] ShearDeform[1] ShearDeform[2]
Shear Factors shearStiff[0] shearStiff[1] shearStiff[2]
Torsion Coefficient torsionCoeff[0] torsionCoeff[1]  
Plastic Section Modulus - centroidal Z[0] Z[1]  
Plastic Section Modulus - principle ZP[0] ZP[1]  
Number of Cells NumberOfCells    
Cell areas Cell1 Cell2 Cell3
Cell4 Cell5 Cell6
Cell7 Cell8 Cell9
Cell10 Cell11 Cell12
number_of_strings
Integer indicating the size (number of strings) of the string array created using *createstringarray.
beam_sect_id
The ID of the shell or solid beam section to update.

Examples

To update the parameter data for a shell type section with ID 4. Only the area and centroidal moment-of-inertia values are defined, all others are set to 0.
Note: This command should be used in tandem with *beamsectionsetdataroot as follows:
*beamsectionsetdataroot 4 1 0 1 7 1 0 0 0 0 0 0 0
*createdoublearray 56 2 3 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
*createstringarray 56 "area" "centroid[0]" "centroid[1]" "coordExt[0]" "coordExt[1]" "coordExtP[0]" "coordExtP[1]" "Emt" "Pmt" "Icentroid[0]" "Icentroid[1]" "Icentroid[2]" "Iprincipal[0]" "Iprincipal[1]" "Iuser[0]" "Iuser[1]" "Iuser[2]" "J" "gamma" "radiusG" "S[0]" "S[1]" "shearCenter[0]" "shearCenter[1]" "shearCenterP[0]" "shearCenterP[1]" "ShearDeform[0]" "ShearDeform[1]" "ShearDeform[2]" "PrincipalShear[0]" "PrincipalShear[1]" "shearStiff[0]" "shearStiff[1]" "shearStiff[2]" "torsionCoeff[0]" "torsionCoeff[1]" "Z[0]" "Z[1]" "ZP[0]" "ZP[1]" "SP[0]" "SP[1]" "theta" "NumberOfCells" "Cell1" "Cell2" "Cell3" "Cell4" "Cell5" "Cell6" "Cell7" "Cell8" "Cell9" "Cell10" "Cell11" "Cell12"
*beamsectionsetdatageneric 1 56 1 56 4

Errors

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

Version History

11.0.120