Model.beamsectioncreatestandardsolver#

Model.beamsectioncreatestandardsolver(type, solver, type_name, orient)#

Creates a standard solver-specific section. For a list of values that are supported by each solver, see the topics in the See Also section.

Parameters:
  • type (int) – Integer indicating the type of section to create. Each solver has a number of available sections.

  • solver (int) –

    Integer indicating the solver the section is being created for. Valid values are:

    0 - HyperBeam

    1 - OptiStruct/Nastran

    2 - Abaqus

    8 - ANSYS

    9 - LS-DYNA

    21 - Permas

  • type_name (hwString) – Name indicating the type of section to create. Each type can have multiple available section names.

  • orient (int) –

    Flag indicating the orientation of the section:

    0 - 0 degrees

    1 - 90 degrees

    2 - 180 degrees

    3 - 270 degrees

Examples#

Create a standard HyperBeam T-section having a 0 degree orientation#
import hm
import hm.entities as ent

model = hm.Model()

model.beamsectioncreatestandardsolver(
    type=1,
    solver=12,
    type_name="I",
    orient=0
)
Create a standard OptiStruct T-section having a 0 degree orientation#
import hm
import hm.entities as ent

model = hm.Model()

model.beamsectioncreatestandardsolver(
    type=15,
    solver=0,
    type_name="HMTSec",
    orient=0
)