Model.absorbloads#

Model.absorbloads(collection, disable_value_comparison, renumber_flag, compression_status)#

Absorbs classical loads or groups (card image CONDUCTION and CONVECTION) to engineering loads.

Parameters:
  • collection (Collection) – The collection containing the entities to be absorbed. Valid entity types are groups, loads (e.g., LoadForce, LoadPressure,etc.) and loadcols.

  • disable_value_comparison (unsigned int) –

    Optional argument specifiying whether value comparison is disabled. Value comparison determines if a given non-uniform load can manifest in a uniform representation. Valid values are:

    0 - Value comparison is enabled.

    1 - Value comparison is disabled.

  • renumber_flag (unsigned int) –

    Option to renumber after absorb. Valid values are:

    0 - Do not renumber.

    1 - Renumber.

  • compression_status (unsigned int) –

    Option to honor the compression status (e.g. certain loads may be on a set or on the actual entitiy, and this state may be honored or expanded). Valid values are:

    0 - Do not honor source state.

    1 - Honor source state.

Example#

Absorbing and renumbering all loads in the model#
import hm
import hm.entities as ent

model = hm.Model()

# In collection we need to pass an empty collection of any Load-<type> entity to absorb all the loads.
model.absorbloads(
    collection=hm.Collection(model, ent.LoadForce, populate=False),
    disable_value_comparison=0,
    renumber_flag=0,
    compression_status=0,
)
Absorb all loads in load collector with ID 5#
import hm
import hm.entities as ent

model = hm.Model()

model.absorbloads(
    collection=hm.Collection(model, ent.Loadcol, [5]),
    disable_value_comparison=0,
    renumber_flag=0,
    compression_status=0,
)
Absorb all loads in the model and honor the compression state#
import hm
import hm.entities as ent

model = hm.Model()

model.absorbloads(
    collection=hm.Collection(model, ent.LoadForce, populate=False),
    disable_value_comparison=0,
    renumber_flag=0,
    compression_status=1,
)
Absorb all groups in the model#
import hm
import hm.entities as ent

model = hm.Model()

model.absorbloads(
    collection=hm.Collection(model, ent.Group),
    disable_value_comparison=0,
    renumber_flag=0,
    compression_status=0,
)