Create Tubesections with TCL Script

User: "Rahul_P1"
Altair Employee
Updated by Rahul_P1

Hello,

i try to create some Tube Sections with the following script:

#tubesection: 12.7 and 11.9888
*beamsectioncreatestandardsolver 7 1 Tube 0
*beamsectionsetdataroot 1 1 1 2 7 1 0 1 1 0 0 0 0
*createdoublearray 6 11.9888 4 4 12.7 5 5
*beamsectionsetdatastandard 1 6 1 7 0 Tube
*createmark beamsects 1 'tube_section.1'
*updatehmdb beamsects 1

#tubesection: 12.7 and 11.811
*beamsectioncreatestandardsolver 7 1 Tube 0
*beamsectionsetdataroot 1 1 1 2 7 1 0 1 1 0 0 0 0
*createdoublearray 6 11.811 4 4 12.7 5 5
*beamsectionsetdatastandard 1 6 1 7 0 Tube
*createmark beamsects 1 'tube_section.2'
*updatehmdb beamsects 1

But when i open HyperBeam to control the outer and inner radius of the sections, HyperMesh just created the first section with the radius of the second and the second has got just the standard radius.

Result:
Section 1: outerRadius: 12.7 innerRadius: 11.811
Section 2: outerRadius: 5 innerRadius: 4

Do you know how i can solve this problem?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Rahul_P1"
    Altair Employee
    OP
    Updated by Rahul_P1

    HI h.alpmann,

    You must change the 1 to 2 in two areas as below icon_neutral.gif

    *beamsectionsetdataroot 1 1 2 7 1 0 1 1 0 0 0 0
    *beamsectionsetdatastandard 1 6 2 7 0 Tube

    For the second beam section the first entry of *beamsectionsetdataroot - beam_sect_id i.e. The ID of the beam section to update has to be 2
    Same goes for the third entry of the *beamsectionsetdatastandard

    So your script should be as below icon_smile.gif

    #tubesection: 12.7 and 11.9888
    *beamsectioncreatestandardsolver 7 1 Tube 0
    *beamsectionsetdataroot 1 1 1 2 7 1 0 1 1 0 0 0 0
    *createdoublearray 6 11.9888 4 4 12.7 5 5
    *beamsectionsetdatastandard 1 6 1 7 0 Tube
    *createmark beamsects 1 'tube_section.1'
    *updatehmdb beamsects 1

    #tubesection: 12.7 and 11.811
    *beamsectioncreatestandardsolver 7 1 Tube 0
    *beamsectionsetdataroot 2 1 1 2 7 1 0 1 1 0 0 0 0
    *createdoublearray 6 11.811 4 4 12.7 5 5
    *beamsectionsetdatastandard 1 6 2 7 0 Tube
    *createmark beamsects 1 'tube_section.2'
    *updatehmdb beamsects 1