Model.loadtype#

Model.loadtype(config, type)#

Sets the global load type variable.

Parameters:
  • config (hwString) – The load configuration that is to have its type changed. This input can be specified as config number or config string label.

  • type (hwString) – The type which the configuration should become. This input can be specified as type number or type string label.

Examples#

Set the type of forces to 2#
import hm
import hm.entities as ent

model = hm.Model()

model.loadtype(config="1", type="2")
Set the type of forces to MBFRC in OptiStruct user profile#
import hm
import hm.entities as ent

model = hm.Model()

model.loadtype(config="force", type="MBFRC")

Note

After the type has been set, all loads of the corresponding configuration are set to the value of type.