Model.loadsupdatefixedvalue#

Model.loadsupdatefixedvalue(collection, fixed_value)#

Updates the fixed constraint value on SPC and SPCD constraint loads for Optistruct.

Parameters:
  • collection (Collection) – The collection containing the loads entities of the SPC and SPCD constraints to update.

  • fixed_value (int) –

    0 - Do not retain the deformed boundary resulting from a preceding nonlinear subcase

    1 - Retain the deformed boundary resulting from a preceding nonlinear subcase

Example#

Update a fixed value for SPC load with ID 4#
import hm
import hm.entities as ent

model = hm.Model()

model.loadsupdatefixedvalue(
    collection=hm.Collection(model, ent.LoadForce, [4]), fixed_value=1
)