Model.beamsectionsetdatageneric#

Model.beamsectionsetdatageneric(double_array, string_array, beam_sect_id)#

Updating a generic beam section requires two functions of which this is the second. This function will update all data for a generic type beam section. The function Model.beamsectionsetdataroot() should precede use of this function.

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

Parameters:
  • double_array (hwDoubleList) –

    The ID of the double array that contains the additional input parameters.

    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.

  • string_array (hwStringList) –

    The ID of the string array that contains the additional input parameters.

    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.Update table

    Results Type Identifier
    Area area
    Centroid location centroid [0] coordExt [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 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]
    Number of Cells NumberOfCells
    Cell areas Cell1 Cell2 Cell3
    Cell4 Cell5 Cell6
    Cell7 Cell8 Cell9
    Cell10 Cell11 Cell12

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

Example#

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.#
import hm
import hm.entities as ent

model = hm.Model()

model.beamsectionsetdatageneric(
    double_array=[
        2.0,
        3.0,
        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,
        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.0,
    ],
    string_array=[
        "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",
    ],
    beam_sect_id=4,
)

Note

This function should be used in tandem with Model.beamsectionsetdataroot().