Model.beamsectiontranslate#

Model.beamsectiontranslate(beam_sect_id, translate_option, translation_y, translation_z)#

The beam section specified will be translated by the amounts specified by translation_y and translation_z, or be centered at the centroid or the shear center of the beam depending on the option specified by translation_option. The beam must be of type shell or solid.

Parameters:
  • beam_sect_id (unsigned int) – The ID of the shell or solid beam section to update.

  • translate_option (int) –

    0 - The section will be translated by the amounts specified by translation_y and translation_z.

    1 - The section will be centered at the location of the centroid.

    2 - The section will be centered at the location of the shear center.

  • translation_y (double) – Amount of translation in the local y direction of the beam for a translation_option=0.

  • translation_z (double) – Amount of translation in the local z direction of the beam for a translation_option=0.

Examples#

Translate a beam section with ID 1 to be centered at its shear center#
import hm

model = hm.Model()

model.beamsectiontranslate(
  beam_sect_id=1,
  translate_option=2,
  translation_y=0.0,
  translation_z=0.0
)
Translate a beam section with ID 1 by 1.0 in the local y direction and 2.1 in the local z direction#
import hm

model = hm.Model()

model.beamsectiontranslate(
  beam_sect_id=1,
  translate_option=0,
  translation_y=1.0,
  translation_z=2.1
)