Model.alternatefejointupdate#

Model.alternatefejointupdate(collection, type, node1, node2, system1, system2, type_flag, node_flag, system1_flag, system2_flag)#

Updates FE joint elements for use with the FE solution sequence.

Parameters:
  • collection (Collection) – The collection containing the joint element entities to update.

  • type (unsigned int) –

    The type of FE joint element. Valid values are:

    42 - Ball. system1 and system2 must be specified as None.

    43 - Revolute. system1 is mandatory, but system2 may be specified as None.

    44 - Universal. system1 and system2 must be specified.

  • node1 (Entity) – The first FE joint node entity.

  • node2 (Entity) – The second FE joint node entity.

  • system1 (Entity) – The first FE joint system entity.

  • system2 (Entity) – The second FE joint system entity.

  • type_flag (int) – Set to 1 to update type, 0 otherwise.

  • node_flag (int) – Set to 1 to update node1 and node2, 0 otherwise.

  • system1_flag (int) – Set to 1 to update system1, 0 otherwise.

  • system2_flag (int) – Set to 1 to update system2, 0 otherwise.

Example#

Update revolute type FE joint elements with IDs 9 and 10 to be joints of type ball#
import hm
import hm.entities as ent

model = hm.Model()

input_col = hm.Collection(model, ent.Element, [9, 10])

model.alternatefejointupdate(
    collection=input_col,
    type=42,
    node1=None,
    node2=None,
    system1=None,
    system2=None,
    type_flag=1,
    node_flag=0,
    system1_flag=0,
    system2_flag=0,
)