Model.rundesignmethod#

Model.rundesignmethod(entity, appendlogfile=0, columnLabels='', debugInfo=1, loadcaselist='', logfileInfo=1, tableInfo=0, targetentityCollection=Collection(), tableperloadcase=-1)#

Run the design method for a given design point set. The design point set should contain a valid design point and design method.

This outputs a new table entity containing the output of the operation.

Parameters:
  • entity (Entity) – The object describing the designpointset entity.

  • appendlogfile (unsigned int) –

    The flag to append the Stress Tool log file if the method is run on multiple design point sets or elements.

    0 - Off (default)

    1 - On

  • columnLabels (hwString) – The input column label.

  • debugInfo (unsigned int) –

    0 - Do not create a table with input argument data

    1 - Create a table with input argument data (default)

  • loadcaselist (hwString) – The IDs of the method loadcases.

  • logfileInfo (unsigned int) –

    0 - Do not create a stress tool log file

    1 - Create a stress tool log file (default)

  • tableInfo (unsigned int) –

    0 - Do not overwrite output table (default)

    1 - Overwrite output table

  • targetentityCollection (Collection) – The collection containing the elements or designpointsets on which the method is run.

  • tableperloadcase (int) –

    The flag to create Stress Tool method run output table.

    0 - Create single table per run

    1 - Create table per load case for user methods only

    2 - Create a HWASCII result file and import it to the HyperMesh session

Example#

Run the design method for design point set ID 2#
import hm
import hm.entities as ent

model = hm.Model()

model.rundesignmethod(entity=ent.Designpointset(model,2))
Run the design method for design point set ID 2 for elements ID 250 , 251 , and 252#
import hm
import hm.entities as ent

model = hm.Model()

model.rundesignmethod(
    entity=ent.Designpointset(model,2),
    targetentityCollection=hm.Collection(model,ent.Element,[250, 251, 252])
)